Hi everyone

Can anyone help me.

I have an application that has two reports that require to be printed on
two different printers.

I have set up a parameters file with which I use to store the
'printerindex' of each printer and then recall it with the appropriate
report runs for the appropriate printer.

I know that in Delphi 4 the printerindex from the Printersetdialog
dialog does not set itself due to a bug, according to the help.

I have tried picked up the printerindex from Quickreports and Nevronas
Reportprinter, they both had different indexes for the same printer, but
I don't believe a few of the replies I am getting from their
setupdialogs.

Using quickreports as the example.

1. I set up Quickreports the printerindex via the
TQuickreport.Printersettings.printerindex and this appears to select the
printer required printer but if I then call the setupdialog the printer
it shows as the currently selected printer is not the one setup
immediately prior to calling the dialog.

2. I have selected the printer required and it has returned me a
printerindex of 8. If I recall the dialog the same printer still shows
as the currently selected printer and 8 is accepted. But if I quit the
program and then restart it, reset the printerindex to 8, which is what
it returned to me when I selected it, it gives me 'List out of bounds'
indicating the 8 is an invalid printerindex.

Anyone ideas please

Eion


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to