How to set printer default paper(New paper)

How to set printer default paper(New paper)

Postby Taiwan » Tue Aug 01, 2006 8:03 am

Hello

I have set new paper size value in printer server option.
When I select LQ-2180C point printer and set default A4 to my new Paper
But my LQ-2180C alwayse get A4 paper not my new paper.
How to do it or any solution? I guess any point printer same problem.

Regards,

Richard
User avatar
Taiwan
 
Posts: 218
Joined: Fri Oct 07, 2005 1:55 am
Location: Taipei, Taiwan

Re: How to set printer default paper(New paper)

Postby Enrico Maria Giordano » Tue Aug 01, 2006 8:52 am

Did you try TPrinter:SetPage() method?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Taiwan » Tue Aug 01, 2006 9:20 am

Hello EMG

You mean oPrn:SetPage(255)??

Regards,

Richard
User avatar
Taiwan
 
Posts: 218
Joined: Fri Oct 07, 2005 1:55 am
Location: Taipei, Taiwan

Postby Enrico Maria Giordano » Tue Aug 01, 2006 10:04 am

Open printer.prg and look at the defines

Code: Select all  Expand view
// Defines for the oPrn:SetPage(nPage) method (The printer MUST support it)

#define DMPAPER_LETTER    1       // Letter 8 1/2 x 11 in
...


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Greg Gammon » Tue Aug 01, 2006 1:53 pm

I had little luck myself with printer definitions....I have one form that must print on Legal Size (US) and the defines never worked.

I ended up hard-coding the paper size:

prnSetSize( 2159, 3556 ) // Legal Size

Works perfectly.

Greg
User avatar
Greg Gammon
 
Posts: 105
Joined: Fri Jun 09, 2006 3:27 pm
Location: Bryan, Texas

Postby Enrico Maria Giordano » Tue Aug 01, 2006 4:11 pm

Probably it was a printer driver problem.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 84 guests