Windoes XP/2000/NT have a completely different printing architecture from Win 9x. This is particularly apparent when it comes to custom paper sizes.
Window XP handles paper sizes via Forms that are defined at the operating system level.
There are basic forms installed by the operating system. Additional forms may be added by printer driver installations or applications.
ReportBuilder defines a Custom paper size as one that is NOT already defined and known to the printer driver. There are Win API calls ReportBuilder uses to retrieve a list of available paper sizes known to the printer driver.
When printing a report, ReportBuilder first tries to find a pre-defined paper size it can use - one that matches the paper dimensions of the report. If it cannot find one, then it uses a Win API call to add/modify a Form named 'Custom'.
Each printer installed to Windown has security rights associated with it.
*** A group must have at Manage Documents or Full Control in order to update forms.
By default Administrators have full control. However Users by default have only Print rights.
To test a paper size:
a. Selecting the printer
b. Specify the paper size
c. press preview
d. Press print to display the print dialog.
e. From the print dialog press the Properties button to display the printer driver's built-in dialog. You should be able to verify the printer setting from here.
These are the values communicated by RB to the printer. If these are set correctly then RB has done its job, the rest is up to the printer.
If test number 1 above works properly then e-mail support@digital-metaphors.com with the exact configuration
you are using: Delphi version, ReportBuilder version, OS XP/2000, Win9x), and printer model.
We can download the driver and try it out here.