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

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

edited February 2011 in General
I have a TppReport that prints using the PDF device type. It works fine
for me, but I have one user who always gets the error in the subject
line when he tries to print.

What could be causing this error?

Thanks for your help,

Jason

Comments

  • edited February 2011
    Forgot to mention I'm on D2009 and RB 12.01
  • edited February 2011
    Hi Jason,

    This error generally implies that you are creating your own file device,
    assigning its publisher, then making a call to Report.Print. If you are
    creating your own file device (PDF) you need to be sure to call
    PrintToDevices rather than Print which will create its own file device.

    If this is not the case, there may be something else going on. Please send
    a simple example that demonstrates the issue to
    support@digital-metaphors.com in .zip format and I'll take a look at it for
    you.



    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2011
    Nico,

    I'm just using the 'PDF' device that ships with Report Builder.

    Should I still be using PrintToDevices, instead of Print?

    Thanks,
    Jason
  • edited February 2011
    Hi Jason,

    Does this occur on your user's machine when you try to export any report?
    Are there multiple places in your app where you are calling Print? The only
    way this error is given is from outside alteration of ReportBuilder. We
    would need to see a simple example that demonstrates the issue (on your
    user's machine) here. You can send the example in .zip format to
    support@digital-metaphors.com in .zip format if you would like us to take a
    look.

    The only reason to call PrintToDevices is if you are creating the
    printer/screen/file devices manually and connecting to the report's
    publisher. Otherwise you should always call Print.



    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.