Page 1 of 1

Invoke Print in Web Viewer, Server Side

Posted: Thu Feb 21, 2013 2:04 am
by fuhrj
Is it possible to load a report into the Web Viewer and then invoke printing process?

We are building an application where Reports.Web is used to generate an invoice. After the invoice (report) is generated, I want to print the report without the user seeing the Web Viewer. So basically, no print preview.

Can this be achieved in a browser environment?

Re: Invoke Print in Web Viewer, Server Side

Posted: Thu Feb 21, 2013 12:49 pm
by HighAley
Hello.

You could use the PrintToDirect() method of the StiWevViewer.
Please, read the knowledge base article.

Thank you.

Re: Invoke Print in Web Viewer, Server Side

Posted: Sat Feb 23, 2013 4:10 pm
by fuhrj
This works great, thanks.

Is it possible to hide the URL and the "Page 1 of 1" that print in the footer and header?

Re: Invoke Print in Web Viewer, Server Side

Posted: Mon Feb 25, 2013 12:16 pm
by HighAley
Hello.
fuhrj wrote:Is it possible to hide the URL and the "Page 1 of 1" that print in the footer and header?
This text is added by browser. You should set the Page Settings in the browser. Please, read an article in our Knowledge Base.

Thank you.