Crezzer7 Crezzer7 - 1 year ago 88
Javascript Question

Rename a file im saving and downloading as a pdf for Sql Server Reports?

i have the below code:

var OrdID = screen.OrderRequest.OrderID;"http://tempserver/ReportServer/Pages/ReportViewer.aspx?%2fCustomerOrder&rs:Command=Render&OrderID=" + OrdID + "&rs:Format=PDF");

this code is on a button that opens the file from the temp server and saves it as a PDF. it currently saves it as the name "CustomerOrder".. my question is, is it possible to rename the file using javacript to say 200 (being the order number)

thanks guys

Answer Source

Not possible with JavaScript. There are many other questions on Stack Overflow asking the same thing!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download