Heres what my app is trying to do:
Print a members card
Heres my code:
Me.AccountsTableAdapter.Connection = mainConnection Me.AccountsTableAdapter.NewQuery(Me.WaynokaDataSet.Accounts) With Me.ReportViewer1 .LocalReport.ReportPath = "G:\Bin\Waynoka Management\MemberCard" & varCardYear & ".rdlc" .LocalReport.DataSources.Add(New Microsoft.Reporting.WinForms.ReportDataSource("WaynokaDataSet_Accounts", dsReportList.Tables(0))) .SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout) End With Catch ex As Exception System.Windows.Forms.MessageBox.Show(ex.Message) End Try
The title is the error it throws up, but when I hover over this line of code:
.LocalReport.DataSources.Add(New Microsoft.Reporting.WinForms.ReportDataSource("WaynokaDataSet_Accounts", dsReportList.Tables(0)))
this is the error details it display:
"Me.ReportViewer1.LocalReport.DataSources = Count = (Count) threw an exception of type System.TypeLoadException."
SOMEONE PLEASE HELP. The guy who originally developed this program is ridiculously BAD at collaborating with me on this. He is currently looking into it but he hasnt even called me back about it and this is of the most importance as today the 2012 member cards start getting printed and they wont print! Thanks in advance!
Edited by SyncMaster170: n/a