Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Reports Approach Question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Reports Approach Question

 Post Reply Post Reply
Author
jdumayas View Drop Down
Newbie
Newbie
Avatar

Joined: 19 February 2003
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote jdumayas Quote  Post ReplyReply Direct Link To This Post Topic: Reports Approach Question
    Posted: 17 April 2003 at 3:00pm

Hello,

I'm trying to generate reports from a database. A user form would have 3 checkboxes (representing the desired reports) and a list box for the user to select an event to run the reports for.

The form would pass the event variable and the forms select.

My issue is that I want each of the different reports to generate in its own window for printing purposes. Since you can't open a new window with response.redirect, I need to know if there is a workaround or roundabout way to accomplish this.

Any suggestions or sample code would be greatly appreciated. Thanks Jeremy
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 17 April 2003 at 6:32pm

you can use the following javascript to open a new window just put the separate reports in three different pages and have the file with the three check boxes popup the windows with the report generating code

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

put that script at the beginning of your asp page. (right before the '<html>' tag but not in asp delimiters) and call the script with the following code

MM_openBrWindow('yourpage.asp','','')

sample link would be

<a href ="MM_openBrWindow('addressreport.asp','','')"> click here to generate an address report in a different window</a>

Post another reply if you have any other problems

Hope i helped



Edited by pmormr
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.