f



change printer in report pro to non default printer

Whenever i change my printer to a not default, it will at the end print to the default.
Am i missing something?



oReport := RpReport{ oSELF:owner,m->reportpath+ 'labels.rpt',,{{'labels',ofile, , ,,,nil}}}   
oReport:Connect2Source()           
oprinter:= PtrDevice{oself, oReport}          
if !oprinter:SetPrinterByName(clabelprinter)
   return false
endif	   
if oprinter:ShowPrintDlg()
// label printer is selected here
endif	
.....
oReport:Print(cJobName,cPrint2Filename,cCaption,CMessage)    

// prints to default printer??

Thx,

Geert
0
geert
2/15/2013 9:48:44 AM
comp.clipper.visual-objects 12618 articles. 2 followers. Post Follow

2 Replies
592 Views

Similar Articles

[PageSpeed] 54

oReport := RpReport{ SELF, SELF:oShell:sReportPath + cReport, SELF:oShell:sDataPath }
//
oReport:PrinterDevice:SetPrinterByName(SELF:oDCCBReportPrinter:currenttext)

This is how I set the printer ...  

Phil McGuinness

0
Sherlock
2/15/2013 11:27:08 AM
Thx,

It works ok now

Geert


0
geert
2/15/2013 12:00:34 PM
Reply: