index | search | no replies | posting guidelines | help login | register
Index » Products » ASP Report Wizard v2
search this forum:
:: Generate Report File From Property ::    show all messagesPost a New Message | Post a Reply
Jun 22 2004, 5:53 AM
 Re: Generate Report File From PropertyPost a Reply
 ghost

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

from: Washington, DC

We have just uploaded a newer version (build 2.0.185) which contains the bug fix and some other minor fixes.
You can download it from here

Note:
Always set your reportsFile before initializing the connection string.  

Also, I made some changes to the code you sent, I set the database name in a session variable. I think that is why the reportsFile variable was disappearing as follows:


<%
     'Initialize variables and objects
      Set objwiz      = Server.CreateObject("AspWebSolution.ReportWizard2")
      
      If Request("database") <> "" Then  
          Session("database") = Request("database")
      End  If
      
      If Session("database") = "" Then  
          'Session("database") = DatabaseName
          Response.Redirect "default.asp"
      End  If
      
     'Set up the connection string
     strConnectionString = "Provider=SQLOLEDB; Data Source= "& SQLServer & "; User Id= "& DatabaseUser & "; Password= "& DatabasePassword & "; Initial Catalog= "
     strConnectionString = strConnectionString &  Replace(Session("database"),"'","''" ) & ";"
      
     objwiz.ReportsFile = Session("database") & ".xml"
     objwiz.Init(strConnectionString)  
             
%>
  






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

search this forum: