To download the CSP files from this tutorial, click TutorialSamples_vb.zip. For more information about using the samples, see Code examples.
Function GetThumbnail (ID, IStr)
'This function will print the thumbnail
'of a particular report on the page. It will remove
'ID - The ID of the report whose thumbnail is to be
'IStr - The InfoStore object that allows us to query.
'The function returns TRUE if successful and FALSE otherwise.
'The query that will select the reports.
'A query that selects the report.
Query = "Select Top 1* From CI_INFOOBJECTS Where SI_ID = " & ID
'There was an error querying the server.
'Check if there really is a report, just in case something
'Use the report plugin interface.
'Retrieve the thumbnail picture.
Response.ContentType = "image/jpeg"
Response.Redirect "images/rpt_tn.gif"
Response.Redirect "images/rpt_tn.gif"
ID = Request.QueryString("ReportID")
If Not GetThumbnail (ID,i) then
Response.Write "There was an error retrieving the thumbnail."
'InfoStore couldn't be retrieved so go back to the logon page.
Response.Redirect "LogonForm.csp"
<!-- #include file=RetrieveIStore.csp -->
Crystal Decisions, Inc. http://www.crystaldecisions.com Support services: http://support.crystaldecisions.com |