Erro using PrintToDotMatrixPrinter

Сonversation on different topics
Post Reply
Douglas
Posts: 1
Joined: Wed Mar 03, 2010 8:19 am

Erro using PrintToDotMatrixPrinter

Post by Douglas »

When im using the PrintToDotMatrixPrinter acessing a server (the code is running on the web server) and the report give me this error: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
What can i do?I want to call the method PrintToDotMatrixPrinter in another way, when the report is showing to me.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Erro using PrintToDotMatrixPrinter

Post by Andrew »

Dear Douglas,

Calling this method you try to send a report to the server for printing. Only by means of a browser you may print on the client. You need to use the WebViewer. It has special methods: PrintToDirect, PrintToPdf, PrintToPopupWindow.

Thank you.
Post Reply