Page 1 of 1

Exporting 3D chart to clipboard (as image)

Posted: Fri Feb 01, 2019 4:26 pm
by 21085269
Hello,

I made a 3D chart using: myBar.GalleryChanged3D(true)
Where "myBar" is a Steema.TeeChart.Styles.Bar serie.

Ir works perfectly but when I export a image (to use within a report) with the code: TChart1.Export.Image.PNG.CopyToClipboard()

The style get back to 2D.
Is there a way to export 3D charts to image?

Thanks

Re: Exporting 3D chart to clipboard (as image)

Posted: Tue Feb 05, 2019 7:25 am
by Christopher
Hello!

The following code works as expected here:

Code: Select all

		public Form1()
		{
			InitializeComponent();

			tChart1.Aspect.View3D = true;
			tChart1.Series.Add(typeof(Bar)).FillSampleValues();
		}

		private void button1_Click(object sender, EventArgs e)
		{
			tChart1.Export.Image.PNG.CopyToClipboard();
		}
does this code work correctly at your end?

Re: Exporting 3D chart to clipboard (as image)

Posted: Thu Feb 07, 2019 6:52 pm
by 21085269
Thanks Christopher,
It worked perfectly!