User-1578974752 posted
Dim disk
As DiskFileDestinationOptions =
New DiskFileDestinationOptions()
disk.DiskFileName =
String.Format("C:\inetpub\wwwroot\ABC\ABC\Reports\ADV\ADVReport{0}.pdf",
Convert.ToString(Bsearch.Text))
exp.ExportDestinationOptions = disk
exp.ExportFormatOptions =
New PdfRtfWordFormatOptions()
rptDoc.Export(exp)
Here I can ,insert the report in to the above folder with number ADVReportReport145678
I want to write the report on clicking button.Below append header is showing correctly but how can I open ADVReportReport145678 (The number is from the textbox ie
Bsearch.Text)
Dim filePath As String
Response.AppendHeader("Content-Disposition",
("attachment; filename=" + Path.GetFileName(String.Format("C:\inetpub\wwwroot\ABC\ABC\Reports\ADV\ADVReport.pdf",
Convert.ToString(Bsearch.Text)))))
Response.WriteFile()
What to type inside Response.WriteFile() . Appreciate the Help