PDA

Click to See Complete Forum and Search --> : Common Dialog Control help


jrap
Nov 9th, 1999, 07:42 PM
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!

Mark Sreeves
Nov 9th, 1999, 08:42 PM
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

Mark.Sreeves@Softlab.co.uk
A BMW Group Company


[This message has been edited by Mark Sreeves (edited 11-10-1999).]

MartinLiss
Nov 9th, 1999, 09:31 PM
There's nothing wrong with the Print dialog. Here's an example:
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