Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report - defaullt printer settings
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01022570
Message ID:
01022832
Views:
13
This message has been marked as the solution to the initial question of the thread.
You need to get rid of the printer environment information that is stored with the report. To do that, open the report file as a table browse it. In the first record, clear the TAG and TAG2 fields. Also in the first record there is a field called EXPR. Don't clear it all -- but edit the field and clear the printer information. You still want to retain things like orientation.

Note that you will have to do this EVERY time you make a change to the report. Earlier versions of VFP always save the printer environment. Starting with VFP 8, you can turn that "feature" off.

Cathy



>Hi
>
>I am printing to 1 of 2 dot matrix printers both of which have a default paper size of Lexmark. The machine I am printing from also has a default paper size of Lexmark
>
>myreport="c:\mailflight\blank1.frx"
>report FORM (myreport) TO PRINTER prompt noconsole
>
>brings up the printer dialogue box - I select the appropriate printer only to find that the default paper size is Letter - I can of course alter this manually
>
>I can also alter blank1.frx to have a default printer of 1 of the 2 printers - then the correct paper size comes up in the printer dialogue box PROVIDING I select that printer
>
>If I select the second printer then I am again presented with Letter
>
>How so I change this so that the correct paper size is presented irrespective of which of the 2 printers I choose?
>
>Thanks
>
>Colin
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform