Solved

how to print from a cgi-application

Posted on 1998-03-02
5
150 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
  • 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
error 1.1 400 Bad request idhttp delphi 18 148
Run video youtube webbrowse 10 65
Reconfigure Delphi Install? 2 61
SUM 2 INTEGER ARRAYS INTO 1 10 108
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

828 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