index | search | no replies | posting guidelines | help login | register
Index » Products » ASP Report Wizard v2
search this forum:
:: License ::    show all messagesPost a New Message | Post a Reply
Feb 11 2008, 11:41 AM
 Re: LicensePost a Reply
 ghost

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

from: Washington, DC

You set the license key before you initialize your connection string.

-- code sample --

<%
'decalre your object
Dim objWiz

'create an instance
Set objWiz = Server .CreateObject("AspWebSolution.ReportWizard2" )

'set your parameters
With objWiz

   'set your license key before you initialize connection string
    'replace the license key below with your own

   .LincenseKey = "XXXX-XXXX-XXXX-XXXX-XXXX"  

   'Set your print header
   .PrintHeader = "<h1>ACME, INC</h1><h2>@ReportTitle</h2>"
  
End With

'initialize your connection string before adding any HTML code
objWiz.Init(YOUR_CONNECTION_STRING )
%>
<html>
  <head>
    <title>First Quarter Reports</ title>
  </head>
  <body>
<%

'display your reports
objWiz.DisplayReports

'clear memory
Set objWiz = Nothing
%>
  </body>
</html>




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

search this forum: