Print Page | Close Window

Content table ?

Printed From: Crystal Reports Book
Category: General Information
Forum Name: Talk with the Author
Forum Discription: Ask Brian questions about his books and give him your comments. Like the book? Hate the book? Have suggestions? Let me know!
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=1276
Printed Date: 05 May 2024 at 3:43am


Topic: Content table ?
Posted By: ukreporter
Subject: Content table ?
Date Posted: 06 Sep 2007 at 2:03am
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




Print Page | Close Window