index | search | no replies | posting guidelines | help login | register
Index » Products » ASP Report Wizard v2
search this forum:
:: Command text was not set for the command object. :: (6)Post a New Message | Post a Reply
Jul 30 2004, 4:13 AM
 Command text was not set for the command object.Post a Reply
 yusufakyol

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

from: Istanbul, TURKEY

Hi,
At objGrid when I click the Word or XML link, I get "Command text was not set for the command object." error message. Why ?
Please help.
Thanks.
Best regards.

Jul 30 2004, 7:35 AM
 Re: Command text was not set for the command ob...Post a Reply
 ghost

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

from: Washington, DC

Make sure you initialize your connection string before adding any HTML tags to your .asp page.

<%
'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
Jul 30 2004, 8:11 AM
 Re: Command text was not set for the command ob...Post a Reply
 yusufakyol

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

from: Istanbul, TURKEY

Thanks again.
But is it possible to declare all properties and methods of objWiz and ObjGrid ?
Best regards.


Jul 30 2004, 8:47 AM
 Re: Command text was not set for the command ob...Post a Reply
 whichman

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

from: Laurel, MD

I'm not sure I understand your question..?
Did you want us to list all properties and methods...
   If so you can check the online manual for the : Report Wizard API and the DataGrid API





-------------------------
Master of the Game
Jul 30 2004, 10:23 AM
 Re: Command text was not set for the command ob...Post a Reply
 yusufakyol

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

from: Istanbul, TURKEY

Hi,
Some of them are not documented at your ReportWizard.chm and also online manual: AutoDetectLocale, LocaleFolder, LocaleFile etc. That's why I'm asking this question.
Thanks for your help.
Best regards.


Jul 30 2004, 11:14 AM
 Re: Command text was not set for the command ob...Post a Reply
 whichman

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

from: Laurel, MD

I know. We try to document the website first.
And sometimes we add properties requested by users without even updating our documentation - one of the reasons is because users ask for properties then later change theeir minds on how they want it implemented.

We are working hard to keep everything up-to-date. Just remember, if you can't find something or how to accomplish a certain task, you can always post your questions here and we will see that we answer it.

Thanks


-------------------------
Master of the Game
Pages: (1)   [1]

search this forum: