export to .pdf and .jpg file (ASP.Net)

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Leszek
Newbie
Newbie
Posts: 7
Joined: Fri Dec 07, 2007 12:00 am

export to .pdf and .jpg file (ASP.Net)

Post by Leszek » Wed Mar 19, 2008 11:28 am

Hi,
I'm using TeeChart and ASP.Net 2.0.
How I can export my chart to .pdf and .jpg file?
Regards.
Leszek

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

Post by Narcís » Wed Mar 19, 2008 11:53 am

Hi Leszek,

The easiest way is doing this:

Code: Select all

						WebChart1.Chart.Export.Image.JPEG.Save(JPGfilename);
						WebChart1.Chart.Export.Image.PDF.Save(PDFfilename);
For further information please read Tutorial 12 - Exporting and Importing Charts. You'll find the tutorials at TeeChart's program group.
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

Leszek
Newbie
Newbie
Posts: 7
Joined: Fri Dec 07, 2007 12:00 am

Post by Leszek » Wed Mar 19, 2008 1:36 pm

Hi Narcis,
Thank you for answer.
I have next question. How I can print web TeeChart?
Regards.
Leszek

Leszek
Newbie
Newbie
Posts: 7
Joined: Fri Dec 07, 2007 12:00 am

Post by Leszek » Wed Mar 19, 2008 2:06 pm

I have next problem :(
When I'm writing teeChart to pdf file :
myChart1.Chart.Export.Image.PDF.Save("c:/myChart1.pdf");
I have message:
"The font 'Verdana' contains a bad /BBox"
myChart1.pdf contain chart but without axis's notations.
Thanks.
Leszek

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

Post by Narcís » Wed Mar 19, 2008 2:14 pm

Hi Leszek,

The easiest way is using browser printing facilities. You can also use this:

Code: Select all

    WebChart1.Chart.Printer.Print();
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