Re: Landscape and Portrait printing in the same document

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Rick Hein (RickJHein_at_gmail.com)
Date: 01/19/05


Date: 19 Jan 2005 11:01:09 -0800

To the gentleman that called me today: (1/19/2005) - Please call me
back - I think I might have an answer to your problem.

Thanks.
Rick

Rick Hein wrote:
> Don't know if this is the right place to ask this question, but here
goes. I
> have an application that needs to have some reports printed from it.
Some of
> the pages I want to be in portrait mode, and some I want in Landscape
mode.
> Setting the document.DefaultPageSettings.Landscape = true or false
doesn't
> seem to have any affect.
>
> The C# code looks something like this
> private void button2_Click(object sender, System.EventArgs e)
>
> {
>
> PrintDialog pd = new PrintDialog();
>
> pd.Document = doc;
>
> pd.ShowDialog();
>
> doc.PrinterSettings.Equals(pd.PrinterSettings);
>
>
> iTabCount = 0;
>
> currentPage = 1;
>
> doc.Print();
>
> }
>
>
>
> private void doc_PrintPage(object
> sender,System.Drawing.Printing.PrintPageEventArgs ev)
>
> {
>
> if(foo== bar){
>
> document.DefaultPageSettings.Landscape = true;
>
> }
>
> else
>
> {
>
> document.DefaultPageSettings.Landscape =false;
>
> }
>
> Drawstring ......
>
>
>
> }
>
> This is pseudocode granted, but you get the idea. For some reason
however it
> doesn't make any difference, any ideas on how I can do this? Other
than a
> rotateTransform and Translate Transform? Or is this a limit of the
printer
> drivers - A document can only be portrait or only landscape but not
both?
>
> thanks
>
> Rick Hein
>
> rhein@mutualofenumclaw.com



Relevant Pages

  • Zaurus SL-C3000 rotation broken
    ... My rotating screen Zaurus has screwed itself up (or maybe I did it ... When I open it (landscape) it displays in portrait mode, ... decides to rotate *part* of the screen to landscape. ...
    (comp.os.linux.portable)
  • Phaser 3500 ignores lp -o media=COM10
    ... I want to print on paper with dimensions like US envelopes (241 mm x 105 ... mm) but not in landscape but in portrait mode (separators for lever arch ...
    (comp.sys.xerox)
  • Re: Orientation sensing in digital cameras?
    ... individual foto is being taken in landscape or portrait mode, ... Does that mean that you don't have to rotate the picture to restore ... the correct orientation when you download your pictures? ... photocopied and I use both landscape and portrait formats). ...
    (sci.optics)
  • Re: How get out of landscape mode?
    ... You can see what section you're in on the status bar. ... If you want your whole document to be portrait, then you need to remove all ... prints in landscape mode. ... I want this whole section to be portrait mode. ...
    (microsoft.public.word.pagelayout)
  • RE: Rotate screen
    ... not detect the screen is portrait or landscape. ... RGDS ... "Chua Wen Ching" wrote: ... > private void Form1_Load ...
    (microsoft.public.dotnet.languages.csharp)