Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 QCChart2D and QCChart2D CF (VB and C#)
 How to coding paper orientation to landscape
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pachart

15 Posts

Posted - 23 Feb 2004 :  17:59:25  Show Profile  Reply with Quote
I can preview and print chart. Also I can manually set paper orientation and other properties. Since my charts are always printed
in landscape so I want to default the paper orientation to landscape. Then I don't have to manually set the paper orientation each time when I preview or print charts. Is there a same setting in PrintObj like DefaultPaperSettings.Landscape as in .Net? How to code this? Please help. Thanks.

quinncurtis

1164 Posts

Posted - 25 Feb 2004 :  13:51:33  Show Profile  Reply with Quote
If you want your default print mode to be landscape, then setup the printer from the operating system to use landscape as the default. We do not know who to do it from a strictly programming standpoint.

It would help if you could supply us with examples of how this is done with .Net, assuming that you are printing using .Net but not using our charting software.
Go to Top of Page

quinncurtis

1164 Posts

Posted - 25 Feb 2004 :  20:42:51  Show Profile  Reply with Quote
The following line, added to our examples that print, seem to work

printobj.PrintDoc.DefaultPageSettings.Landscape = true;

Go to Top of Page

pachart

15 Posts

Posted - 26 Feb 2004 :  15:22:58  Show Profile  Reply with Quote
This line works

printobj.PrintDoc.DefaultPageSettings.Landscape = true

Thanks.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07