View Complete Post
I am using the ReportViewer control on a Windows form. After a report is rendered succesfully in the control, if I click on the Print button in the ReportViewer toolbar and print to a printer that is NOT the user's default printer, I receive the error
"The handle is invalid." It works fine anytime you print to the default printer.
I'm wondering if someone can tell me if there is a fix for this in any service packs, new releases, etc. I am currently using SQL Server 2008 and Visual Studio 2008.
This same issue was mentioned at the bottom of the following thread, but it doesn't appear that anyone ever responded that it was ever fixed. You would think this issue would be fixed after 4 years now.
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?
My application having the printer functionality, using this user can print our reports in to .pdf format also. But if user doesn't selct the "Adobe PDF" as default printer then application giving the following error
"Unable to find "Adobe PDF" resource files.
"C:\Documents and Settings\184625\Application Data\Adobe\Adobe PDF\Settings\test.joboptions"
Do you want to run the installer in repair mode?
It is working fine if user selected the "Adobe PDF" printer as default printer.can you please help me form this...
Hello, I am trying to implement a custom printing solution for a client. What he wants is to have one button print a certain set of info to a specific printer and specific printer tray, connected to the client machine. Another button will print a similar set of info, to the same printer, but a different tray.
One tray is preloaded with regular 8.5"x11" paper, and the other is loaded with legal paper, 8.5"x14".
I've found some instructions on how to do this: http://msdn.microsoft.com/en-us/library/system.drawing.printing.printersettings.papersources(VS.71).aspx
So, i've implemented the code, and am able to enumerate the printers attached to the client machine, and their trays. I've setup some web.config settings for the client to enter the names of his printer and specific trays (in this case, tray 1 and tray 3).
This code i've written runs and works correctly, printing the document without error.
The problem I am having is that even though i have selected the tray for legal paper, all the info instead prints on regular paper, the printer seems to be ignoring my instruction to print onto legal paper.
Here is th
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!
dont have a default constructor
new SelectList() :(
i want to take print out of asp.net page..
Firstly i want to transfer this content in MsWord file in same format that is on browser screen
then i want to take automatic print out....
how can i do this
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.