Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send a text file containing CHR(12) 's to the printer .
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00429558
Message ID:
00433875
Views:
15
Hi Fred,

It seemed :) Unfortunately, didn't work. I already tried bunch of different ideas and nothing worked. Yesterday reading this thread I was thinking, may be it's possible to save report as an ascii file and then print it. In this case we would preserve formatting. I have to try this idea, but I already have a bad feeling about it...


>I'll have to think about this. I wonder if we can test the _pageno at the group header and force a page ejection? This seems like a good direction to look in.
>
>Fred
>
>
>>Fred,
>>
>>May be you can help me with the problem, I put aside for a while. I have one idea to try, but it seems to be complicated, may be you know better ways. I have a report designed in VFP report writer. The report itself is quite complicated. I have to insert a blank page, if group ends on odd number in order to print each group from the new page, IOW, if the user uses both sides of page to print it should be like:
>>Group1
>>Page1
>>Page2
>>Page3
>>Empty Page
>>
>>Group2
>>Page1
>>Empty page
>>
>>Group3
>>Page1
>>Page2
>>
>>etc.
>>
>>Do you have ideas, how can I do this?
>>
>>Thanks in advance.
>>
>>>David:
>>>
>>>Thanks very much for the simplest solution yet! I tried it first, and it works great. I'm still going to explore the suggestions from Ed R. and Trey W.
>>>
>>>
>>>
>>>
>>>>Bruce,
>>>>
>>>>You can stay within FoxPro by using the ??? command
>>>>
>>>>lcFile = filetostr(...)
>>>>??? lcFile + ""
>>>>
>>>>>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?
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform