Solved

how to print from a cgi-application

Posted on 1998-03-02
5
158 Views
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.
0
Comment
Question by:Katrin
[X]
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
5 Comments
 
LVL 3

Accepted Solution

by:
mirek071497 earned 100 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.
0
 

Author Comment

by:Katrin
ID: 1359963
It was an great idea, but it dosnt work.
0
 
LVL 3

Expert Comment

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

Author Comment

by:Katrin
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.
0
 
LVL 3

Expert Comment

by:mirek071497
ID: 1359966
thx.
0

Featured Post

Technology Partners: 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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

696 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