Skip to Content
0
Oct 11, 2019 at 04:41 PM

Client install issues for crystal report for VS

411 Views

I am upgrading our .NET application and crystal reports XI to avoid the old 1.0 .NET Framework on our network? Our reports used to use ttx files, this was changed to XSD to remove issues with ttx on 64 bit machines. The application was designed so that we could add report names and stored procedures and parameters to a table for the new reports to be added without recompiling the application. The application runs on release mode on the development machine, but when I go to a fresh client machine to install the application, I receive the error 'The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.' I have installed the crystal reports for VS redist install 64 bit 13.0.20. The .net framework of 4.8 and 3.5 are on the client. Any other suggestions as to what is wrong

Code following

_rpt = New ReportDocument

_rpt.Load(ConfigurationManager.AppSettings("Report Directory") & MyReport.ReportFile)

_rpt.SetDataSource(MyDataSet.Tables(0))

CrystalViewer.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None
CrystalViewer.ShowGroupTreeButton = True
CrystalViewer.ReportSource = _rpt

Me.Dock = DockStyle.Fill
Me.TopMost = True

Barbra Hofstetter