Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Print to server printer using ASP

Posted on 2011-04-27
1
Medium Priority
?
268 Views
Last Modified: 2012-05-11
In need of a method in ASP to print the contents of a file (.txt,.pdf,.docx) to a printer connected to the web server.

I am even willing to purchase a component, but cannot find any.
0
Comment
Question by:cyberdyne_dev
1 Comment
 
LVL 19

Accepted Solution

by:
nschafer earned 2000 total points
ID: 35476735
For text only, see the following page:
http://www.asp101.com/articles/john/serversideprint/default.asp

Here is another page with information on this:
http://www.taltech.com/support/bcax/ASP_Printing.html

For anything else you will need some kind of application or component at the server.  In a quick search I could not find a component to do this, but what you could do is write an app that monitors a folder on your web server.  That app would have the ability to open txt, pdf, or docx files (Word would have to be installed on the web server for the docx) and print them.  It would then delete the file from the folder.  Your ASP page would simply use the FileSystemObject to drop files in the folder being monitored.

The app should not be too dificult to write, this bigest problem I forsee would being sure that you handle the Word automation properly as I've seen it lead to memory leaks in the past.

Hope this helps,
Neal.
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question