Print to server printer using ASP

Posted on 2011-04-27
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.
Question by:cyberdyne_dev
    1 Comment
    LVL 19

    Accepted Solution

    For text only, see the following page:

    Here is another page with information on this:

    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,

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
    Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now