FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Passing number of Copies to the printer
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Passing number of Copies to the printer
Posted: Sat Jun 02, 2012 01:03 PM

To All

How can you pass the number of copies to print to the printer object ?.. The program I am working on requires that I not present a printer dialog to select the printer properties. Just hit print and oPrint sends the job to the default printer to make two copies.

Any help would be appreciated.

Thanks
Rick Lipkin

Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: Passing number of Copies to the printer
Posted: Sat Jun 02, 2012 09:58 PM

Try
oPrn := PrintBegin( cTitle, lUser, lPrintPreview, cPrintModel, lModal, lSelection )
if Empty( oPrn:hDC )
return( .f. ) // Printer was not installed or ready
endif
oPrn:SetCopies( ::nNoCopies )
or
PrnSetCopies( nNoCopies )

Continue the discussion