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

troubles with the set up of printers

edited July 2005 in Devices
Hi, someone knows how is that Report Builder do the set-up of the printers
installed on a computer?
The next situation is happenig to the users:
1. I have two printers installed and map on the computer.
2. I start my aplication that use RB, and print a report. The print
dialog show me both of the installed
printers.
3. While the aplication is open, I delete one of the printers.
4. I open the print dialog and the deleted printer is still there, also
if I try to print there an error ocurrs.

The same happens if I only had one printer and add another one. Is like
if RB be retaining the initial
setup of printers.
Also the ExtraDevices options disappears from the print dialog after
the error.

If this is any help or indication, I'm using RB. 6.03 with Delphi 6.0.
And the application is running on Citrix, and most of the users had Win98.

thanks a lot.

Comments

  • edited July 2005
    Hi Eugenio,

    ReportBuilder uses the Windows API to retrieve the printers installed on
    your machine and constructs a list of these printers (TppPrinterList). This
    printer list is saved in memory so RB does not have to keep asking Windows
    which printers are available. If you are adding or removing printers from
    you machine for some reason while RB is running, try calling the
    ppPrinters.Refresh before or after the report has completed printing. You
    will need to add ppPrintr to your uses clause to gain access to this object.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2005
    I will try that.
    thanks a lot Nico!!


This discussion has been closed.