>Elbert,
>
>The most efficient way to make caracter based documents, is to write the invoice to a text file first (May be handy to store the in a separate directory for later use).
>
>SET PRINTER TO (cFile)
>SET PRINTER ON
>SET CONSOLE OFF
>
>??? Controlcodes
>? cText
>??? Controlcodes
>
>SET CONSOLE ON
>SET PRINTER OFF
>SET PRINTER TO
>
>After this you can write the text file to a LPT port with the following command.
>
>COPY (cFile) TO Lpt1.dos
>
>If you're a network and the printers are not attached to a LPT port you can use:
>
>! NET USE LPT9 \\Servername\printername /yes
>(of course you also could use the waddconnection api call)
>
>command to attach the printer to LPT9
Rather than this, you can use the Win32 API call CopyFile() to the UNC of the network printer or port - I posted code for this a couple of weeks ago. This has the advantage of working identically cross-platform, and avoiding having to explicitly attach the printer to the port via NET USE or one of the WNet API calls.
>
>Walter,