index | search | no replies | posting guidelines | help login | register
Index » Products » ASP Report Wizard v2
search this forum:
:: installation problem with asp report :: (7)Post a New Message | Post a Reply
Mar 11 2005, 2:30 PM
 installation problem with asp reportPost a Reply
 John55

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

from: Fresno, CA

I am having a problem with my installation of asp report. I can get it to run the default page and get to sample reports. I can display an existing report, I can select build and it takes me to the field selection, but when I select next I get a Windows error that "page cannot be displayed". Same thing happens when I select a table, display it and then try to print, export, etc. What should I do to fix it?

Mar 11 2005, 4:54 PM
 Re: installation problem with asp reportPost a Reply
 ghost

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

from: Washington, DC

Make sure that your report is not within any <form></form> tags.

Also make sure you create your connection 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 your parameters
   With objWiz  
    'Set your print header  
      .PrintHeader = "<h1>ACME,  INC</h1><h2>@ReportTitle</h2>"
    
    'set other parameters if required  
      .ShowInactiveButtons =  True  
  End  With    
    
'initialize your connection string
objWiz.Init(strConn)  
%>
  
<html>
     <head>
         <title>First Quarter Reports</title>
     </head>
     <body>
<%
objWiz.DisplayReports  
  
  Set objWiz =  Nothing
%>
     </body>
</html>
  



-------------------------
Ghost
Mar 14 2005, 2:47 PM
 Re: installation problem with asp reportPost a Reply
 John55

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

from: Fresno, CA

Hi,
I'm using the simple data to test ASP Report Wizard. SO I set up the following:

<%
'Declare object
Dim objWiz
'Create an instance
Set objWiz = Server.CreateObject("AspWebSolution.ReportWizard2")
    
'Create database connection
objWiz.Init("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" & Server.MapPath("/report/data/sample.mdb") & ";")
%>

It connects to the database, displays the report wizard data and lets me select a table (like customers) but when I select print it returns to default.asp but doesn't display the page. It says it can't find default.asp.

The default page has only been modified to connect to the database location, no other modifications. What's wrong here?
John

Mar 15 2005, 5:47 AM
 Re: installation problem with asp reportPost a Reply
 whichman

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

from: Laurel, MD

This is the source code of my sample.asp file, and it works fine. It is the same as yours except for the database path.

<%
'Declare object
  Dim objWiz  
'Create an instance
  Set objWiz = Server.CreateObject("AspWebSolution.ReportWizard2")  
      
'Create database connection
objWiz.Init("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE= "& Server.MapPath("/web/test/Sample/data/sample.mdb") & ";")  
  
objWiz.DisplayReports  
  
  Set objWiz =  Nothing
%>





-------------------------
Master of the Game
Mar 15 2005, 3:24 PM
 Re: installation problem with asp reportPost a Reply
 John55

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

from: Fresno, CA

Hi,
I'm still having the same problem. It appears that it won't do the javascript:_doPostBack(). I guess it may be a permission issue. The web folder is set to read and exucute. Do I need any special permssions with the DLL?
John


Mar 16 2005, 5:28 AM
 Re: installation problem with asp reportPost a Reply
 whichman

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

from: Laurel, MD

Can I see the source code of your asp file!

P/S: Also make sure that the folder where your reports.asp files reside is recognized as an application by IIS


-------------------------
Master of the Game
Mar 16 2005, 11:00 AM
 Re: installation problem with asp reportPost a Reply
 John55

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

from: Fresno, CA

Hi,
Here's the code, the only changes from the sample are to the folder locations. At this point I believe it's something on the server set up. It's a new W2003 server. Server side ASP is turned on. The web site folder is included as a default application under the application pools, which would include the report folder. Permissions are set to read, write, and scripts. It connects to the database and shows the tables, but whenever a Javascript:_doPostBack() is called, it fails. Don't know where to look for any other settings?

<%
'Declare object
Dim objWiz

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

'Set license key before you initialize connection
'objWiz.LicenseKey = "U7MA-WA7C-2P8F-ZPPK-YMPM"

'Create database connection
objWiz.Init("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" & Server.MapPath("/report/data/sample.mdb") & ";")
%>

<html>
    <head>
        <title>Simple Repoprts</title>
    </head>
    <body scroll="auto">
        <%
            'put this where you want your reports
            objWiz.DisplayReports
        %>
    </body>
</html>

<%    
Set objWiz = Nothing
%>


Pages: (1)   [1]

search this forum: