PDFファイルストリームを返すWebページのタイトルを次のように設定したい:
public ActionResult PrintInvoice(long ID)
{
var data = db.Documents.Where(x => x.InvoiceNumber == ID);
ReportDocument rd = new ReportDocument();
rd.Load(Server.MapPath("~/Reports/InvoiceDocument.rpt"));
Stream stream = rd.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
stream.Seek(0, SeekOrigin.Begin);
return new FileStreamResult(stream, "application/pdf"); //For Showing PDF in Browser itself
}
このページでは、タイトルを設定したいと思います。
このページにタイトルを設定するにはどうすればよいですか。
現在、ページのタイトルは以下の画像のようになっています::