.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Is there an alternative to the VB compatibility library and the default "print document" interface?

Posted By:      Posted Date: October 15, 2010    Points: 0   Category :.NET Framework

When I first converted a program from an older version of VB to
VB .Net, I used the printer compatibility library with good success.
It treated the printer as a device.  Print this, print that, start a new page,
and so on.  Recently, when adding the printing of graphics, I started running
into out of memory conditions.  I discovered that I could use the base
.Net print capabilites to resolve this problem for the graphic images.

If all I am printing is the graphic images, this is not too bad.
However, the application I have has a mix.  Print this form followed by
another form followed by a graphic  followed by another form.  Each form
and graphic could print on a single page or take multiple pages.  The default
.Net approach of a call back to get each page becomes extremely clumsy.
Each print routine needs to remember which page it is currently on between calls and the print distributing routine needs to keep track of what form is currently being printed.

Is there another printing interface available?

View Complete Post

More Related Resource Links

When i click on any other folder in the document library that will navigate to default view of DL?



I have document library with having some folder in the same ,i have displayed my library in the page as Treeview, so when i click on any of the folder in the library i need to navigate allitems.aspx page i.e default view page of the document library ,the document library having views.Suppose when i am in other view i have selected folder from library treeview folder is changing but view not navigate to default view.

pls help 


When the user want click on document library that should be navigate default view



I have document library which is having folders,the document library i have displayed as tree view in the left side of the page.

Here Document library having views,suppose i have selected one view on the document library it is navigating the particular view that is good but when i am trying to click document library folder still the page in same view do not navigate the default view .

I need when ever i click on any of the folder in document library that should navigate defualt view ,could you please help me on this.

Really its need urgent...


Change Document Library default action on Items



I have a standard Document Library where I uploaded various  kinds of file (.pdf, swf). Whenever I click on an item (or I paste its direct link into the browser) it prompts me to download it instead of opening it into the browser directly (with flash player or acrobrat in my example).

How to obtain the desired behavior? Thanks

Alternative way to do a form action='default.aspx'



I am using Masterpages and User Controls (ascx) files in my project.

It is not possible to do this on my ascx or masterpage,

<form id='frmAction' action='Default.aspx'></form>

Please could somebody give me an alternate way of doing the same, I need to postback to the same page, when user clicks on 'Submit'

sorry for not being very clear with what I want. I am trying to do a postback using jquery.


Kindly help with syntax.


Default Column Values in a Document Library (SP2010) do not show up in word 2010 until you save and


when you create a document in a SP 2010 document library (of a particular content type, by clicking new, letter (content type name) in sharepoint for example) which has default values set on in in the library (set by using library settings -> change default column values), the default values do not show up until you create the document , save it and reopen it again.  Is this a bug or by design.  If it is by design, it is horrible since if some of the column default values are mandatory in the content type then you actually have to type them in before you could possibly save the file which defeats the whole point of having default column values.  Also it is tremendously clunky for a user to have to create file, save it , close it, and reopen it just to view the default metadata in the document information panel that is supposed to be there.

Anyone have any thoughts/solutions to this problem?


Picture library with option of a default picture



We're using the picture library to create a classified adds section. An image is uploaded with metadata for title, price, details etc

were looking at a way to supply a default image if the user does no have an image of the item to upload.

The first hope was that a default file path could be added to the input type 'file' box but looking into this its not allowed for security issues.

anyone know any examples of using a javascript button that says use default image that on clicking could fill in the input type file box?

Or a different way of achieving this ?


Document Library, Word Document Default File Name


I'm attempting to create a series of document libraries dedicated to tracking meeting minutes in sharepoint (word documents) for which I have some special needs and I haven't found a good way of going about it.

Basically the setup is that when a new meeting occurs the user would open the most recent meeting minute document from the library, change the date and than update the document with the current meetings information.  Upon saving the document the default document name should be dynamicaly built for the new meeting.  The name should use the currently selected date (tag).

The question is where to assign this function and how.  In word their doesn't appear to be a way (using word 2010) to default the document title (filename) property based on a tag (the date).

How would I go about setting up a default file name for a document in a sharepoint library?

installing a default J-Query library


Hi All,


I remember once reading about installing a new template of J-Query library when there is an update for instance the default is 1.4 (in VS2010) but I would like to be able to replace this with 1.6 and this is somehow done in the templates but I can't find out how. Can anyone share this with me please.

The same happens for Ajax.



Default ASP.NET Architecture

In providing an architectural approach, some assumptions are made concerning the project goals. These assumptions should be used as a litmus test to determine if the described architecture may be an appropriate fit for your ASP.NET application.

Upload a File to a SharePoint Document Library - Part I

The following helper class demonstrates a few techniques that allow documents to be uploaded to a SharePoint document library programmatically without using the API or a custom web service. You don't need to specify a document library name, and it will create any folders specified in the URL as required. File meta data will be updated if any properties are passed.

A flexible charting library for .NET

ZedGraph is a class library, Windows Forms UserControl, and ASP web-accessible control for creating 2D line, bar, and pie graphs of arbitrary datasets. The classes provide a high degree of flexibility - almost every aspect of the graph can be user-modified. At the same time, usage of the classes is kept simple by providing default values for all of the graph attributes. The classes include code for choosing appropriate scale ranges and step sizes based on the range of data values being plotted. Moreover, ZedGraph is compatible with .NET 2.0, and VS .NET 2005.

Enterprize library 4.1 getting output parameter after adding record in db, plz guide



I need to get output parameter (flag) from db after saving record in database. I am using Microsoft Enterprise Library 4.1 for DB. I am inserting record using I Data reader.

Please guide


Setting the default start page in godaddy hosting?


 How do you set the start page with godaddy hosting? I can see no way of doing this! You do not seem to have access to the IIS settings that allow you to change it!

default constructor SelectList




dont have a  default constructor

new SelectList() :(

How to change the default page base class?


I've tried setting the <pages pageBaseType="DynamicWebPage" /> value in web.config, but when I response.write out the page type, I'm still getting Microsoft.WebPages.WebPage.

I'm simply trying to sub-class WebPage and add some additional functionality such as a dynamic PageData dictionary similar to Phil Haack's dynamic ViewData dictionary.



database interface design question


For handy database interface, is it good to use SqldataSources exclusively intead of EntLib functions?

Thanks for any feedback.

MVC + Enterprise Library


Not a MVC specific question, but as that's what I'm doing I thought I'll post here.

While looking into the source code of an existing application, I stumbled upon MS Enterprise Library, and as I only heard about these "application block" stuff decided to look into it.

From the theory it sounds like a pretty usefull thing and it made me wonder if other's are using it succesfully along with MVC projects (I know they are not really related!)?

Pro's and Con's? 

I like the database block, as I did not get to any real database development the last 1.5 years, for instance. (Bad excuse I know).  Having an IoC thrown in there (Unity) sounds like I can pretty much stop using 3rd party libraries like I do now all over the place.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend