One more thing that I should point out: converting your existing PRINT#-based code to DLLPRINT (or DOSPRINT which can be used with DOS, PB/DLL and PB/CC app's) will involve very little work.
You'll need to add a line or two of code to change the font size at the beginning of your PRINT# code, a FORMFEED at (for example) 55 lines, and finally add a call to DOSPRINT or DLLPRINT after the print file is closed.
For example, to use DLLPRINT with your application:
Code:
#COMPILE EXE #INCLUDE "DLLPRINT.INC" ... OPEN "test.dis" for output as #1 ' set compressed print mode, or you can use a specific font size if required. PRINT #1, $dpCompressed; for i=1 to 1000 PRINT #1, i, disY(i), disY(i) 'it is formatted! IF i MOD 55 = 0 THEN PRINT #1, $dpFF; next i CLOSE #1 CALL DLLPRINT "test.dis,,,/80" ' all done! ' Now delete the print file if required.
V1.20 has some helpful features:
1. Optional Print Preview mode!
2. Auto-formfeed, so lines of text automatically wrap to the next page if they touch the edge of the printable area.
3. Outline font mode.
4. Ability to specify the default font.
5. ... and a whole lot more besides!
V2.0 (the next version I am also working on) includes the ability to "embed" any number of images on the page, including BMP, JPG, TIFF, etc.
Anyone interested in DOSPRINT or DLLPRINT can download demo versions from www.amerimports.com/dosprint
Upon request, you can take a look at the final release candidate of version 1.2 (sans the updated doc's which I'm trying to finish off!)

As this is a non-PowerBASIC product, you can discuss it with me via my personal email address: mailto:[email protected][email protected]</A>
Regards,
Lance.
Leave a comment: