Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Landscape printing in wxPerl

by Anonymous Monk
on Jun 27, 2013 at 07:22 UTC ( #1040934=note: print w/replies, xml ) Need Help??


in reply to Landscape printing in wxPerl

Unfortunately this does not work.

What happens? Are you using strict/warnings, what do you get for value of wxLANDSCAPE?

Replies are listed 'Best First'.
Re^2: Landscape printing in wxPerl
by arpad.szasz (Monk) on Jun 27, 2013 at 07:30 UTC

    It still prints in portrait mode.

      #!/usr/bin/perl -l -- use Wx qw/ :allclasses /; print Wx::wxPORTRAIT(); print Wx::wxLANDSCAPE(); my $pd = Wx::PrintData->new; print $pd->GetOrientation; $pd->SetOrientation( Wx::wxPORTRAIT() ); print $pd->GetOrientation; $pd->SetOrientation( Wx::wxLANDSCAPE() ); print $pd->GetOrientation; $pd->SetOrientation( 666 ); print $pd->GetOrientation; __END__ 1 2 1 1 2 666

      SetOrientation doesn't do much validation, if you feed it junk, I imagine the users/consumers of wxPrintData assumes the default (wxPORTRAIT)

      and Are you using strict/warnings, what do you get for value of wxLANDSCAPE?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1040934]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2016-12-08 12:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (141 votes). Check out past polls.