Printing to selected printer

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Pat Keel
Newbie
Newbie
Posts: 9
Joined: Fri Nov 11, 2005 5:00 am

Printing to selected printer

Post by Pat Keel » Fri Jun 30, 2006 8:43 am

Hi,
How do I print the chart to another printer than the currently selected (default) printer?
I would like to select the printer and the page size (A4 or A3).

I'm working with Visual Studio 2005 an C#

Thanks for any help!
Pat

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Jun 30, 2006 3:43 pm

Hi Pat,

Yes, you can do that doing something like this:

Code: Select all

      tChart1.Printer.PrintDocument.PrinterSettings.PrinterName = "Printer Name";
      tChart1.Printer.PrintDocument.DefaultPageSettings.PaperSize = new System.Drawing.Printing.PaperSize(PaperName, PaperWidth, PaperHeight);
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Pat Keel
Newbie
Newbie
Posts: 9
Joined: Fri Nov 11, 2005 5:00 am

Post by Pat Keel » Fri Jun 30, 2006 9:38 pm

Hi Narcis,
Thank You very much, this is what I was looking for.
Pat

Post Reply