Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A3 reports on a computer with A4 printer

Status
Not open for further replies.

Kimed

Programmer
May 25, 2005
104
LT
Hi,

In my program on VFP 7.0, there's a report that can only be printed on A3 size paper. The network printer that is used in our LAN fits just fine. The problem is that some of computers where the program is installed have local printers with maximum of A4 paper possible set for default. To actually print it on paper, I can issue TO PRINTER PROMPT clause and select required printer manually, but to preview, it automatically chooses default A4 printer as the only option and cuts right and bottom sides of the page (even though I set the network printer and A3 size in File/Page Setup menu . Can I do anything to display the report properly except forcing accountants to manually set the default printer in Windows control panel every time and reset it back after the program stops (and I'd rather not resort to an option that may be a bit beyond their abilities :) )?

Thanks.
 
Assuming that your printers are named the same on all of the users workstations, you could use Automation to change the "current" default printer when needed to a known alternate A3 printer and then, when done, restore the original default.

Look at the following for some suggestions
thread184-940247
faq184-4324
faq184-2444
faq184-2747

Good Luck,
JRB-Bldr
 
Kimed,

but to preview, it automatically chooses default A4 printer as the only option

It sounds like the printer information is embedded in the FRX. I'd start by stripping out that information (if you don't know how to do that, take a look at
Then, before you preview the report, use SET PRINTER TO NAME to switch to the A3 printer.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top