Class StiExportService

java.lang.Object
com.stimulsoft.report.export.service.StiExportService
Direct Known Subclasses:
StiCsvExportService, StiExcel2007ExportService, StiExcelExportService, StiExcelXmlExportService, StiHtml5ExportService, StiHtmlExportService, StiImageExportService, StiOdsExportService, StiOdtExportService, StiPdfExportService, StiPpt2007ExportService, StiRtfExportService, StiSylkExportService, StiTxtExportService, StiWord2007ExportService, StiXmlExportService, StiXpsExportService

public abstract class StiExportService extends Object
Asbtract Export service Copyright Stimulsoft
  • Field Details

    • ONE_HOUR

      public static final long ONE_HOUR
      See Also:
    • MILLISECONDS_IN_DAY

      public static final long MILLISECONDS_IN_DAY
      See Also:
    • DATE_1900

      public static final long DATE_1900
      See Also:
    • RenderedPagesCount

      protected int RenderedPagesCount
    • exFile

      protected File exFile
    • statusString

      protected String statusString
    • multipleFiles

      protected boolean multipleFiles
    • outputStream

      protected OutputStream outputStream
    • exportSettings

      protected StiExportSettings exportSettings
    • exportReport

      protected StiReport exportReport
    • exportedFiles

      protected List<File> exportedFiles
    • currentPassNumber

      public int currentPassNumber
    • maximumPassNumber

      public int maximumPassNumber
  • Constructor Details

    • StiExportService

      public StiExportService()
  • Method Details

    • export

      public void export() throws Throwable
      Run export thread
      Throws:
      Throwable
    • export

      public abstract void export(StiReport report, OutputStream outputStream, StiExportSettings settings) throws StiException
      Export StiReport
      Parameters:
      report - StiReport to export
      outputStream - OutputStream for export
      settings - StiExportSettings
      Throws:
      Exception
      StiException
    • invokeExporting

      public void invokeExporting(StiPage page, StiPagesCollection pages)
      Change progress bar status
      Parameters:
      page - StiPage currend page
      pages - StiPagesCollection total exporting pages
    • invokeExporting

      public void invokeExporting(int value, int maximum)
      Change progress bar status
      Parameters:
      value -
      maximum -
    • invokeExporting

      public void invokeExporting(StiExportingEventArgs e)
      Change progress bar status
      Parameters:
      e - StiExportingEventArgs
    • closeProgress

      protected void closeProgress()
    • export

      public void export(StiReport report, String filePath)
      Exports a document to the file.
      Parameters:
      report - A StiReport which is to be exported.
      filename - A file path for the export of a document.
    • export

      public void export(StiReport report, String filePath, boolean sendEMail)
      Exports a document to the stream.
      Parameters:
      report - A StiReport which is to be exported.
      sendEMail - A parameter indicating whether is exported report will be sended
      fileName - A file path for the export of a document.
    • export

      public void export(StiReport report)
    • processFile

      protected void processFile(boolean sendEMail, boolean openAfterExport, String fileName, StiReport report)
    • sendEMail

      protected void sendEMail(String subject, String body, String filePath)
    • sendEMail

      protected void sendEMail(String recipient, String subject, String body, String filePath)
    • getMultipleFiles

      public abstract boolean getMultipleFiles()
      Gets a value indicating a number of files in exported document as a result of export
      Returns:
      Support multiple files
    • getExportFormat

      public abstract StiExportFormat getExportFormat()
      Returs service export format
      Returns:
      StiExportFormat
    • getStatusString

      public String getStatusString()
      Returns:
      the statusString
    • setStatusString

      public void setStatusString(String statusString)
      Parameters:
      statusString - the statusString to set
    • isStoped

      public boolean isStoped()
      Returns:
      It the thread process was canceled
    • setProgress

      public void setProgress(IStiProgressInformation progress)
      Set pregress information
      Parameters:
      progress - IStiProgressInformation the progress to set
    • setOutputStream

      public void setOutputStream(OutputStream outputStream)
      Parameters:
      outputStream - the outputStream to set
    • setExportSettings

      public void setExportSettings(StiExportSettings exportSettings)
      Parameters:
      exportSettings - the exportSettings to set
    • setExportReport

      public void setExportReport(StiReport exportReport)
      Parameters:
      exportReport - the exportReport to set
    • setExFile

      public void setExFile(File exFile)
      Parameters:
      exFile - the exFile to set
    • getExFile

      public File getExFile()
      Returns:
      the exFile
    • getExportSettings

      public StiExportSettings getExportSettings()
      Returns:
      the exportSettings
    • getExportedFiles

      public List<File> getExportedFiles()
      Returns:
      the exportedFiles