Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

PrinterSetup.PrinterName urgent problem

edited May 2004 in General
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

Comments

  • edited May 2004

    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
This discussion has been closed.