p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_howto thread: Printing report


Message #1 by "Jimmy Lahaie" <jimmylahaie@h...> on Wed, 7 Feb 2001 15:20:24 -0000
This is a multi-part message in MIME format.

------=_NextPart_000_000B_01C09145.616ABD10
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

RE: Printing reportUse JavaScript. Call Window.print()


  ----- Original Message -----
  From: Bjorn Buijing
  To: How To
  Sent: Wednesday, February 07, 2001 10:32 AM
  Subject: RE: Printing report


  ASp is server side, so you can only print on the server itself.
  There is however a function in javascript (I thought something like 
document.print) with which you can send the page to a client printer.

  GL



  -----Original Message-----
  From: Jimmy Lahaie [mailto:jimmylahaie@h...]
  Sent: Wednesday, February 07, 2001 4:20 PM
  To: How To
  Subject: Printing report



  I would like to know if it's possible to print report with a asp page. 

  Is there a print object in asp like in Visual basic.

  i tried to create a COM application in VB
  i wrote, just for testing

  Public Sub Imprimer()
  Printer.Print "this is the first line"
  Printer.Print "this is the second line"
  Printer.EndDoc
  End Sub



  i created a asp page i wrote

  <%
  set printing =3D server.createObject ( "PrintObjet.Printing" )
  printing.Print
  %>

  And i get

  Erreur Imprimante
  (Printing Error)

  When i load the page.



  What can i do to print report wiht a asp page???

  thanx
  Jimmy

  *** NEW BROWSERHAWK COMPONENT FOR BROWSER COMPATIBILITY ***
  BrowserHawk 4.03 is here! This gem makes building web sites
  that account for browser differences a breeze. Easily
  detect disabled cookies/JavaScript/applets. Detect user
  connection speed, screen size, Flash & other plug-ins,
  WAP/i-Mode/PDA devices, reverse DNS, and over 70 properties
  in all. Click now for a live demo & your FREE, fully
  functional trial! http://www.cyscape.com/free.asp?q=3Datdy-205
bjorn.buijing@c...
$subst('Email.Unsub')

  *** NEW BROWSERHAWK COMPONENT FOR BROWSER COMPATIBILITY ***
  BrowserHawk 4.03 is here! This gem makes building web sites
  that account for browser differences a breeze. Easily
  detect disabled cookies/JavaScript/applets. Detect user
  connection speed, screen size, Flash & other plug-ins,
  WAP/i-Mode/PDA devices, reverse DNS, and over 70 properties
  in all. Click now for a live demo & your FREE, fully
  functional trial! http://www.cyscape.com/free.asp?q=3Datdy-205
$subst('Email.Unsub')



  Return to Index