Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report for 1/3 of page
Message
 
To
26/01/2003 03:24:22
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00745254
Message ID:
00746098
Views:
22
I actually used something similar to this approach years ago for pre-printed forms where the data had to go in exact positions on the form, but that was using FoxPro 2.0 DOS. It's been a long time. The issue with your suggestion is that you need to know the size of the typeface the printer uses and the spacing between the lines. This is easy enough to figure out by just filling a small cursor with maybe 80 rows of the same data, you won't need a long string, just, say, 25 characters. Then just measure and note how many lines fit into the desired space. The method I actually used was more detailed and complicated, due to the precise positioning used. To get that precise, you need the printer escape codes so you can set the font, line spacing, etc. These days it's not usually done. But you can do it. If I remember correctly, to send the escape codes you need to use the double question mark (??) followed by the codes.

Good luck, it's not pretty! :)

Dana

>Hello Dmitry.
>
>If you are filling in pre-printed forms and want to have 100% control over the printing process you can try another thing, specially when you have a dot matrix and want Text mode.
>If this is your situation, we solved this issue in order to print a 7" form and we don't depend on printer drivers or paper sizes.
>
>Try this in your printing procedure:
>
>** -----------------------------------------------
>
>set device to print
>
>??? " " && bypasses the printer driver and sends data
> && directly to the printer.
> && See the help for ??? and PROW() commands
>
>@ prow() + 1, 1 say " "
>@ prow() + 1, 20 say alltrim(cCompany)
>@ prow() + 1, 20 say Date()
>
>@ prow() + 5 say " "
>
>** Add any VFP commands you need to print your form: IF, CASE, etc.
>
>** Close printer
>
>
>set device to screen
>
>
>** --------------------------------------
>
>
>
>
>
>
>
>
>
>>I need to design a report which will print on a continuous pin-fed paper where each page is 1/3 of regular 11" paper.
>>
>>How and where do I specify the custom size of the paper and disable page eject?
>>
>>TIA.
>>Dmitry
Where's the damned Any Key?...too late
Previous
Reply
Map
View

Click here to load this message in the networking platform