ActiveReport6 SP2, new PdfExport() Error: InvalidCastException

Posted by: novajiang1 on 18 December 2019, 6:26 pm EST

  • Posted 18 December 2019, 6:26 pm EST

    In some Computer , run folowing code:
    PdfExport _export = new PdfExport()

    Happens Exception:
  • Replied 18 December 2019, 6:27 pm EST

    Exception:System.InvalidCastException
    Exception Message:無法將類型 'System.String' 的物件轉換為類型 'System.String[]'。
    StackTrace:
    於 #RGn.#oMn.#YOn()
    於 #RGn.#oMn..ctor(FontCollection fontCollection)
    於 DataDynamics.ActiveReports.Export.Pdf.PdfExport.#RRn()
    於 DataDynamics.ActiveReports.Export.Pdf.PdfExport..ctor(#Cpc factory)
    於 sMES_Base.FileAccessProvider.ExportPDFtoFile(FileType type, String outputPath, String templateXML, DataSet data)

    Please help us to identify reason and solution.

    thanks.

  • Marked as Answer

    Replied 19 December 2019, 4:58 pm EST

    Hello,

    It seems that you are using AR6 on Win10 and AR6 is not compatible with Win10. Also, AR6 is a legacy product. It is out of development mode from a long time ago and we don't support it.

    I suggest you to upgrade to our latest version i.e AR14. For more information, you can refer the following link:
    https://www.grapecity.com/activereports
    https://www.grapecity.com/activereports/docs/v14/online/overview.html

    Also, you can download the trial version of AR14 from the following link:
    https://www.grapecity.com/download/activereports

    Thanks,
    Mohit
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels