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.
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.
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.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I'm just using the 'PDF' device that ships with Report Builder.
Should I still be using PrintToDevices, instead of Print?
Thanks,
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com