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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

page setup

Status
Not open for further replies.

marcfree

Programmer
Jul 4, 2002
31
BR
Is it possible to change the page dimensions programaticaly without using the print setup dialog box?
 
Well yes and no. :) Officially, you should use the print setup box, but you can always open the .FRX/.FRX as a table and modify what you want. The FPW reference manuals describe some of the record types and values, but it's always best to do some testing on a copy of your report and test the results. Note: Sometimes changing things may not "work" - the printer driver ulitmately is in charge of what gets used. e.g. If you try to move the left margin in an area the printer can't physically access, it really won't matter.

Rick
 
Thank you for your help Rick.

I'm using HP 656 and whenever I try to open the print setup dialog I receive an error message in hpz9xd04.drv, and if I ignore it for three or four times the dialog opens but the field size of the paper is blank, as if fpw couldn't receive this information from the printer drive. Any idea why is this happening?

Marc
 
Marc,
This usally happens because the report was created on a system that has different printers (and drivers) than installed on your system. You'll either need to install the missing drivers (remember you can install drivers for printers that don't really exist), or open the .FRX and clear the information in the first record in the TAG and TAG2 fields. This where FP stores the original Printer info. (Remember to save off a copy of the files just in case!)

Rick
 
As soon as I open fpw and go to the print setup menu I have the message error. The problem is that it doesn't know the page size and because of that I presume the error occurs. I've tried to remove the contents of the tag fields but it didn't work.
 
OK I think I'm with you now - I was answering a question you weren't really asking!

Since it's asking for a .DRV file, I'll assume you are running under Win9x. With FPW closed, go to the system Start menu, and choose Settings -> Printers. Change the Default printer to a something other than the one you have right now. (If you only have one installed, install another one and assign it to LPT1 - don't worry about whether you really have it! Just don't do a test print at the end of the install.)

Now go into FPW and see if you still get the error. If you don't, then you may just have a registry, Win.INI conflict. Check to see if your WIN.INI file has Devices and PrinterPorts Sections and that all your Installed printers are listed. If not, then you may need to reinstall the "missing" printer driver.

Remember that FPW was written for use in Win 3.x, and it uses the WIN.INI file to get a lot of info, unlike the newer apps that use the Registry. (The Win 3.x registry was quite a bit different than what the 32-bit OS's use.)

Rick
 
Dear Rick,

I really appreciate your help but nothing seems to work. I
checked to see if WIN.INI file has Devices and PrinterPorts Sections and that all my Installed printers are listed and everything is there. If I use the hp 560 driver it works fine. I realize that hp656, hp3420 and all other 4 digits models don't work. I get the same error message. The problem is that all my clients with these HP models are with the same problem and I can't help them and I'm losing them.
 
If your clients are using new printers and OSs, perhaps they need a new application. Consider upgrading to VFP 8.0 - I've not run into these problems there.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top