예제 #1
0
    public void ExportReportPdfEImzaYok()
    {
        ExportOptions crExportOptions = new ExportOptions();
        DiskFileDestinationOptions crDiskFileDestinationOptions = new DiskFileDestinationOptions();
        String Fname = "";

        Fname = "c:\\TEMP\\" + "tut.pdf";
        crDiskFileDestinationOptions.DiskFileName = Fname;
        crExportOptions = report.ExportOptions;
        crExportOptions.DestinationOptions    = crDiskFileDestinationOptions;
        crExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
        crExportOptions.ExportFormatType      = ExportFormatType.PortableDocFormat;
        report.Export();
        Response.ClearContent();
        Response.ClearHeaders();
        Response.ContentType = "application/pdf";
        Response.WriteFile(Fname);
        Response.Flush();
        Response.Close();
        System.IO.File.Delete(Fname);
    }