Exemplo n.º 1
0
 private void   Page_Unload(object sender, EventArgs e)
 {
     cs.Dispose();
     // rd.Dispose();
     CrystalReportViewer1.Dispose();
     dt_main.Dispose();
 }
Exemplo n.º 2
0
        protected void Page_Unload(object sender, EventArgs e)
        {
            var reportdocument = new ReportDocument();

            CrystalReportViewer1.Dispose();
            reportdocument.Close();
            reportdocument.Dispose();
        }
Exemplo n.º 3
0
 protected void Page_Unload(object sender, EventArgs e)
 {
     CrystalReportViewer1.Dispose();
     CrystalReportViewer1 = null;
     rdoc.Close();
     rdoc.Dispose();
     rdoc = null;
     GC.Collect();
 }
Exemplo n.º 4
0
 protected void Page_Unload(object sender, EventArgs e)
 {
     if (crystalReport != null)
     {
         crystalReport.Close();
         crystalReport.Dispose();
         GC.Collect();
         CrystalReportViewer1.Dispose();
     }
 }
Exemplo n.º 5
0
 protected void Page_Unload(object sender, EventArgs e)
 {
     if (myReportDoc == null)
     {
         return;
     }
     else
     {
         myReportDoc.Close();
         myReportDoc.Dispose();
         CrystalReportViewer1.Dispose();
     }
 }
Exemplo n.º 6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string id = Request.QueryString["id"];

        //reportdocument.SetDatabaseLogon("sa", "123456789", ".", "carwash");



        CrystalReportViewer1.ReportSource = reportdocument;

        reportdocument.Load(Server.MapPath("~\\report\\JobTicket.rpt"));
        reportdocument.SetDatabaseLogon("sa", "123456789", ".", "carwash");

        reportdocument.SetParameterValue("id", Convert.ToInt32(id)); //print by
        reportdocument.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, false, "Report.pdf");

        CrystalReportViewer1.Dispose();
        reportdocument.Dispose();
        reportdocument.Close();
    }
 protected void CrystalReportViewer1_Unload(object sender, EventArgs e)
 {
     crystalReport.Close();
     crystalReport.Dispose();
     CrystalReportViewer1.Dispose();
 }
Exemplo n.º 8
0
 protected void ReportPage_Unload(object sender, EventArgs e)
 {
     CrystalReportViewer1.Dispose();
 }