ramnujs
Well-known member
I am in the process of refactoring my codes and i used late binding and usings assembly class to create my objects at runtime.
it works perfectly to Windows Forms and Custom classes created but with Reports Objects like Report viewer, i cant get the objects properties or fields or even methods... i was attempting to do the following:
object rptViewer = frmReportViewer.GetType().GetField("rptViewer");
PropertyInfo pinfo = rptViewer.GetType().GetProperty("ReportSource");
/// the pinfo returns a null value
///rtpViewer is an
CrystalDecisions.Windows.Forms.CrystalReportViewer object attached in frmReportViewer form
it works perfectly to Windows Forms and Custom classes created but with Reports Objects like Report viewer, i cant get the objects properties or fields or even methods... i was attempting to do the following:
object rptViewer = frmReportViewer.GetType().GetField("rptViewer");
PropertyInfo pinfo = rptViewer.GetType().GetProperty("ReportSource");
/// the pinfo returns a null value
///rtpViewer is an
CrystalDecisions.Windows.Forms.CrystalReportViewer object attached in frmReportViewer form