EASYREPORT oVRD NAME ".\xVrd\MeldeX.vrd" ;
PREVIEW lPreview TO cPrinter OF oWnd PRINTDIALOG IIF( lPreview, .F., .F. )Although I pass cPrinter rPreview for me is always printing to the standard printer.
Somehow oDevice:hDC is the hDC from the standard printer.
As a quick solution to go ahead with our yearly updates I use this fix.
Best regards,
Otto
METHOD PrintPrv( oDlg, nOption, nPageIni, nPageEnd ) CLASS TPreview
local oDevice := ::oDevice // DEVICE
local aFiles := oDevice:aMeta
local hMeta := ::oMeta1:hMeta
local nFor
CursorWait()
//xbrowse( oDevice )
//? oDevice:hDC
oDevice:hDC = PrinterDcFromName( , oDevice:cModel, )
//? oDevice:hDCStartDoc( oDevice:hDC, oDevice:cDocument )