hi
please can you tell me how to get a page height and width in pixels from wpdfprinter.canvas?
thank you
jenny
Pageheight and width
-
-
- Offizieller Beitrag
wpPDFPrinter1 has property CanvasReference. That can be defined for
Screen or the default Printer. In your case it seems to be the
Printer.When you use StartPage you specify a resolution. That will not change
the hard resolution (which is provided by GetDeviceCaps) but just use
SetViewPort to install a logical resolution. That logiucal resolution
is used until you change it (i.e. with SetMapMode)So, unless you do anything, you can rely on the resolution used in
StartPage -
Thank you - I have it working perfectly now