in reply to Re: Landscape printing in wxPerl
in thread Landscape printing in wxPerl

It still prints in portrait mode.

Replies are listed 'Best First'.
Re^3: Landscape printing in wxPerl
by Anonymous Monk on Jun 27, 2013 at 08:01 UTC
    #!/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)

Re^3: Landscape printing in wxPerl
by Anonymous Monk on Jun 27, 2013 at 07:37 UTC
    and Are you using strict/warnings, what do you get for value of wxLANDSCAPE?