| Rob van Erk 2007-10-18, 7:55 am |
| I have an old application that needs to be updated. It works with
ReportPro 3.0 and one of the .MEF's that was imported reads
"rp3runtime". Because I have a new laptop I patched to the latest
version of Report Pro (3.6) and installed VO2.7b. After I imported my
old application and run the app I get the following errormessage:
Error Code: 28 [Wrong Class]. This is on following code:
oReport := rp3Runtime{SELF}
oReport:HyperLabel:=HyperLabel{#rp3Runti
me,"rp3Runtime",NULL_STRING,NULL_STRING}
===> oReport:CreateEmbedding("ReportPro.Runtime")
oReport:InitAutoObject()
oReport:LoadReport(&sReport)
I'am not so experienced and wonder what is wrong. My first impression
was to just delete the Rp3Runtime module from my application and
import a new one from ReportPro 3.6. In the \\rp3\Active X Examples I
found the Rp3Runtime but after an import and compile my code generates
all kind of errors. This is mainly cause by unknown variables like
RPT_ATTR_DFLT_DATA_PATH
oReport:SetReportStringAttribute(RPT_ATT
R_DFLT_DATA_PATH,&sDir)
Can anyone point me in the right direction? I found something about
classmate but when I try to import the AEF RP3 Runtime DLL than I get
a warning "Classmate library not found".
Sorry for this (for some of you) stupid question but I would like to
update my program which is used by our customer for 5 years now and
apparently needs some updates.
Thanks,
Rob
|