Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to print a report without displaying it in a web application

$
0
0

This example illustrates the approach of printing report document directly, via Adobe PDF web browser plug-in.
This can be done by sending the exported XtraReport document via the Page.Response.OutputStream.Write method, and setting the PdfExportOptions.ShowPrintDialogOnOpen property to True.

See also:
How to print/export XtraReport in an ASP.NET application without showing a report preview

Question Comments

Added By: M Abo Habiba at: 8/28/2013 2:08:29 PM    

can i print it without export to pdf ?

Added By: Alex (DevExpress Support) at: 8/29/2013 2:54:42 AM    

Hi,

The direct printing approach is not supported in a Web application because the web server does not have direct access to the printer installed on the client's machine.

Added By: M Abo Habiba at: 9/2/2013 12:38:48 PM    

I face a problem when i try to print using pdf (Arabic Unicode)
i tried to print it using java script but when page load it show the print dialog before report displayed can detect after print in java script or any way else
thanx

Added By: Alex (DevExpress Support) at: 9/3/2013 1:29:36 AM    

Hi,

If possible, create a separate ticket in Support Center and provide your test application for further examination. We will check for a suitable solution.

Added By: FSzymanska at: 3/5/2014 3:34:09 AM    

Hi,

I have run your example. Everything works fine when English chars are used. But when I put poloish chars like 'ś' , ć' in the report content thay are printed badly. Looks like problem with encoding. Can you please help me?

Added By: M Abo Habiba at: 4/24/2016 9:19:51 AM    i used this example to print put it's appear look like pdf viewer in browser 

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>