ActiveReport6 SP2, new PdfExport() Error: InvalidCastException

Posted by: novajiang1 on 19 December 2019, 3:26 am EST

    • Post Options:
    • Link

    Posted 19 December 2019, 3:26 am EST

    In some Computer , run folowing code:

    PdfExport _export = new PdfExport()

    Happens Exception:

  • Posted 19 December 2019, 3:27 am EST - Updated 30 September 2022, 12:59 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.

  • Posted 20 December 2019, 1:58 am 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