Page 1 of 1

How to set printer default paper(New paper)

Posted: Tue Aug 01, 2006 8:03 am
by Taiwan
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

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

Posted: Tue Aug 01, 2006 8:52 am
by Enrico Maria Giordano
Did you try TPrinter:SetPage() method?

EMG

Posted: Tue Aug 01, 2006 9:20 am
by Taiwan
Hello EMG

You mean oPrn:SetPage(255)??

Regards,

Richard

Posted: Tue Aug 01, 2006 10:04 am
by Enrico Maria Giordano
Open printer.prg and look at the defines

Code: Select all

// Defines for the oPrn:SetPage(nPage) method (The printer MUST support it)

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

Posted: Tue Aug 01, 2006 1:53 pm
by Greg Gammon
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

Posted: Tue Aug 01, 2006 4:11 pm
by Enrico Maria Giordano
Probably it was a printer driver problem.

EMG