scriptscroll
IS-IT--Management
My Web form displays a listing of reports to select from, with the associated image I wish to display the Report File Info, such as Comments, Author, ect. I can achieve this by opening each report and getting the properties, but this is really slow. There must be a 'better' way to "preview" the Report Summary Info from the Report Object?
For Example:
Set clientDoc = objectFactory.CreateObject "CrystalClientDoc.ReportClientDocument"
clientDoc.open theReportName
If clientDoc.summaryinfo.title = "" Then
EncapComment = "There is no Summary Information for this Report."
Else
EncapComment = "TITLE :" & vbTab & clientDoc.summaryinfo.title & vbCrLf &
"AUTHOR :" & vbTab & clientDoc.summaryinfo.author &
vbCrLf & _
"KEYWORDS :" & vbTab & clientDoc.summaryinfo.keywords & vbCRLf & "COMMENTS :" & vbTab & clientDoc.summaryinfo.comments
End if
For Example:
Set clientDoc = objectFactory.CreateObject "CrystalClientDoc.ReportClientDocument"
clientDoc.open theReportName
If clientDoc.summaryinfo.title = "" Then
EncapComment = "There is no Summary Information for this Report."
Else
EncapComment = "TITLE :" & vbTab & clientDoc.summaryinfo.title & vbCrLf &
"AUTHOR :" & vbTab & clientDoc.summaryinfo.author &
vbCrLf & _
"KEYWORDS :" & vbTab & clientDoc.summaryinfo.keywords & vbCRLf & "COMMENTS :" & vbTab & clientDoc.summaryinfo.comments
End if