Page 1 of 1

Exporting to bitmap problems

Posted: Wed Feb 26, 2014 4:06 pm
by 15666633
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.

Re: Exporting to bitmap problems

Posted: Wed Feb 26, 2014 4:15 pm
by Christopher
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.