wxPrintout
tDR112
tdr112 at gmail.com
Thu May 1 09:04:53 PDT 2008
hi,
I am having a little trouble with wxPrintout. I am printing to A3 paper in
landscape. When I call GetPageSizeMM , Its returns 404mm and 286mm for the
width and the height, when the size of A3 paper is 420mm and 297mm.I get the
same value when I call rec=3DGetPageSizePixels and then rec.GetWidth().I kn=
ow
printers cant print to the very end of the page and this different must be
to reflect that.
Here is my problem, I want to draw lines 10mm in from the edge of the page,
I have code to change from mm to pixels, but when I draw to my dc, the size
of the dc is only 404mm by 286mm i need it to be the full A3 size.Or i need
i way to move my points from the A3 size to the smaller printable region
size of 404mm by 286mm.
The solution so far.
I have found out by printing to the very end of the page, that the printer
can only print to ~4mm on the top , ~6mm on the sides and ~12mm on the
bottom.But with out knowing the precise values and I cant move my lines to
compensate.Therefore I need to make the size of wxPrintout to be the full A3
size.
Using wxWidgets-2.8.7 in Visual Studio 2005
Any help would be great ,
Thanks,
-- =
Jeffrey Roe,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20080501/497=
d56e2/attachment.htm
More information about the wx-users
mailing list