ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old May 12th, 2002, 07:36 AM
Nauman Nauman is offline
Twenty Seven
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Multan, Pakistan
Posts: 103 Nauman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 33 m 2 sec
Reputation Power: 7
Send a message via ICQ to Nauman
Question Printing in ASP

Hello there...

How can I print the Database results in ASP. So when user click the Print Button the Results printed on Printer...

Reply With Quote
  #2  
Old May 13th, 2002, 05:52 PM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 589 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Hi,
You cant actually print with ASP itself, but once you've outputted the results to the page, you can use JavaScripts window.print(); function to do so, like this:

<script language="JavaScript">

function printIt()
{
window.print();
}

</script>

<body onLoad="printIt()">

Reply With Quote
  #3  
Old May 14th, 2002, 01:28 AM
Nauman Nauman is offline
Twenty Seven
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Multan, Pakistan
Posts: 103 Nauman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 33 m 2 sec
Reputation Power: 7
Send a message via ICQ to Nauman
Lightbulb

Hello
Actually I want to print out the results in the form of report...

Reply With Quote
  #4  
Old May 22nd, 2002, 03:46 AM
sylow sylow is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Alkmaar, Netherlands
Posts: 11 sylow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to sylow
then you should develop applications for windows.
Check out Delphi/C#/VB for it.

Other option can be that you format records on the browse and print as mytch has already told.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > Printing in ASP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway