Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print summary band at very bottom of page
Message
From
08/08/1998 09:29:20
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
06/08/1998 22:10:26
Chris Crachiolo
Blackmoor Associates Incorporated
New York City, New York, United States
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00124156
Message ID:
00125016
Views:
21
>I'm a relative newbie, so forgive me if I'm completely out to lunch, but -- isn't it possible to embed printer control codes in a report? If so, and the output is going to a page printer (i.e. laser), you could issue the codes at the beginning of the summary band to position the output at a precise page coordinate (row/column) of your choice. (Or, put the codes at the beginning of each output field in the summary, if that's necessary to override VFP's positioning of the output.)
>
>Isn't it just a matter of using an expression which calls a UDF (which would make use of the "???" command to issue the codes) in an output field?
>I am hoping that it is, since the application that I'm porting to VFP is going to have to do some crazy stuff (like print sideways on a page that contains otherwise normal printing) which I had little trouble with in the ancient DOS application that my clients are using now, and I would hate to think that I'm going to have to face coding all this output by hand!


Well, you can still do it, but the whole idea of working under Windows is that your app should be device independent. Though, when it comes to printing, it narrows down to PCL or ESC/P2 for 98% of everything, so you'd actually have to maintain only two types of printers, generally.

Now if you decide to lose compatibility (or, should I say, generality) and hardcode the long-sausage escape sequences, it's your choice.

Btw, don't use ??? because it will try to bypass the Print Manager and print directly to printer, probably causing a separate print job (and print on another page or misbehave in other fancy ways); use ?? because it should print in between the other report output and be submitted to printing together with the rest of the page.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform