Window Minimizing

G

Guest

All,
I have an ASP.net application from which I allow users to run reports that
are crystal reports and exported to PDF format, in addition there are other
static documents that users can view in pdf format.

Each time a PDF document is opened, it is opened in a new window (this fine)
but the windows seems to minimize.
Why does this happen, is it code related?
This is what I use:
With Response
.ContentType = "application/pdf"
.Buffer = True
.WriteFile(strFileName)
.Flush()
.Close()
End With

In Order to let the PDF open within the current window sould the target be
_self?

Any help or suggestions are always appreciated
Jawahar
 
G

Guest

try this
top open the document in a new page and not minimizing the window.
Response.AddHeader "Content-Type", "application/octet-stream"
Response.AddHeader "Content-Disposition", "attachment;filename=test.pdf"
or
this will open the report in the same window. the file name can be any name.
Response.AddHeader "Content-Disposition", "inline;filename=test.pdf"
 

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,764
Messages
2,569,564
Members
45,040
Latest member
papereejit

Latest Threads

Top