Print Preview

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Sinais
Newbie
Newbie
Posts: 5
Joined: Fri May 19, 2006 12:00 am
Location: Galicia, Spain

Print Preview

Post by Sinais » Mon Oct 02, 2006 4:35 pm

I'm making my own print preview dialog.

I would like to know how to implement the option "Format->Print background" from the standard tChart print preview dialog.

I'm drawing the preview with:

Code: Select all

		private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
		{
			tChart1.Chart.Draw(e.Graphics, GetRealMarginBounds(e, true));
		}
How can I make Chart.Draw not to print the background?

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

Post by Narcís » Tue Oct 03, 2006 10:22 am

Hi Sinais,

You can try using:

Code: Select all

      tChart1.Printer.PrintPanelBackground=false;
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

Post Reply