IE save the pdf file in wrong file

T

tikcireviva

Hi,

I've had the following URL that generated by the javascript. It works
as "down a pdf file"

https://10.10.10.167/portal/servlet/project.SaveFile?PageUrl=ReportManager&FileName=tmp36237.pdf

I expected that the pdf filename should be tmp36237.pdf, however if I
opened it in IE, it saves the file with a filename project.pdf.
If I am using firefox, it saves the correct filename.

I wonder if anybody can help me on this issue.

best regards,

Kit

--- My code ----
I've had the correct filename right from alert() though...

function download_pdfFile() {
alert ("This is an alert: " +
"servlet/project.SaveFile?PageUrl=ReportManager&FileName=" +
_PdfFileName, "_blank");
window.open("servlet/project.SaveFile?PageUrl=ReportManager&FileName="
+ _PdfFileName, "_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

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,197
Latest member
ScottChare

Latest Threads

Top