index | search | no replies | posting guidelines | help login | register
Index » Products » ASP Report Wizard v2
search this forum:
:: Knowing when a report is about to be displayed ::    show all messagesPost a New Message | Post a Reply
Sep 16 2004, 9:58 AM
 Re: Knowing when a report is about to be displayedPost a Reply
 whichman

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

from: Laurel, MD

The easiest way to do this for now is to set your ASP buffer to false then call your script before the DisplayReports procedure. And example will be as follows:

<%
Response.Buffer = False
Dim objWiz, strConn
strConn = [Your Connection String]    
Set objWiz = Server.CreateObject("AspWebSolution.ReportWizard2")
With objWIz
    .HideProcedures = True
    .UsePopupFilters = True
    '.MaxRecords = 600
End WIth  

'Make sure you initialize before adding any HTML text
objWiz.Init(strConn)
%>

<html>
    <head>
        <title>My Repoprts</title>
    </head>
    <body scroll="auto">
        <img name="preload">
        <script>

            document.images["preload"].src="loading.gif";
        </script>
        <%        
            'put this where you want your reports
            objWiz.DisplayReports
        %>
        <script>
            document.images["preload"].src="pixel.gif";
        </script>
    </body>
</html>

<%    
Set objWiz = Nothing
%>


You can download both images from the links below:

http://www.cityjams.com/tmp/pixel.gif
http://www.cityjams.com/tmp/loading.gif

Note that this might reduce performance ...



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

search this forum: