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 ... ?
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();
}