|
Post by drschnagels on May 28, 2021 10:26:33 GMT 1
Hi there!
This is my config.txt:
LPT1 = SEL: "" RAW LPT2 = SEL: "PDF-XChange Standard" VERT:10,15,68 LPT3 = CLIP "LPT4 = " COM9 = "alreadyopenedbyotheruser.txt":
Using LPT1 in our program will always print to the windows standard printer instantly. I'd like to use LPT4 to force show the windows printing selection dialog in order to sometimes switch to a downstairs printer.
The Printing.pdf file does not have info about it. I tried using settings like "SEL" or "SEL:" but those throw errors starting vDos.
Thanks a lot for your help!
Michael
|
|
|
Post by Jos on May 28, 2021 12:35:14 GMT 1
Omit SEL: and the dialog will be shown. No remaining options: Omit LPT4=.
You could extend COM9 = "alreadyopenedbyotheruser.txt": with something like: "Attention" "Program X is already running"
Jos
|
|
|
Post by drschnagels on May 31, 2021 7:35:48 GMT 1
Hi Jos! Thanks for your answser. Unfortunately nothing of this works. LPT4 = gives me an error (option value missing) LPT4 assignment missing error If i remove LPT4 in the config.sys and chose LPT4 in my program, it cannot find a printer at Nr. 4. COM9 = "alreadyopenedbyotheruser.txt":"Jemand anderes ist in der BDA" This also does not work . I hope you can help me again wit this. Thanks in advance a lot!
|
|
|
Post by Jos on May 31, 2021 10:59:58 GMT 1
Strange, since your program doesn’t know how vDos will handle whatever it sends to LPT4.
Did it print when you set LPT4 = SEL: ""?
Could be your program prints to the hardware port, and that’s not set for LPT4 by vDos.
For the warning you have to add two strings: The caption and the message. So something like: COM9 = "alreadyopenedbyotheruser.txt": "Kein Zugriff" "Jemand anderes ist in der BDA"
Jos
|
|
|
Post by drschnagels on May 31, 2021 12:01:37 GMT 1
COM9 = "alreadyopenedbyotheruser.txt": "Kein Zugriff" "Jemand anderes ist in der BDA" This worked now. Thanks!
It seems my program does not support LPT4 or any higher. So now I simply removed LPT3 and LPT4 and now i can enter "3" in my program and the print dialog is shown! Problem solved! Perfect!
Thanks again!
|
|
|
Post by Jos on May 31, 2021 12:09:52 GMT 1
You could check if your program can print to a serial COM device. If so that would probably add COM1 thru 4.
Or print to a file, then specify LPT1 thru 9, or COM1 thru 9 (8 since you don’t want the file alreadyopenedbyotheruser.txt overwritten.
Jos
|
|