|
Post by ahmednh on Feb 10, 2019 9:58:06 GMT 1
is there a way to direct print without going to the chose the printer, which already chosen in config file
thanks
|
|
|
Post by Jos on Feb 10, 2019 10:10:14 GMT 1
The SEL: "Windows printer name" option lets you specify a specific printer (see Printing.pdf).
Jos
|
|
|
Post by ahmednh on Feb 10, 2019 10:37:39 GMT 1
I have done that
window = 100
LPT1 = horz:5,5,80 vert:5,5,65
LPT2 = sel:SEL:"HP LASERJET PROFESSIONAL P 1102W"
LPT3 = font:"Gabriola Bold Oblique"
I want to bypass the printers selections window
is it possible
|
|
|
Post by Jos on Feb 10, 2019 11:16:42 GMT 1
If you print to LPT1 or LPT3, you’ll get a printer selection dialog (no SEL: specified). LPT2 = sel:SEL:"… is incorrect and not accepted by vDos.
Jos
|
|
|
Post by ahmednh on Feb 10, 2019 12:36:36 GMT 1
Sorry I typed it here wrongly
LPT2 = SEL:"HP LASERJET PROFESSIONAL P 1102W"
Is there a command to direct the job to printer selected in config file
|
|
|
Post by Jos on Feb 10, 2019 13:46:38 GMT 1
If you print to LPT1 or LPT3, you’ll get a printer selection dialog (no SEL: specified). Printing to LPT2 will go to the HP LaserJet, w/o a printer selection dialog (SEL: specified).
Jos
|
|
|
Post by ahmednh on Feb 10, 2019 15:27:28 GMT 1
now it perfect corrected the sequence
window = 100
LPT1 = SEL:"HP LASERJET PROFESSIONAL P 1102W"
LPT2 = horz:5,5,80 vert:5,5,65
LPT3 = font:"Gabriola Bold Oblique"
|
|
|
Post by Jos on Feb 10, 2019 16:57:53 GMT 1
So if you now print to LPT2 or LPT3, you’ll get a printer selection dialog (no SEL: specified). Printing to LPT1 will go to the HP LaserJet, w/o a printer selection dialog (SEL: specified).
Jos
|
|
|
Post by ahmednh on Feb 10, 2019 20:09:35 GMT 1
yes correct
but a problem came
this line not executed by the program [LPT2 = horz:5,5,80 vert:5,5,65] only the first line is auctioned (for printing)
the rest is ignored
|
|
|
Post by Jos on Feb 10, 2019 20:21:52 GMT 1
If you print in your DOS program to LPT2, the given margins (they aren’t set for LPT1 or LPT3) should be respected. Printing to LPT3 should be in the font Gabriola Bold Oblique, printing to LPT1 or LPT2 will of course be in the default vDos font since no font is set for those (see Printing.pdf).
Jos
|
|
|
Post by ahmednh on Feb 10, 2019 20:33:44 GMT 1
when I Assign the LPT1 to the given margins it will print correct page size
If I use LPT1 to printer will print directly
other commands will not be executed {This is very confusing}
I don't know what goes wrong even I thoroughly gone through the Printing.pdf
|
|
|
Post by Jos on Feb 10, 2019 21:13:31 GMT 1
So with LPT1, LPT2 and LPT3 set as you mentioned, for instance COPY autoexec.txt LPT2 at the vDos command prompt doesn't respect the set margins. And COPY autoexec.txt LPT3 doesn't print in Gabriola Bold Oblique? If your application only prints to LPT1, what do you expect LPT2= and LPT3= to do?
Jos
|
|
|
Post by ahmednh on Feb 10, 2019 21:34:01 GMT 1
the problem seems that if I assign LPT1 to printer the output will not be correct, but if I assign the printer to LPT2 OR LPT3 the printer selection dialog box will appear to select the printer the printout will be correct
|
|
|
Post by Jos on Feb 10, 2019 22:12:29 GMT 1
So everything is working as it should be.
Print to LPT1, printer selection dialog skipped, no margins or other font, since the HORZ:, VERT: and FONT: options are not set for LPT1. Print to LPT2, with margins, no font, and the printer selection dialog, since the HORZ:, VERT:, and SEL: options are not set for LPT2. Print to LPT3, other font, no margins and the printer selection dialog, since the FONT: and SEL: options are not set for LPT3.
Jos
|
|
|
Post by ahmednh on Feb 11, 2019 9:53:56 GMT 1
I guessed the salutations with only one line instructions LPT1 = SEL: Easy Pdf Creator" horz:5,5,80 vert:5,5,65 Font: "Courier New Bold Italic" And every result came as I want
|
|