Stream in a new windows

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.
 
E

Evertjan.

=?Utf-8?B?U3VlZG9pcw==?= wrote on 07 feb 2006 in
microsoft.public.inetserver.asp.general:
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()

Is this classic ASP, I think not.
If it is asp.net, please ask in a dotnet group.
{
MemoryStream oStream = new MemoryStream() ;
oStream = (MemoryStream)
currentReport.ExportToStream(CrystalDecisions.Shared.ExportFormatType.P
ortableDocFormat);
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.

You should specify the window in the calling page, as ASP does not know
about windows:

<form target='_blank'>

or

<a href='..' target='_blank'>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top