index | search | no replies | posting guidelines | help login | register
Index » News » AspWebSolution News
search this forum:
:: Version 2.4.76 Released ::    show all messagesPost a Reply
Dec 10 2004, 2:30 PM
 Version 2.4.76 ReleasedPost a Reply
 ghost

View this author's profile Send this author a private message Visit author's homepage

from: Washington, DC

Version 2.4.76 (build 2.0.476) of the ASP Report Wizard has just been released.
This version features a new procedure GetReport which returns the report's HTML string.

Note:
1. The GetReport does not return the reports title
2. To use the GetReport feature, you must have a valid license key

The sample code below shows how to use this feature:
----------------------- begin sample.asp --------------------------------------------------------
<%

Dim objWiz , strReport, strConn,strReportId
'set variables
strReportId = "Test" 'Request("reportid")
Set objWiz = Server.CreateObject("AspWebSolution.ReportWizard2")

'set all properties before initializing connection string
objWiz.LicenseKey = "XXXX-XXXX-XXXX-XXXX"
    
'Make sure you initialize before adding any HTML text
objWiz.Init(strConn)
    
'get your report's html string
strReport = objWiz.GetReport(strReportId)

'clear memory
Set objWiz = Nothing

%>

<html>
    <head>
        <title>West Coast Report</title>
    </head>
    <body>
        <h2>West Coast Report</h2>
        <%=strReport%>
        <p>
            © Copyright <%=Year(Now)%> ACME Solutions, All rights reserved
        </p>
    </body>
</html>


-------------------------------------------------------------------------------------------------------









-------------------------
Ghost
Pages: (1)   [1]

search this forum: