index | search | no replies | posting guidelines | help login | register
Index » Products » ASP Report Wizard v2
search this forum:
:: Where to include your code ::    show all messagesPost a New Message | Post a Reply
Oct 24 2004, 3:27 PM
 Re: Where to include your codePost a Reply
 ghost

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

from: Washington, DC

You can add any code (HTML/ASP etc.) anywhere the only thing you have to do is make sure that you initialize your connection string first before adding any HTML code. ie.

1. create an instance of the report wizard
2. set any properties you require
3. Initialize your connection string : objWiz.Init(Your Connection string)
4. add any html code you wish

<%
  
  Dim objWiz  
  Set objWiz = Server.CreateObject("AspWebSolution.ReportWizard2")  
  
'add properties ifc required
objWiz.UsePopUpFilters =  True
      
'Make sure you initialize before adding any HTML text
'TODO: Change this to your actual connection tring
objWiz.Init("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=D:\Databases\nwind.mdb;")  
%>
<html>
    <head><title>East Coast Reports</title></head>
    <body>
         <h1>East Coast Reports</h1><hr>
<%
      
'put this where you want your reports
objWiz.DisplayReports  
      
  Set objWiz =  Nothing
  
%>
         <p>Copyright Info</p>
     </body>
</html>



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

search this forum: