Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PrintDialog does not work 1

Status
Not open for further replies.

henares

Programmer
Joined
Apr 6, 2002
Messages
5
Location
US
Has anybody used the printdialog and made it work (like printing more than 1 copies)? The examples in the "HELP" don't work. You go through the printdialog screen but the values you select there are ignored. The examples I am talking about are found in \program files\Microsoft Visual Studio .NET\FrameworkSDK\Samples\Quickstart\winforms\samples\printing\example5\vb\PrintingExample5. Thanks in advance.
 
Have you tried to print 2 copies and does it print 2 copies (because, I get the printdialog screen to come up and I specify 2 copies and it still prints 1 copy)? If it does, can you please show an excerpt of the program. Thanks.
 
My little sample is printing 2 copies, but it is not collating them (I think you have to do that in the code)

I am not sure which part of my code is allowing it to print and I don't want to post all the code (it will be hard to read)

see:
 
I just copied and pasted that code into a project, and the Copies function does not work (prints out 1 regardless of what you type).

ccsint
 
I think you have to handle this looping yourself by looking at the value in:

PrintDocument1.PrinterSettings.Copies

You probably need to call again the print function for each copy.

Other people might have a more firm answer. This was my first and only attempt at printing so far and all I wanted to do was see how close this printing style was to the way I used to do it in Clipper. If you want reports then maybe try Crystal Reports.

Kris
[pc3]
 
I have written Microsoft about this problem and this is their response:

This is Bina Shukla from Microsoft Developer Support. I did research about your problem of PRINTDIALOG printing only 1 copy. This issue is a known bug in the current release of .NET framework and is fixed in the next release of .NET Framework due later this year. Unfortunately there is no workaround for this issue. I'll mark this incident as free so you will not be charged for this incident. Please let me know if you have further questions regarding this issue or you think it is ok to archive this issue for now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top