Ejemplo n.º 1
0
 /// <summary>
 /// 외부에서 주입받은 ReportViewer 즉, Viewer 객체를 세팅한다
 /// </summary>
 /// <param name="RDLCPath">리포트 정의파일의 경로</param>
 /// <param name="data">리포트 작성에 사용될 데이터테이블</param>
 public ReportViewer GetReportViewer(RDLC report)
 {
     ReportViewer Viewer = new ReportViewer();
     string DIRPath = string.Format("{0}\\rdlc", Environment.CurrentDirectory);
     if (!Directory.Exists(DIRPath))
     {
         Directory.CreateDirectory(DIRPath);
     }
     Viewer.LocalReport.ReportPath = string.Format("{0}\\{1}", DIRPath, report.RDLCName);
     report.SetReport(ref Viewer);
     return Viewer;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 외부에서 주입받은 ReportViewer 즉, Viewer 객체를 세팅한다
 /// </summary>
 /// <param name="RDLCPath">리포트 정의파일의 경로</param>
 /// <param name="data">리포트 작성에 사용될 데이터테이블</param>
 public ReportViewer GetReportViewer(ref ReportViewer Viewer, RDLC report)
 {
     Viewer.LocalReport.ReportPath = string.Format("{0}\\{1}", Environment.CurrentDirectory, report.RDLCName); ;
     report.SetReport(ref Viewer);
     return Viewer;
 }