c# - "CrystalDecisions.Windows.Forms.ReportDocuments' does not contain a definition for 'Load'" error while loading ReportDocuments -
reportdocuments rdoc = new reportdocuments(); string apppath = application.startuppath; string reppath = @"reports\report.rpt"; string fullpath = path.combine(apppath, reppath); rdoc.load(fullpath); crystalreportviewer1.reportsource = rdoc; crystalreportviewer1.refresh();
this code gives error
error1'crystaldecisions.windows.forms.reportdocuments' not contain definition 'load' , no extension method 'load' accepting first argument of type 'crystaldecisions.windows.forms.reportdocuments' found (are missing using directive or assembly reference?) c:\users\acs\documents\visual studio 2013\projects\crystalreportdemo\crystalreportdemo\form1.cs
at line
rdoc.load(fullpath);
please me solve problem.
change reportdocuments reportdocument.
Comments
Post a Comment