|
Post by castillofr on Jun 10, 2019 21:16:30 GMT 1
Hi!
I am using vDos version 2017.08.01 and printing well to an Epson printer 80 colons (LPT1 = Raw) from dBase IV programme.
Somtimes, in order to save the continuous paper (fanfold), I would like to print only to PDF by saving the created file - preferably numbered or so on to avoid deleting it by replacing it each time with the same output name on disk.
What is the best and easy way to do so?
Many thanks.
|
|
|
Post by Jos on Jun 10, 2019 21:35:30 GMT 1
First, update to version 2019.05.01, you’re two years behind.
If you actually still have an Epson matrix printer, LPT1 = RAW will give the best results. Due the low resolution of these printers you would have to invest some time to set the vDos printer parameters (no Raw) so they give the same (quality) results.
You have to setup a printer w/o RAW, so the DOS program output is interpreted by vDos, and will be accepted by Windows (virtual) printers.
Have a look at FAQs - Printing (https://www.vdos.info/faqs.html) and the Printing.pdf document. Whatever you need should be covered by those.
Jos
|
|
|
Post by castillofr on Jun 10, 2019 21:47:31 GMT 1
Okay. Thanks Jos.
I tried with 'Microsoft to PDF' but no chance to get the pdf file.
|
|
|
Post by Jos on Jun 10, 2019 21:52:25 GMT 1
Microsoft to PDF is troublesome, and very limited.
Try one of the (freeware) virtual printers, like BullZip.
Jos
|
|
|
Post by castillofr on Jun 10, 2019 21:57:55 GMT 1
I will try it. Thanks.
|
|
|
Post by castillofr on Jun 11, 2019 23:29:45 GMT 1
Hi Jos,
I tested in a PC with Adobe PDF virtual printer installed in it and it works with this line in config LPT1 = SEL:"Adobe PDF"
Can I print the pdf directly to a Laser printer from dBase instead of opening it and printing it from the pdf reader in Windows?
The command line for printing the output must be inserted where in the same line of LPT1 or in a separate one?
Thanks!
|
|
|
Post by Jos on Jun 12, 2019 0:01:18 GMT 1
If you want to only print, use LPT1 = SEL:"Windows printer name". Or omit LPT1 = …, so you can choose where to print to.
If both, a PDF document to save and print (w/o opening), consult the Adobe PDF virtual printer documentation. If that isn’t supported, get a virtual PDF printer that does.
Jos
|
|
|
Post by castillofr on Jun 12, 2019 10:25:15 GMT 1
Many thanks Jos.
|
|
|
Post by stevecc on Feb 4, 2022 1:26:50 GMT 1
To continue on this subject - i have a line in config.txt that says "LPT1 = SEL:"CutePDF Writer" Works fine. So CutePDF Writer asks me where to put the pdf file which it suggests might be named the "name of the Windows Shortcut file.pdf" that I use to start my program. Is there any way I can use memory variables in my dBase program to feed/suggest a more appropriate name?
|
|
|
Post by Jos on Feb 4, 2022 6:58:25 GMT 1
I suppose that name is variable with the option to be changed. That will be hard or even impossible.
How is the dBase program supposed to affect the Windows CutePDF program that will be started later on?
Since CutePDF uses the Ghostscript gswin32c.exe converter in combination with a Setup.ini file in "%Program Files%\Acro Software\CutePDF Writer" folder, you could give it a try by manipulating that ini file.
Change the "%1" in the following line to what you want as destination. Arguments=put arguments here (e.g. -sOutputFile="%1" -c save pop -f "%2")
But if the suggested name is eventually to be changed, it will be far more complex and ugly. Change the Command=C:\gs\bin\gswin32c.exe line to some script file, incorporate testing for a file name change, call gswin32c.exe with the appropriate settings…
Jos
|
|