Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send a text file containing CHR(12) 's to the printer .
Message
From
15/10/2000 22:50:12
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00429558
Message ID:
00429659
Views:
16
>I have some text files, generated by another program, that need to be printed from within my VFP application. These text files contain embedded CHR(12)'s where each page break should occur. (Line width is already limited to 80 characters, so that's no problem.)
>
>How can files like these be printed programmatically without losing the pagination?

I do the same thing to print checks to blank check stock. I build the file, copy to a temp file and use teh RAPRINT.FLL (see files section) to copy the file to any printer available over the WAN/LAN. With RAWPRINT.FLL you can print to a port on the local PC or any shared network printer using a UNC path. The advantage of RAWPRINT.fll is that you do not have to use any of the set printer commands.

Just load file fll in memory and send the file

lretval = RAWPRINT([\\server name\printer],[c:\temp\coutput.txt])

Easy as pie and it has not failed yet. Solves the problem of making sure that each client has a printer mapped when using (???).
Fred Lauckner

You know, it works on my computer. I don't know what your problem is.

.Net aint so bad.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform