how to print from a cgi-application

Posted on 1998-03-02
Medium Priority
Last Modified: 2010-04-06
how do I print from a cgi-application (under WinNT4.0) ?
I'm using IIS3.0.
I get the following exception: at this time no standard printer available but at the command line the program works well.
Question by:Katrin
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Accepted Solution

mirek071497 earned 200 total points
ID: 1359962
Your CGI was executed as user defined in HTML server - try add default printer for this user.

1.log as the html user (check yout HTTPD for user name and password)
2.try to execute your CGI
3.if your CGI works I am on wrong way, but if not you must add default printer for this user.

Author Comment

ID: 1359963
It was an great idea, but it dosnt work.

Expert Comment

ID: 1359964
So you can execute your CGI as HTTPD user or not ? I can't understand what happened.

Author Comment

ID: 1359965
sorry, my answer was a little short.

Yes, I can execute my CGI as HTTPD user without any problems.

In last days I found a solution: using the SetPrinter-Function and setting the printer by hand works fine.

Expert Comment

ID: 1359966

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month10 days, 17 hours left to enroll

770 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