Invoke Print in Web Viewer, Server Side

Stimulsoft Reports.WEB discussion
Post Reply
fuhrj
Posts: 120
Joined: Wed Jun 11, 2008 12:51 pm
Location: Lancaster, Ohio

Invoke Print in Web Viewer, Server Side

Post 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?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Invoke Print in Web Viewer, Server Side

Post by HighAley »

Hello.

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

Thank you.
fuhrj
Posts: 120
Joined: Wed Jun 11, 2008 12:51 pm
Location: Lancaster, Ohio

Re: Invoke Print in Web Viewer, Server Side

Post 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?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Invoke Print in Web Viewer, Server Side

Post 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.
Post Reply