Problem using ReportPro2 for X#
Posted: Sat Aug 08, 2020 5:10 pm
I'm new user of X# and ReportPro2 for X#.
I put this statements first
USING VO
USING ReportPro2
USING ReportPro2_Base
USING ReportPro2_Runtime
USING VOGUIClasses
USING VOWin32APILibrary
after using this code
oReport := RpReport{SELF, cRptPath + cRpt, cDBFPath}
IF oReport:IsValid
oReport:PrintPreview (cJobName, cPrint2FileName, cCaption, cMessage, TRUE, SW_SHOWMAXIMIZED)
I get error:
error XS0144: Cannot create an instance of the abstract class or interface 'ReportPro2.RpReport'
error XS1061: 'ReportPro2.RpReport' does not contain a definition for 'IsValid' and no accessible extension method 'IsValid' accepting a first argument of type 'ReportPro2.RpReport' could be found (are you missing a using directive or an assembly reference?)
error XS1061: 'ReportPro2.RpReport' does not contain a definition for 'PrintPreview' and no accessible extension method 'PrintPreview' accepting a first argument of type 'ReportPro2.RpReport' could be found (are you missing a using directive or an assembly reference?)
does anybody know what problem is.
Zeljko
I put this statements first
USING VO
USING ReportPro2
USING ReportPro2_Base
USING ReportPro2_Runtime
USING VOGUIClasses
USING VOWin32APILibrary
after using this code
oReport := RpReport{SELF, cRptPath + cRpt, cDBFPath}
IF oReport:IsValid
oReport:PrintPreview (cJobName, cPrint2FileName, cCaption, cMessage, TRUE, SW_SHOWMAXIMIZED)
I get error:
error XS0144: Cannot create an instance of the abstract class or interface 'ReportPro2.RpReport'
error XS1061: 'ReportPro2.RpReport' does not contain a definition for 'IsValid' and no accessible extension method 'IsValid' accepting a first argument of type 'ReportPro2.RpReport' could be found (are you missing a using directive or an assembly reference?)
error XS1061: 'ReportPro2.RpReport' does not contain a definition for 'PrintPreview' and no accessible extension method 'PrintPreview' accepting a first argument of type 'ReportPro2.RpReport' could be found (are you missing a using directive or an assembly reference?)
does anybody know what problem is.
Zeljko