HI.
I know how to make the Print box show, but how can I use those settings when I print the document? What is the code to print with the settings specified in the Print control box?
Thanks!
Printable View
HI.
I know how to make the Print box show, but how can I use those settings when I print the document? What is the code to print with the settings specified in the Print control box?
Thanks!
OH NO!
The dreaded print dialogbox!
If/when you have problems with it, it's probably not your fault.
Microsoft know that it's shite and their suggested fix on MSDN is write your own!!
Using APIs to the DLLs instead doesn't help either!
------------------
Mark Sreeves
Analyst Programmer
[email protected]
A BMW Group Company
[This message has been edited by Mark Sreeves (edited 11-10-1999).]
There's nothing wrong with the Print dialog. Here's an example:
Code:frmPreview.dlgPreview.CancelError = True
frmPreview.dlgPreview.Flags = cdlPDNoSelection _
Or cdlPDUseDevModeCopies _
Or cdlPDHidePrintToFile _
Or cdlPDNoPageNums
frmPreview.dlgPreview.Min = 1
frmPreview.dlgPreview.Action = 5
If Err = 32755 Then Exit Sub 'Cancel
gnCopies = frmPreview.dlgPreview.Copies
------------------
Marty