Exporting to bitmap problems

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Petr
Newbie
Newbie
Posts: 39
Joined: Wed Jul 24, 2013 12:00 am

Exporting to bitmap problems

Post by Petr » Wed Feb 26, 2014 4:06 pm

Hello, i'm trying to Save a bitmap of chart, i use to export it to .bmp with

public void PrintChart()
{

m_TChart.Export.Image.Bitmap.Save("preprint.bmp");

}
I use direct2D as a Graphics. As a result i get only black rectangle. What am i doing wrong, and how can i get the chart bitmap in other way. I also tried to use Bitmap property of TeeChart directly, but the result is the same.

P.S. Generely i wanted to Print chart. I Trid to use Printer.Preview(), but there's a white sheet in a Print Preview dialog. Somethere on the forum i saw a topic about a problems with printing in case of using dierct2D, so may be it's related. Also i'm using the latest version of TeeChart.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Exporting to bitmap problems

Post by Christopher » Wed Feb 26, 2014 4:15 pm

Petr wrote:P.S. Generely i wanted to Print chart. I Trid to use Printer.Preview(), but there's a white sheet in a Print Preview dialog. Somethere on the forum i saw a topic about a problems with printing in case of using dierct2D, so may be it's related. Also i'm using the latest version of TeeChart.
This is a known issue and progress on it can be read in bug ID356.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply