Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need a Page Eject Code
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00017170
Message ID:
00017206
Views:
60
>>>My users needed to send a report no to the screen or printer but to a file, and then have that file mailed to them so the can distribute it through out the department. I had no trouble creating the report and mailing it, but I have not been able to send the characters needed to perform a page eject when I will to have the next data on a new page. can anyone help me solve this. Currently I am using the following method:
>>>
>>>Set device to file mfilename
>>>
>>>DO WHILE NOT EOF()
>>> @ 1,1 SAY blah blah.....
>>> @ 2,1 SAY blah blah....
>>> * Need an eject here....
>>>ENDDO
>>
>>hi bret,
>>
>>try " ??? chr(12)"
>
>No luck, the ??? expects you to go directly to a printer. I am not going
>to a printer but a file. A CHR(12) formfeed does not formfeed the page
>when sending to the printer, namely a laserjet iv. What I see in the file is my text and a funny looking box character when viewing it in wordpad of
>windows 95. The main goal here is to create a text file that will be mailed, but have page breaks in it to separate the data. Maybe I am thinking
>wrong in my assumption that a generic form feed can be produced in
>FoxPro that can be acted upon by a printer that the user choses to send
>this emailed file to.

bret,

chr(12) is (or at least i thought it was) universal FormFeed character. ive used it on most dot matrix, a couple of lazers, and an ink jet or two.;;; try ' @ nn,nn say chr(12)'

5 inch guns were thought to be obsolete in the early 60's also!
Lucien T. Elliott Programmer/Analyst
Staple Cotton CoOperative Association
416 West Market St | Greenwood | MS | 38930 | (662) 453 6231
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform