Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing a file directly to a printer
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Printing a file directly to a printer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01351589
Message ID:
01351589
Views:
71
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
Next
Reply
Map
View

Click here to load this message in the networking platform