>I have write the program for printing and its print through command @say, and all my reports are set in various paper size (i.e. A4, Legal, A3), my question is how can I set the perticular paper size to the default printer by writing program in VFP.
>
>Please give me the solution?
>
>Thanks
>Jignesh
To print in text mode (fast printing on dot-matrix printers), I used @...say many years ago, but eventually I found it more convenient to use "?" and "??". Eventually, I created an entire text-file (this helps for easy preview), and sent the entire text file, plus printer codes, to the printer with the "???" command.
In this case, you can send printer codes to set the page size - read the manual for your specific printer.
The other option is to print in graphics mode (slower on some printers, but it works on all printers that work with Windows).
In this case, it is more convenient to use some other option for your reports, for example:
The Visual FoxPro report writer.
Excel Automation.
Crystal Reports.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)