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

TppProducer.PrintToPrinter: The file device has already been created.

edited March 2011 in General
I am getting this error when issuing the .Print command of a report. It is
very infrequent but very disruptive. I have trapped the command with
exception handling. Is there any way to free the device and allow a
reprint?

TppProducer.PrintToPrinter: The file device has already been created.

Using D6, RB11.04

Thanks,
Perry

Comments

  • edited March 2011
    Hi Perry,

    This error can indicate a few things.

    Generally it means that there is a device (file, screen, or printer)
    already connected to the report and TppReport.Print is called. The
    Print command creates its own device so if you are manually creating
    devices, PrintToDevices should be called.

    This error can also arise when a subsequent call to Print occurs and the
    previous call has not finished its task.


    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.