Search code examples
javascriptsql-server-2012visual-studio-lightswitchlightswitch-2013

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


i have the below code:

    var OrdID = screen.OrderRequest.OrderID;
    window.open("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


Solution

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