Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GetReportVersion

Status
Not open for further replies.

AndrewBaines

Technical User
Apr 19, 2002
463
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top