Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
500
SaveTo fails with ImageFormat.Emf
posted

Hi,

I tried to save my chart as EMF-File with

this.ultraChart1.SaveTo(sEMFFile, System.Drawing.Imaging.ImageFormat.Emf);

but it fails. It works with png, bmp and other formats, but not with emf or wmf. What am I doing wrong?

Thanks in advance.

Parents
  • 53790
    posted

    Hi,

    Please look the attached example. There I suggest you two possible variants to save your image in EMF format. Please start the example and push both buttons, each of them will save the image in EMF format, but please look the code behide of each buttons.

    In the internet formums has different oppinion about this issue. If you want look at:

    The reason why this exception occurs while saving in EMF or WMF format is because it is not supported by the .NET framework. Please refer to  http://support.microsoft.com/kb/316563  article for further details.

    In any way, please try my solution and if you have any questions, please ask me

    Regards

    Georgi

    UltraChartSaveToEMF.zip
Reply Children