Check RawPrint.vcx from Downloads section here.
>I have aprinting application residing on a novell server, that I send a print job to a printer via the nprint command.
>
>Now the user is moving away from novell, and the same printer i now on an ip address.
>
>The easiest way to print to the printer is local via the command copy filename lpt1:
>
>I have been trying to use the copyfile api function. via
>
>Declare INTEGER CopyFile IN KERNEL32.DLL ;
> STRING @SourceFileName, ;
> STRING @DestFileName, ;
> INTEGER bFailIfExists
>lnError=CopyFile(cSourceFileName,cPortOrUNC,0)
>
>
>cSourceFileName='Test.Txt'
>cPortorUNC=\\192.168.1.70 - the address of the printer on the new network
>
>
>Or is their a simpler way to send a text file to this printer. This printer expects a text file, with all control codes in it.
>Mike
If it's not broken, fix it until it is.
My Blog