PrinterSetup.PrinterName urgent problem
We are using RB 6.03 and delphi 6 enterprise. In our application the reports
are loaded from file templates and the user can choose the printer to use
before the printing operation begins.
We have always used the PrinterSetup.PrinterName property to change the
printer name after loading the template, and everything seemed to work fine.
Recently we have installed TExtradevices 2.8 (I don't know if this is
related to our problem!) and now the PrinterSetup.PrinterName property seems
to be READ ONLY! this means that even if we set the PrinterName after
loading the template it still remains unchanged and uses the printer name
found in the report template! Nothing else has changed in the application.
anything to suggest?
thanks in advance
Mike
are loaded from file templates and the user can choose the printer to use
before the printing operation begins.
We have always used the PrinterSetup.PrinterName property to change the
printer name after loading the template, and everything seemed to work fine.
Recently we have installed TExtradevices 2.8 (I don't know if this is
related to our problem!) and now the PrinterSetup.PrinterName property seems
to be READ ONLY! this means that even if we set the PrinterName after
loading the template it still remains unchanged and uses the printer name
found in the report template! Nothing else has changed in the application.
anything to suggest?
thanks in advance
Mike
This discussion has been closed.
Comments
Always use one of the PrinterSetup.PrinterNames[] entries to set the
PrinterSetup.PrinterName. Otherwise, if the name you assign does not exactly
match one of the PrinterNames[], the assignment will be ignored. The
PrinterSetup.PrinterNames[] array is loaded from the exact printer names
returned by the printer driver. This will vary from machine to machine.
--
Nard Moseley
Digital Metaphors Corporation
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com