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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW DO YOU DISPLAY THE PRINT DIALOG BOX IN VB6? 2

Status
Not open for further replies.

Hiccup

Programmer
Jan 15, 2003
266
US
Can anyone tell me the code syntax to display the printer's "Print Dialog Box" before the print operation takes place so that the user can select the paper size, no. of copies, etc.?

I've tried:

CommonDialog1.ShowPrinter

This is what is suggested in the MSDN Library, but it's not working!

Thanks in advance!
 
search this forum for ShowPrinter




Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
Also, can you please not post your topic titles in all-caps? It makes them hard to read, and you end up looking like a newbie (which you aren't, with over 120 posts to Tek-Tips).

Thanks.
Chip H.


____________________________________________________________________
Click here to learn Ways to help with Tsunami Relief
If you want to get the best response to a question, please read FAQ222-2244 first
 
Hiccup,

Display of Printer and Print Setup Dialogs using the Common Dialog control is well documented elsewhere but you may also consider The latter is more complicated but is more flexible. I have some wrapper code for VBPrnDlg.dll if you would like to pursue that avenue.

regards Hugh
 
Thanks DrJavaJoe and HughLerwill....here a star for your help!

chiph...puzzeled why ALL CAPS WOULD OFFEND YOU AND MAKE ONE LOOK LIKE A NEWBIE?? Reply with helpful info and you too might receive a star! Sorry :(
 
Hiccup
On the internet, all caps is conventionally considered equivalent to SHOUTING.
This is typical newbie who is still new to the internet and don't know these things.
For more info about this, read <a href=javascript:gofaq(222,2244)>FAQ222-2244</a>

Eman_2005
Technical Communicator
 
Enough said about this! To conform,...no more caps and my apologizes.

Hiccup, newbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top