TextExport.DesignExt.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using FastReport.Forms;
  2. namespace FastReport.Export.Text
  3. {
  4. partial class TextExport
  5. {
  6. #region Public Methods
  7. /// <inheritdoc/>
  8. public override bool ShowDialog()
  9. {
  10. using (FastReport.Forms.TextExportForm dialog = new FastReport.Forms.TextExportForm())
  11. {
  12. return dialog.ShowDialog(this);
  13. }
  14. }
  15. #endregion Public Methods
  16. #region Private Methods
  17. private void FinishInternal()
  18. {
  19. if (printAfterExport)
  20. TextExportPrint.PrintStream(
  21. PrinterName,
  22. Report.ReportInfo.Name.Length == 0 ? "FastReport .NET Text export" : Report.ReportInfo.Name,
  23. Copies,
  24. Stream);
  25. }
  26. private bool IsAborted(object progress)
  27. {
  28. Utils.Config.DoEvent();
  29. return progress is ProgressForm && (progress as ProgressForm).Aborted;
  30. }
  31. #endregion Private Methods
  32. }
  33. }