PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → [WD8] Setting/getting info about report paper?
[WD8] Setting/getting info about report paper?
Started by Raimund Schuldhaus, Jun., 14 2004 7:53 PM - 1 reply
Posted on June, 14 2004 - 7:53 PM
Hello,
I want to know how to get or set the paper size (A4, letter a.s.o.) of a report. I didn't found properties for such task!?
Best regards

http://www.invitec.com
Posted on June, 14 2004 - 9:59 PM
Hi Raimund,
afaik, page dimensions of a report cannot be retrieved because - as you can read under associated processes - the report will be resized to the paper size before printing. So, to my eyes, there is nothing like a fixed 'size' of a report. I do not know whether that really works like a zoom while printing the report, but according to manual, it does.
Dimensions of the paper can be retrieved with iPageHeight() and iPageWidth() as know for sure and they can be set with iPaprameter(..) if necessary and support of the printer is there ..
So, if you want to know whether the report will be printed on the desired page size, it should suffice to retrieve the current printer settings and compare them to the desired ones. If not, you could return a warning or even reject the print job.
Best regards,
Guenter
Hello,
I want to know how to get or set the paper size (A4, letter a.s.o.) of a report. I didn't found properties for such task!?
Best regards