Skip to Content
avatar image
Former Member

Issues when Exporting to pdf

In one of my VB.net programs I am attempting to create a report using a Crystal Reports .rpt file (EmployeeApplications.rpt). I need to have it create a pdf file on its W:\ drive. This works without error on my development computer however it does not create it when using one of the production computers (clones of the development). All have W:\ drives with full rights to all.

rd = ReportDocument

strReportPath = "F:\FormProc\Shared\CrystalReportsPOC\CrystalFiles\EmployeeApplication.rpt"

ds = dataset used to supply the data to the report

lcFileName = "W:\myReport.pdf"

rd.Load(strReportPath)  

rd.SetDataSource(ds)  

rd.ExportToDisk(ExportFormatType.PortableDocFormat, lcFileName)

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 21, 2017 at 01:27 PM

    Hi Pat,

    Possibly a problem with the 64 bit MDAC drivers or they require our 32 bit runtime to thunk it to 64 bits.

    Don

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 19, 2017 at 04:37 PM

    I was right!!! I ran the 32 bit msi on the prod computers and the problem disappeared. Files are now created, copied, etc. Obviously a problem in the 64 bit msi.

    Add comment
    10|10000 characters needed characters exceeded