Crezzer7 Crezzer7 - 5 months ago 43
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


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