Export.MetafileFormat.Enhanced obsolete warning
Posted: Tue Feb 01, 2011 2:56 pm
Hello,
I'm currently working on making our code warning-free, and because of that I would like to eliminate the obsolete warning generated by a teechart property:
tChart1.Export.Image.Metafile.Enhanced = false;
I didn't write this code, but if I'm right this way we export a Windows Metafile instead of EMF. But this generates the following warning:
warning CS0618: 'Steema.TeeChart.Export.MetafileFormat.Enhanced' is obsolete: 'Please use EMFFormat property.'
The problem is that the suggested EmfFormat property accepts EMFTypes values, which can only be:
- EmfOnly
- EmfPlusDual
- EmfPlusOnly
Obviously this is not the way to go if one wants to export to WMF. So my question is how to resolve the above obsolete warning?
I'm currently working on making our code warning-free, and because of that I would like to eliminate the obsolete warning generated by a teechart property:
tChart1.Export.Image.Metafile.Enhanced = false;
I didn't write this code, but if I'm right this way we export a Windows Metafile instead of EMF. But this generates the following warning:
warning CS0618: 'Steema.TeeChart.Export.MetafileFormat.Enhanced' is obsolete: 'Please use EMFFormat property.'
The problem is that the suggested EmfFormat property accepts EMFTypes values, which can only be:
- EmfOnly
- EmfPlusDual
- EmfPlusOnly
Obviously this is not the way to go if one wants to export to WMF. So my question is how to resolve the above obsolete warning?