Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting paper size through program
Message
From
01/07/2006 09:40:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
01/07/2006 01:56:58
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01133240
Message ID:
01133258
Views:
13
>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)
  • Previous
    Reply
    Map
    View

    Click here to load this message in the networking platform