Hi Jos (& Gerard & ed):

Actually, repeated the suggested method of leaving LPT command out of config (I 
checked again, not there, will include file)  and no complaint by vDos about 
pcl6.exe (which is in the vDos directory) -- what pops up is the printer 
dialogue menu asking me what printer.  If I chose default printer, report comes 
out with raw PCL codes.  I I choose Adobe Acrobat Professional PDF printer, it 
says my copy is not activated (but it really is!).  Finally, I downloaded 
Bullzip PDF printer and repeate the whole process and got the printer dialogue 
again -- this time I choose bullzip pdf printer but but the output the looks 
the same as with the local printer -- no interpretation of PCL codes

I'll include the asc and config files for you to see what I did wrong.

BTW, should I have renamed config.txt and autoexec.txt to *.bat files?

I appreciate the help everyone is giving me.

Gerard:  What printer code formatting do you use before PDF generation (I 
assume DPSpool printer code)?  You're using DPSpool and NOT DOSprinter, is that 
right?

Jon


  -----Original Message-----
From: [email protected] [mailto:[email protected]] 
On Behalf Of JosSchaars
Sent: Tuesday, September 30, 2014 1:50 AM
To: [email protected]
Subject: Re: [Dataperf] Dosprinter working in Vdos

The method of Gerard van Loenhout will also work, you would have to use Epson 
ESC codes instead of PCL codes.

You say you have REM d out all LPT1 printer settings in cofig.txt and the 
report is printed out to the parallel port.
That can t be, if nothing is set in config.txt, the DOSPrinter printer 
selection dialog will popup or vDos complains that PCL6.exe can t be found if 
the printer output is recognized as PCL.
You left a LPT1= setting in config.txt, or DP prints to LPT2 or LPT3 with a 
printer setting.
Eventually have a look in the vDos folder what LPTx.asc and LPTx.txt is created 
when DP prints.
Then remove or REM out that LPTx setting in config.txt.
Without an associated LPTx setting, you can only get:
1. A DOSPrinter selection dialog: the printer output isn t recognized as PCL, 
send me a copy of the LPTx.asc file.
2. An error message from vDos that it couldn t start PCL6.exe, it has to be in 
the vDos folder.
3. Adobe Reader (or some other standard PDF reader) with your report opened.

Jos

_______________________________________________
Dataperf mailing list
[email protected]
http://lists.dataperfect.nl/cgi-bin/mailman/listinfo/dataperf

Attachment: #LPT1.asc
Description: Binary data

REM Configuration
REM =============
rem vDos has some options, you set them in this file.
rem Most of the default settings should only be changed if needed.
rem Don't try to include DOS config.sys settings like KEYB=, that won't work!


REM Memory
REM ======
rem The first 64KB (low) memory is excluded.
rem If you need more than 575KB of conventional memory. Caution, not all DOS 
programs can handle this:
rem LOW = ON

rem 160KB of upper memory (UMB) is available.
rem You can mainly use this for loading TSR's with LH/LOADHIGH. 

rem XMS (extended) memory is 63MB.
rem If your program cannot use XMS, but EMS, you can convert all XMS to EMS 3.2.
rem It will consume 64KB of UMB:
rem EMS = ON


REM Mouse
REM =====
rem In text mode the mouse is disabled.
rem Many DOS programs just manage the mouse badly, to turn it on:
rem MOUSE = ON


REM Window/font
REM ===========
rem Text is displayed using a built-in scalable TTF font.
rem If some extended ASCII (diacritic) characters display incorrectly, they are 
probably simply not defined in this limited font.
rem To use another TTF font, locate it in the Windows font folder and copy that 
file (consola.ttf...) to the vDos folder:
rem FONT = CONSOLA

rem The standard vDos window is lean and mean. No borders or title bar. Give it 
a try for some time to get accustomized to it.
rem Hover over the top line, a minimize button will appear in the upper right 
corner.
rem Left click and drag the window to move it.
rem No close button, you have to EXIT your application to close the window.
rem If you don't like it and want the familiar Windows borders and title bar:
rem FRAME = ON

rem The initial window will cover max 75% of the screen.
rem To change this, use WINDOW = <max percentage>.
rem This would give you a full screen window:
rem WINDOW = 100

