Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: How do I use Printer object in ASP


Message #1 by balajisrinivasd@i... on Fri, 18 Jan 2002 09:03:08
We are converting VB based code to ASP. For the print functionality, the 

VB code makes use of the Printer object. I'm unable to use the same on ASP 

as I keep getting Active X cannot create object error. 

Using the Window.Print() method (with it's associated events) does not 

look feasible with the kind of printing functionality expected.



Questions:



1) What is required to make the Printer Object work on the ASP? If it 

involves downloading of some Active X control on the machine of every 

client, How do we do it?/is it a good solution?

2) Is there any other way ( other than window.print() option of course) to 

do printing? This has to be flexible enough to allow lot of functionality 

like setting the orientation, header, number of copies etc etc like the 

way printer object does

Message #2 by "Sloan Thrasher" <cst2000@a...> on Mon, 21 Jan 2002 14:38:25 -0500
Hi!



Do you really want to print in ASP? That would mean printing from the

server, to a printer on the network with the server (not the user's

browser).

If you need to deliver highly formatted print output to the user, so they

can print it, you should look into using Adobe on the server to create PDFs

that you can then deliver to the end user via a link on your site. Once they

have retrieved the PDF, they can print it.



Sloan



<balajisrinivasd@i...> wrote in message news:137257@a..._databases...

>

> We are converting VB based code to ASP. For the print functionality, the

> VB code makes use of the Printer object. I'm unable to use the same on ASP

> as I keep getting Active X cannot create object error.

> Using the Window.Print() method (with it's associated events) does not

> look feasible with the kind of printing functionality expected.

>

> Questions:

>

> 1) What is required to make the Printer Object work on the ASP? If it

> involves downloading of some Active X control on the machine of every

> client, How do we do it?/is it a good solution?

> 2) Is there any other way ( other than window.print() option of course) to

> do printing? This has to be flexible enough to allow lot of functionality

> like setting the orientation, header, number of copies etc etc like the

> way printer object does

>

>






  Return to Index