Myzani,
I agree with JRB-Bldr.
Basically, what we're suggesting is that you go through the steps of re-installing the printer (that is, the printer that supports the custom paper size), even though the printer was already installed. In Control Panel, it will appear as two separate printers.
Now, go to the property sheet of the printer you have just installed. In the appropriate box, enter a new name for the printer. Call it, say, "VFP printer" (that's just an example). The box where you enter the name will vary with the make and model of printer, but it's usually the first box on the General page.
Next, use the properties sheet to specify the custom page size. How you do that will again depend on the make and model. In my HP Laserjet P2105, for example, I go to General / Printing Preferences / Paper/Quality / Custom. I the enter the measurements, and give the custom paper size a name.
Finally, OK out of the dialogues to save your settings.
In the report designer, specify the custom paper size name in the Page Setup dialogue.
To print the report, either programmatically set the printer to the name you gave the new printer ("VFP printer" in this example), or use the PROMPT clause so that the user can select the printer.
Obviously, this relies on the user also following the above steps to set up the printer driver. You might be able to partly automate those steps by using the PrintUI.DLL, but you would still need some way of specifying the custom paper size. If you want to follow that up, see
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro tips, advice, training, consultancy
Custom software for your business