Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Web reports


Message #1 by "Muhammad Schoeib Anjum" <schoeibanjum@h...> on Mon, 26 Mar 2001 12:35:51
Hello!

   

   How can I print an ASP generated report from my web page without

   using File Menu (Of my browser).(just by clicking a button or so)



   Thanks in advance:)



   Shoeib.
Message #2 by "Craig Flannigan" <ckf@k...> on Mon, 26 Mar 2001 12:48:13 +0100
This should do the trick...





	jvascript: window.print('')



Place the code in a hyperlink and it will print the window

that the link resides in.

It ends up looking like this....



	<a href="javascript: window.print('')">Click here to Print

this window</a>



Hope this helps





Craig.



-----Original Message-----

From: Muhammad Schoeib Anjum

[mailto:schoeibanjum@h...]

Sent: 27 March 2001 12:49 AM

To: ASP Web HowTo

Subject: [asp_web_howto] Web reports





Hello!



   How can I print an ASP generated report from my web page

without

   using File Menu (Of my browser).(just by clicking a

button or so)



   Thanks in advance:)



   Shoeib.



Message #3 by "Tim Morford" <tmorford@n...> on Mon, 26 Mar 2001 06:53:04 -0500
<FORM>

<INPUT type="button" value="Print" Onclick="print()" ;>

</FORM>



This should work

-----Original Message-----

From: Muhammad Schoeib Anjum [mailto:schoeibanjum@h...]

Sent: Monday, March 26, 2001 6:49 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Web reports





Hello!



   How can I print an ASP generated report from my web page without

   using File Menu (Of my browser).(just by clicking a button or so)



   Thanks in advance:)



   Shoeib.



Message #4 by "Drew, Ron" <RDrew@B...> on Mon, 26 Mar 2001 09:17:22 -0500
This message is in MIME format. Since your mail reader does not understand

this format, some or all of this message may not be legible.



------_=_NextPart_001_01C0B5FF.79740B30

Content-Type: text/plain



Add Javascript to your BODY: 

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

if (window.print) {

document.write('<form>Press to '

+ '<input type=button name=print value="Print" '

+ 'onClick="javascript:window.print()"> this page!</form>');

}

// End -->

</script>



Good luck

Ron





-----Original Message-----

From: Muhammad Schoeib Anjum [mailto:schoeibanjum@h...]

Sent: Monday, March 26, 2001 6:49 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Web reports





Hello!

   

   How can I print an ASP generated report from my web page without

   using File Menu (Of my browser).(just by clicking a button or so)



   Thanks in advance:)



   Shoeib.

---

SoftArtisans helps developers build robust, scalable Web applications!

Excel Web reports, charts: http://www.softartisans.com/excelwriter.html

File uploads: http://www.softartisans.com/saf.html

Transactional file management: http://www.softartisans.com/saf1.html

Scalability: http://www.softartisans.com/saxsession.html

ASPstudio value pack: http://www.softartisans.com/aspstudiosuite.html




$subst('Email.Unsub')





  Return to Index