Solved

how to print from a cgi-application

Posted on 1998-03-02
5
145 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
Comment Utility
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
Comment Utility
It was an great idea, but it dosnt work.
0
 
LVL 3

Expert Comment

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

Author Comment

by:Katrin
Comment Utility
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
Comment Utility
thx.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
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…

762 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