SetPaperSize(wx.Size(x,y))

I was trying to setup a custom paper size of 92 x 212 millimeters, and was
having problems. I would issue a SetPaperSize(wx.Size(212, 92)) and it
would come back as 0,0.

Then I issues a SetPaperId(wx.PAPER_NONE) before issuing a
SetPaperSize(wx.Size(212, 92)) and it seems to work. Is this the proper
2-step method for setting a custom paper size in MM?

I posted this because googling around, I found people with the same problem
(as far back as 2000) and didn't see this answer specifically, so I thought
I'd post it for all to see and comment upon.

Happy New Year!
Dave

S. D. Rose wrote:

I was trying to setup a custom paper size of 92 x 212 millimeters, and was
having problems. I would issue a SetPaperSize(wx.Size(212, 92)) and it
would come back as 0,0.

Then I issues a SetPaperId(wx.PAPER_NONE) before issuing a
SetPaperSize(wx.Size(212, 92)) and it seems to work. Is this the proper
2-step method for setting a custom paper size in MM?

Yes, I think so.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Hello Robin,

Friday, December 30, 2005, 8:33:36 PM, you wrote:

S. D. Rose wrote:

I was trying to setup a custom paper size of 92 x 212 millimeters, and was
having problems. I would issue a SetPaperSize(wx.Size(212, 92)) and it
would come back as 0,0.

Then I issues a SetPaperId(wx.PAPER_NONE) before issuing a
SetPaperSize(wx.Size(212, 92)) and it seems to work. Is this the proper
2-step method for setting a custom paper size in MM?

Yes, I think so.

In fact you 1st have to initiate the paper/ canvas and then size it.

···

--
Best regards,
the_shelter mailto:pdftex@the-shelter.de