none
An error occurred during local report processing in Windows Forms RRS feed

  • Question

  • m_PrintLocalWithoutPreview = new PrintLocalWithoutPreview(Application.StartupPath + ReportPathName);
    m_PrintLocalWithoutPreview.MarginBottom = "0.50in";
    m_PrintLocalWithoutPreview.MarginLeft = "0.50in";
    m_PrintLocalWithoutPreview.OutputFormat = "EMF";

    LocalReport report = new LocalReport();
    report.ReportPath = Application.StartupPath + ReportPathName + ".rdl";
    report.DataSources.Add(new ReportDataSource("rptDataSet", LoadRptDataset()));
    report.SetParameters(this.m_ReportParameters);
    m_PrintLocalWithoutPreview.Export(report);
    m_PrintLocalWithoutPreview.PrintLocalReportWithNoPreview();
    m_PrintLocalWithoutPreview.DeleteEMFTempFile();

    The code is already published and working well, but when we debugging the code, getting an exception at Export.

    An error occurred during local report processing -->
    System.UnAuthorizedAccessException: Access to the path 'C:\TempReport.EMF' is denied.



    • Edited by Yalla's Friday, March 17, 2017 12:21 AM
    Friday, March 17, 2017 12:18 AM