public GeneratorDocumentoIncassi(AbstractDocumentController controllerDocument, ControllerIncassiQuote controllerIncassi ) { _controllerDocument = controllerDocument; _controllerIncassi = controllerIncassi; }
public void PrintReportDocumentoInacassi(AbstractDocumentController controllerDocument, ControllerIncassiQuote controllerIncassi) { if ((controllerDocument != null) && (controllerIncassi != null)) { GeneratorDocumentoIncassi generatorReportIncassiQuote = new GeneratorDocumentoIncassi(controllerDocument, controllerIncassi); WIN.GUI.PRINT.Report.ReportDocumentiIncassi ReportIncassiQuote = new WIN.GUI.PRINT.Report.ReportDocumentiIncassi(); ReportIncassiQuote.SetDataSource(generatorReportIncassiQuote.GeneraDataSet()); generatorReportIncassiQuote.SetHeaderInfo(ReportIncassiQuote); generatorReportIncassiQuote.SetFooterInfo(ReportIncassiQuote); ExcelFormatOptions option = CrystalDecisions.Shared.ExportOptions.CreateExcelFormatOptions(); string fileTmp = System.IO.Path.GetTempFileName(); string fileTmpXls = fileTmp.Replace(".tmp", ".xls"); ReportIncassiQuote.ExportToDisk(ExportFormatType.Excel, fileTmpXls); System.Diagnostics.Process.Start(fileTmpXls); } }