Content table ?

Printed From: Crystal Reports Book — Forum Name: Talk with the Author

Hi Brian,
 
Was just wondering if anybody has managed to build a content table for a report using the document object model ?  ...
 
e.g. once you have loaded a report is it possible to find out what page a particular text object appears on? e.g. something like:
 

function getObjectPageNum(ByVal objSearch As String)

Dim obj As CrystalDecisions.CrystalReports.Engine.ReportObject

For Each obj In rptSpec.ReportDefinition.ReportObjects

If obj.Name = objSearch Then

Dim textobj As CrystalDecisions.CrystalReports.Engine.TextObject

textobj = obj

????????  return textobj.  Pagenum     ?????????????

Exit For

End If

Next

End Function