I have created a sharpreport using pull method and it showing by reportviewer but when writing the following code to execute it from windows form it throws an exception "Type initializer for ICSharpCode.Reports.Core.Exporter.ExportTex.
Sub Button1Click(ByVal sender As Object, ByVal e As EventArgs)
Dim Reportpath as String
Dim engine As New ReportEngine
Dim ReportModel As New ReportModel
Dim pageBuilder As ICSharpCode.Reports.Core.Exporter.BasePager
Reportpath = "F:\sharpdevelop\SharpReportExample\SharpReportExample\Report1.srd"
reportModel = ReportEngine.LoadReportModel(reportPath)
Dim previewControl1 As New ICSharpCode.Reports.Core.ReportViewer.PreviewControl()
previewControl1.SetupAsynchron(reportModel)
previewControl1.Anchor = DirectCast(((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) Or System.Windows.Forms.AnchorStyles.Left) Or System.Windows.Forms.AnchorStyles.Right)), System.Windows.Forms.AnchorStyles)
previewControl1.Size = New System.Drawing.Size(Width, Height)
Me.ClientSize = New System.Drawing.Size(Width, Height)
Controls.Add(previewControl1)
End Sub
Please give reply.