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
410
SaveTo function fails on WMF
posted

I get an error when performing the following.

Me.UltraChart1.SaveTo(SaveFileDialog1.FileName, System.Drawing.Imaging.ImageFormat.Wmf)

 "System.ArgumentNullException: Value cannot be null"

Other  format types works fine. see code below.

If SaveFileDialog1.ShowDialog() = DialogResult.OK Then
            Dim sExt As String = SaveFileDialog1.FileName.Substring(SaveFileDialog1.FileName.LastIndexOf(".") + 1, 3).ToUpper()

            Select Case sExt
                Case "JPG"
                    Me.UltraChart1.SaveTo(SaveFileDialog1.FileName, System.Drawing.Imaging.ImageFormat.Jpeg)

                Case "BMP"
                    Me.UltraChart1.SaveTo(SaveFileDialog1.FileName, System.Drawing.Imaging.ImageFormat.Bmp)

                Case "GIF"
                    Me.UltraChart1.SaveTo(SaveFileDialog1.FileName, System.Drawing.Imaging.ImageFormat.Gif)

                Case "WMF"
                    Me.UltraChart1.SaveTo(SaveFileDialog1.FileName, System.Drawing.Imaging.ImageFormat.Wmf)

            End Select


            MsgBox("Save As Complete", MsgBoxStyle.OkOnly, cMANAGES)

        End If

Parents
  • 53790
    posted

    Hello Patknoll,

     

    It is know issue for us and we work on it.  I already create a case for you with reference number CAS-72070-93RGTM.  I`ll provide you more information via  the case. Please if you have any questions, do not hesitate to write me in this forum thread or through the case.

    Regards

Reply Children
No Data