Hi. I have a component in vb.net to export to pdf . When the application runs on Windows 10 , when exporting to PDF , reports an exception in the type initializer " CrystalDecisions.CrystalReports.Engine.ReportDocument " . In other versions of Windows , it works ok . Anyone know how to solve the problem?
This is the method of the class that performs export to pdf:
Methods:
Public Sub New()
MyBase.New()
End Sub
Public Sub ExportarRptToPDF(ByVal pRutaRPT As String, ByVal pRutaPDF As String)
Dim rep As New CrystalDecisions.CrystalReports.Engine.ReportDocument
rep.Load(pRutaRPT, CrystalDecisions.Shared.OpenReportMethod.OpenReportByTempCopy)
Try
rep.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, pRutaPDF)
Catch ex As Exception
Dim s As String = ""
End Try
End Sub
Thank you very much!
Joaquín .
What SDK are you u sing and version?
Dis you install the 3.5 framework?
32 or 64 bit application?
Lots of notes on the download page:
Support Packs for "SAP Crystal Reports, developer version for Microsoft Visual Studio" (SAP Crystal Reports for Visual Studio) are scheduled on a quarterly bases and support the following versions of Visual Studio:
NOTE: CR Redist packages for deploying the runtime only onto Work Stations and Application Servers are designed for the platform of your project and not for the Operating system. MSIExec will detect if the OS is 64 bit and install the 64 bit MSI, if your project is to be used in x86 mode there will be an error generated.
Fixes for each Support Pack are prioritized and released on or about end of each yearly quarter. All support packs are full builds of Crystal Reports for Visual Studio, thus it is not necessary to update incrementally. The most recent Support Pack in the below table is listed first.
To keep current and up to date with new releases as well as KBAs and more follow us on Twitter
Update: All Service Packs are cumulative so we are removing the links to previous patches and will be keeping 3 or 4 still active. Links still work if you have them.
Please note: To integrate "SAP Crystal Reports, developer version for Microsoft Visual Studio" you must run the Install Executable. Running the MSI will not fully integrate Crystal Reports into VS. MSI files by definition are for runtime distribution only.
By default Windows 10 does not install the 3.5 framework, CR for VS still needs it. Select it by "Turn Windows feature on or off" and choose both options.
Note 2: SAP Crystal Reports, Developer Version for Visual Studio .NET does NOT support Express Editions of any version of Visual Studio .NET.
WARNING: If you are using any third party applications that use the SDK package Please check with the makers of the software and ask if they have tested with the version you are downloading. If they do not support it at this time do not install the package on your PC, it could break their application.
Don
Add a comment