lcFileInRam = FileToStr("MyFile.txt")
??? lcPrinterSetupCodes + lcFileInRam
As for the printer setup codes, RTFM (the printer manual, in this case); for an Epson printer I often changed the dpi settings for specific reports.
>I am trying to print a text file to a printer that is shared and connected to another computer.
>
>>>Is that possible? I need it for Windows 2003. The printer is a network printer.
>>
>>Can you elaborate on why you're trying to do this?
>>
>>If the printer is a GDI printer then no, you can't send "raw data". If it has its own print engine you should be able to.
>>
>>There are several possible configurations for "network printers" - which is your case?
>>
>>1. Printer has a network card. Print jobs travel directly from workstations to the printer
>>2. Printer has a network card. Print jobs travel from workstations to a print queue on a server computer, which then sends them to the printer
>>3. Printer is directly attached to a server computer via USB, parallel cable etc. Print jobs travel from workstations to a print queue on this server, which sends them to the printer
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)