index | search | no replies | posting guidelines | help login | register
Index » Products » ASP Report Wizard v2
search this forum:
:: Error: Command text was not set for the command ob ::    show all messagesPost a New Message | Post a Reply
Feb 28 2005, 5:39 AM
 Re: Error: Command text was not set for the com...Post a Reply
 ghost

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

from: Washington, DC

I am not sure what component you are using but if it is the ASP Report Wizard, you have to make sure you initialize your connection string before adding any HTML tags to your .asp page as shown below.


<%
'decalre your object
  Dim objWiz  
    
'create an instance
  Set objWiz = Server.CreateObject("AspWebSolution.ReportWizard2")  
    
'set paramters (if required)
objWiz.LocaleFolder = "C:\reports\locale"
objWiz.ReportsFile = "C:\reports\inventory.xml"
    
'initialize your connection string
objWiz.Init(strConn)  
  
%>
<html>  
     <head>
          <title>Inventory Reports</title>
     </head>  
     <body>  
<%
     objWiz.DisplayReports
      Set objWiz =  Nothing  
%>
     </body>  
</html>



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

search this forum: