We help IT Professionals succeed at work.

LPD on Win95

rhop
rhop asked
on
226 Views
Last Modified: 2010-05-03
Hi, first let me say, I sorry for the lack of detail, I'll be more specific this time.  I
have a machine running win95 that is set up as a print server, its running an app that
has an "lpd" (line print deamon).  When a  spooled file is sent to the machine, the
print server app, must print it or send it back to the host que. if the "device" is on
line and ready the print server will print it.  The "device" in this instance is the
generic text printer,  set to print to a file, so when a spooled file is sent it attemps to
print it using the generic text printer, set to print to a file. My problem is the dialog
box that ask you to name the file, I want my app to handle this process, by detecting
the dialog box, name the file "myfile.txt" and close the dialog box so that no user
intervention is needed.

Example:  Workstation1 sends a file to a Unix lan server, the Unix lan server
redirects the job to the print sever, the print sever prints the job using the generic
text print(set to print to a file) and a dialog box opens asking you to name the file,
you name the file, hit ok, or enter, and the process is complete.  I have a file array
sub wrote to independantly name each file that arrives, so the first file that arrives
will be named "myfile1.txt",   "myfile2.txt", "myfile3.txt", I just can't figure out
deal with the dialog box.  I don't want the user to have to name the file, or deal with the dialg box

Try this, set your generic text print driver up(set to print to a file), go to notepad
type some text and and print it, you will get the dialog box I'm trying to deal with.

                                            Thanks for you support!!
                                                            Rick


  I Need serious help soon......  Thanks
Comment
Watch Question

Author

Commented:
Please HELP!!!!!

Commented:
rhop,
Can you be a little more detail on what you want to do? You may e-mail me Dalin_N@mailExcite.com
Regards
Dalin

Commented:
Same question as was asked by Dalin.  Could not understand what u exactly wanted to do.  U could email me also to aarveekay@hotmail.com, explaining in detail.  Will try to help.
Regards
Vamsi

Author

Commented:
Edited text of question

Author

Commented:
Adjusted points to 400

Author

Commented:
Edited text of question

Author

Commented:
typeO on the first edit please read the second edited ver....
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
rhop,

SendKeys "c:\queues\myfile" + Trim(NextNo) + ".txt"  line in the second solution is typeo so please delete it.

Author

Commented:
Thanks, It worked great, sorry it took me so long to reply, I've been ill for the past week.  Once again thanks for a very speedy and acurate reply.


                                                     "rhop"
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.