Ejemplo n.º 1
0
        /// <summary>
        /// ...
        /// </summary>
        public static void PrintTxt(TResultList results, TParameterList parameters, string output)
        {
            TReportPrinterLayout reportTxtPrinter;
            TTxtPrinter          txtPrinter;

            txtPrinter       = new TTxtPrinter();
            reportTxtPrinter = new TReportPrinterLayout(results, parameters, txtPrinter, true);
            reportTxtPrinter.PrintReport();
            txtPrinter.WriteToFile(output);
        }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void tbtExportTextClick(System.Object sender, System.EventArgs e)
        {
            if (dlgSaveTextFile.FileName.Length == 0)
            {
                dlgSaveTextFile.FileName = this.ReportName + '.' + dlgSaveTextFile.DefaultExt;
            }

            if (dlgSaveTextFile.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                FTxtPrinter.WriteToFile(dlgSaveTextFile.FileName);
            }
        }