Exporting 3D chart to clipboard (as image)

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Sofia Moraes
Newbie
Newbie
Posts: 4
Joined: Fri Dec 28, 2018 12:00 am

Exporting 3D chart to clipboard (as image)

Post by Sofia Moraes » Fri Feb 01, 2019 4:26 pm

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

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

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

Post by Christopher » Tue Feb 05, 2019 7:25 am

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?
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

Sofia Moraes
Newbie
Newbie
Posts: 4
Joined: Fri Dec 28, 2018 12:00 am

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

Post by Sofia Moraes » Thu Feb 07, 2019 6:52 pm

Thanks Christopher,
It worked perfectly!

Post Reply