This is a migrated thread and some comments may be shown as answers.

Printing Problem in Internet Explorer

1 Answer 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Muhammad
Top achievements
Rank 1
Muhammad asked on 08 Aug 2011, 04:35 PM
Hi,

I am using the following code to print my report and it works fine on Google Chrome and Fireforx but the problem occurs when I use Internet Explorer (IE) and try to print my report. What happen is that the blank page shows and nothing happens. 

I think the reason it could be that IE can not render that report in pdf format ... ?



protected void Page_Load(object sender, EventArgs e)
    {
        Hashtable deviceInfo = new Hashtable();
        deviceInfo["JavaScript"] = "this.print({bUI: false, bSilent: true, bShrinkToFit: true});";
  
        ReportProcessor reportProcessor = new ReportProcessor();
        RenderingResult result = reportProcessor.RenderReport("PDF", new BarcodesReport(), deviceInfo);
  
        string fileName = result.DocumentName + ".pdf";
  
        Response.Clear();
        Response.ContentType = result.MimeType;
        Response.Cache.SetCacheability(HttpCacheability.Private);
        Response.Expires = -1;
        Response.Buffer = true;
        Response.BinaryWrite(result.DocumentBytes);
        Response.End();
  
    }

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 09 Aug 2011, 08:12 AM
Hello Muhammad,

It is not the browser that renders the reports, they are processed and rendered on the server. The code you're using simply specifies that the report should be immediately printed and it worked correctly in our local tests.

Best wishes,
Steve
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
General Discussions
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or