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

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -