if you use the craxdrt.dll/cpeaut.dll then write this
Public oRptPrintingStatus As CRPEAuto.PrintingStatus
or
Public oRptPrintingStatus As CRAXDRT.PrintingStatus
Set oRptPrintingStatus = cr.PrintingStatus
totalNumberofPage = oRptPrintingStatus.NumberOfPages
Good luck
Janet
Quote:
> i am using RDC. i want to assign the total number of pages of a report
> into a vb variable(in any event).
> can anyone help me out.
> Thanks & Regards
> Mahender Reddy