Currently on page load the report is automatically opened as pdf using code below
How can I save it before opening and where do I set the save path ?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Reporting.WebForms;
public partial class Reports_Ticket : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
PrintPDF();
}
private void PrintPDF()
{
Warning[] warnings = null;
string[] streamids = null;
string mimeType = null;
string encoding = null;
string extension = null;
byte[] bytes;
ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Ticket_GetTicket",ObjectDataSource1));
bytes = ReportViewer1.LocalReport.Render("PDF", null, out mimeType, out encoding, ou ...
Go to the complete details ...