S
Suedois
Hi,
I use a Crystal Report Viewer to export a report in PDF. This is done by a
code behind procedure like this:
private void ExportReport()
{
MemoryStream oStream = new MemoryStream() ;
oStream = (MemoryStream)
currentReport.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
Response.Clear();
Response.Buffer = true;
Response.ContentType = "application/pdf";
Response.BinaryWrite(oStream.ToArray());
Response.End();
}
This work well and open a Acrobat reader into IE.
What I want is that the report in PDF format appear into a new window. It
seem to be impossible to communicatate between a window open from client side
by JavaScript and a stream generated form code behind.
Any suggestions are welcome.
I use a Crystal Report Viewer to export a report in PDF. This is done by a
code behind procedure like this:
private void ExportReport()
{
MemoryStream oStream = new MemoryStream() ;
oStream = (MemoryStream)
currentReport.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
Response.Clear();
Response.Buffer = true;
Response.ContentType = "application/pdf";
Response.BinaryWrite(oStream.ToArray());
Response.End();
}
This work well and open a Acrobat reader into IE.
What I want is that the report in PDF format appear into a new window. It
seem to be impossible to communicatate between a window open from client side
by JavaScript and a stream generated form code behind.
Any suggestions are welcome.