I am sending a pdf to the client's browser.
I am unable to change the title that shows in the browser window. It shows the URL of the PDF. I would like to change the title of the pdf window.
Here is what I am doing:
{
Response.ClearContent();
Response.ClearHeaders();
Response.Buffer = true;
Response.Expires = -1;
Response.ContentType = "application/pdf";
Response.AppendHeader("Title","Welcome"
Response.WriteFile(destinationFile); //the pdf file
Response.Flush();
Response.Close();
}
I have tried to AppendHeader but that doesn't work.
Any help or suggestions would be greatly appreciated!
Thanks in advance,
Aaron
I am unable to change the title that shows in the browser window. It shows the URL of the PDF. I would like to change the title of the pdf window.
Here is what I am doing:
{
Response.ClearContent();
Response.ClearHeaders();
Response.Buffer = true;
Response.Expires = -1;
Response.ContentType = "application/pdf";
Response.AppendHeader("Title","Welcome"
Response.WriteFile(destinationFile); //the pdf file
Response.Flush();
Response.Close();
}
I have tried to AppendHeader but that doesn't work.
Any help or suggestions would be greatly appreciated!
Thanks in advance,
Aaron