Saving bar graphs as metafile
Saving bar graphs as metafile
I have a rectangular bar graph, which is using gradient fill. I am trying to save it to a metafile (EmfPlusOnly). If I set relative gradient to false - it works, but if relative gradient is set to true, then all I get is either hollow bars or partially hollow bars. Either make it work or remove the option from screen.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi UserLS,
Code below works fine for me here using latest TeeChart for .NET v3 release available at the client area. Can you please modify it so that we can reproduce the issue here?
Thanks in advance.
Code below works fine for me here using latest TeeChart for .NET v3 release available at the client area. Can you please modify it so that we can reproduce the issue here?
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
private void InitializeChart()
{
Steema.TeeChart.Styles.Bar bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
bar1.FillSampleValues();
bar1.Gradient.Visible = true;
bar1.GradientRelative = true;
tChart1.Export.Image.Metafile.EMFFormat = System.Drawing.Imaging.EmfType.EmfOnly;
tChart1.Export.Image.Metafile.Save(@"c:\temp\bargradient.emf");
}
Best Regards,
Narcís Calvet / 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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi UserLS,
Sorry, my fault. I could reproduce the issue here using EMFFormat setting you mentioned and added the defect to the list (TF02013693). In the meantime you can use EmfOnly.
Sorry, my fault. I could reproduce the issue here using EMFFormat setting you mentioned and added the defect to the list (TF02013693). In the meantime you can use EmfOnly.
Best Regards,
Narcís Calvet / 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 |