AndrewBaines
Technical User
I'm trying to get the Revision Number from an rpt file using VB.
I can't find any reference to it in the RDC, so I'm trying to use the CRPE32.dll. I've found PEGetReportVersion but all I'm getting back is 0.0.
I don't know if my code is wrong or if I'm looking at the wrong structure.
My code is (slightly abbreviated):
'reploc is a string with the report file name
PEOpenEngine()
jobNum = PEOpenPrintJob(repLoc)
verRet = PEGetReportVersion(jobNum, vers)
strVersion = (CStr(vers.major) + "." + CStr(vers.minor))
Call PEClosePrintJob(jobNum)
Call PECloseEngine
strVersion = (CStr(vers.major) + "." + CStr(vers.minor) + " letter: " + vers.letter)
getVersion = strVersion
Any ideas what's going wrong? Andrew Baines
Chase International
I can't find any reference to it in the RDC, so I'm trying to use the CRPE32.dll. I've found PEGetReportVersion but all I'm getting back is 0.0.
I don't know if my code is wrong or if I'm looking at the wrong structure.
My code is (slightly abbreviated):
'reploc is a string with the report file name
PEOpenEngine()
jobNum = PEOpenPrintJob(repLoc)
verRet = PEGetReportVersion(jobNum, vers)
strVersion = (CStr(vers.major) + "." + CStr(vers.minor))
Call PEClosePrintJob(jobNum)
Call PECloseEngine
strVersion = (CStr(vers.major) + "." + CStr(vers.minor) + " letter: " + vers.letter)
getVersion = strVersion
Any ideas what's going wrong? Andrew Baines
Chase International