rem The window is by default centered on the desktop.
rem To set it at another position, use WINDOW = <max percentage>, left x-pos : 
top y-pos.
rem Note: the window is ensured to be completely visible. If not, the x- and 
y-pos are ignored.
rem WINDOW = 80,100:60

rem The number of lines/columns in text mode are the stanndard DOS 25/80.
rem You can override this by LINS = <24..60> and COLS = <80..160>. 
rem And use any combination of these.
rem See for yourself if this is useful or even supported by your application.

rem You can postpone vDos from displaying anything.
rem Default = 0.5 seconds. Mostly the initial black DOS screen won't show up 
that way until your application is loaded.
rem This value is in tenths of a seconds, so to hide the vDos window for 1 
second:
rem HIDE = 10

rem To use a different color scheme in text mode, supply 16 color values in 
RGB: (r,g,b) or hexadecimal as in HTML: #RRBBGG.
rem This gives you a bit dimmed color scheme (first line is docu):
rem                             0 - Black       1 - Blue        2 - Green       
3 - Aqua        4 - Red         5 - Purple      6 - Yellow      7 - White       
        8 - Gray        9 - Lt Blue             10 - Lt Green   11 - Lt Aqua    
12 - Lt Red             13- Lt Purple   14 - Lt Yellow  15 - Bright White
rem COLORS =    (16,16,16)      #1040B1         (0,152,0)       (0,144,176)     
(176,32,64)     (144,0,176)     (208,96,0)      (192,192,192)   (96,96,96)      
(40,136,255)    (120,184,0)             (144,244,224)   (216,72,48)             
(224,244,255)   (244,224,128)   (240,240,240)

rem Scale the window in graphics mode: SCALE = <1..9> (thatÂ’s 100..900%).
rem It won't be that nice, One single point is simply enlarged to 2x2 points:
rem SCALE = 2


REM Printing
REM ========
rem LPT<1..9> and COM<1..9> are available for printing.
rem The program DOSPrinter by default handles printer output.
rem If nothing is set, it will pop up a printer selection dialog when your 
application finished printing.
rem Note: it only supports the Epson printer (the most widely used and emulated 
one) in your application.

rem Some examples, have a look at the DOSPrinter.pdf file for more options.
rem LPT1 = /SEL2 /CPIA /LEFT0.50 /TOP0.50
rem COM1 = /SEL /SEL2 /RTF /CPIA /LEFT0.75 /TOP0.75 /65
rem If you have a (DOS) printer that supports your application directly:
rem LPT2 = /SEL'HPLaserJet2200' /RAW

rem Other options, not using DOSPrinter.
rem Just ignore the output:
rem LPT3 = DUMMY
rem Open the printer output in Notepad:
rem COM2 = notepad #com2.txt
rem Start a Windows application hidden with the printer data:
rem COM2 = @%windir%\system32\notepad.exe /p #com2.txt

rem If your application supports PCL or PostScript (PS) printers...
rem Output to these printers is automatically detected, converted to PDF and 
shown in the default PDF reader.
rem For this to function the program pcl6.exe (PCL) or gswin32c.exe (PS) is 
required in the vDos folder.
rem You can download these at http://www.columbia.edu/~em36/ghostpcl.html 
(GhostPCL-W32-Binaries.zip).
@ECHO OFF

rem This is essentialy the autoexec.bat of DOS.
rem Only one additional vDos specific command: USE.

rem At startup only z: (bootdisk/command.com) is known by vDos.
rem So first you assign one or more DOS driveletters to Windows folders.
rem Use <driveletter:> <Windows folder>
rem Files/folders that don't confirm to the DOS 8.3 filenaming are hidden (as 
it should).

rem To just use the vDos working folder as C:
USE C: .\

rem Switch from Z: to C:
C:

rem Select the DPTEST folder
CD MM

rem Start the DataPerfect Testdrive program.
rem Note: This is only to demonstrate and confirm vDos is working.
rem Use [F7] to exit the program.
rem DP26YI /s

cd \mm\office
shell.exe

rem Close the vDos window as DP is ended
EXIT
_______________________________________________
Dataperf mailing list
[email protected]
http://lists.dataperfect.nl/cgi-bin/mailman/listinfo/dataperf

Reply via email to