Re: [PythonReports-users] Preview and landscape
Brought to you by:
a1s
From: Werner F. B. <wer...@fr...> - 2012-12-11 14:13:55
|
Hi Alex, Sorry for previous direct email, need to get used to use "reply to list":-( . On 11/12/2012 14:52, alexander smishlajev wrote: > Werner F. Bruhin wrote, at 11.12.2012 15:16: >> >>>> Just noticed that if my report is defined "A4" and I check "landscape" >>>> the preview is still showing it in "portrait" view. >>> I am sorry, I do not see how wxPrintout can control page orientation. >> >> I never used the wx print framework, so take the following with a grain >> of salt. >> >> In the wxPython demo (I use 2.9.4.0) there is an button "Page setup" and >> if I select landscape in there and then do Preview I see a difference >> between landscape and default portrait layout. > > Do you mean that wxPreviewFrame should have a button for print setup? > > I agree. Still, that does not solve the per-page size/orientation > question. That means that on certain reports wx-based preview will > appear incorrect. No, I don't think the Preview in PythonReports should have a button, it should pick up the page definition of the template and do the necessary thing to show it correctly - if nothing is defined then default e.g. to A4 portrait. Best regards Werner |