Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

how to print from a cgi-application

Posted on 1998-03-02
5
Medium Priority
?
167 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 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.
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

636 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