I would like to use PrintDlg_() API and not PrintRequester(), but still use PB printing commands.
So, how do I use hDC got from PrintDlg_()?
Code: Select all
Global DEVNAMES.DEVNAMES
Global PrintDlg.PRINTDLG
PrintDlg\hDevMode = 0
PrintDlg\hDevNames = 0
PrintDlg\lStructSize = SizeOf(PRINTDLG)
PrintDlg\Flags = #PD_ALLPAGES|#PD_RETURNDC
If PrintDlg_(PrintDlg) <> #False
; how to use PrintDlg\hDC here or can I???
If StartPrinting("Print:")
printer_DC.l = StartDrawing(PrinterOutput())
;...
StopDrawing()
StopPrinting()
EndIf
Timo