Passing number of Copies to the printer

Passing number of Copies to the printer

Postby Rick Lipkin » Sat Jun 02, 2012 1: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
User avatar
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Passing number of Copies to the printer

Postby Gale FORd » Sat Jun 02, 2012 9: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 )
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 101 guests