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
Asbtract Export service
Copyright Stimulsoft
-
Field Summary
FieldsModifier and TypeFieldDescriptionintstatic final longprotected Fileprotected StiReportprotected StiExportSettingsintstatic final longprotected booleanstatic final longprotected OutputStreamprotected intprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidexport()Run export threadvoidabstract voidexport(StiReport report, OutputStream outputStream, StiExportSettings settings) ExportStiReportvoidExports a document to the file.voidExports a document to the stream.abstract StiExportFormatReturs service export formatabstract booleanGets a value indicating a number of files in exported document as a result of exportvoidinvokeExporting(int value, int maximum) Change progress bar statusvoidinvokeExporting(StiPage page, StiPagesCollection pages) Change progress bar statusvoidChange progress bar statusbooleanisStoped()protected voidprocessFile(boolean sendEMail, boolean openAfterExport, String fileName, StiReport report) protected voidprotected voidvoidvoidsetExportReport(StiReport exportReport) voidsetExportSettings(StiExportSettings exportSettings) voidsetOutputStream(OutputStream outputStream) voidsetProgress(IStiProgressInformation progress) Set pregress informationvoidsetStatusString(String statusString)
-
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
-
statusString
-
multipleFiles
protected boolean multipleFiles -
outputStream
-
exportSettings
-
exportReport
-
exportedFiles
-
currentPassNumber
public int currentPassNumber -
maximumPassNumber
public int maximumPassNumber
-
-
Constructor Details
-
StiExportService
public StiExportService()
-
-
Method Details
-
export
Run export thread- Throws:
Throwable
-
export
public abstract void export(StiReport report, OutputStream outputStream, StiExportSettings settings) throws StiException ExportStiReport- Parameters:
report-StiReportto exportoutputStream-OutputStreamfor exportsettings-StiExportSettings- Throws:
ExceptionStiException
-
invokeExporting
Change progress bar status- Parameters:
page-StiPagecurrend pagepages-StiPagesCollectiontotal exporting pages
-
invokeExporting
public void invokeExporting(int value, int maximum) Change progress bar status- Parameters:
value-maximum-
-
invokeExporting
Change progress bar status- Parameters:
e-StiExportingEventArgs
-
closeProgress
protected void closeProgress() -
export
Exports a document to the file.- Parameters:
report- AStiReportwhich is to be exported.filename- A file path for the export of a document.
-
export
Exports a document to the stream.- Parameters:
report- AStiReportwhich is to be exported.sendEMail- A parameter indicating whether is exported report will be sendedfileName- A file path for the export of a document.
-
export
-
processFile
-
sendEMail
-
sendEMail
-
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
Returs service export format- Returns:
StiExportFormat
-
getStatusString
- Returns:
- the statusString
-
setStatusString
- Parameters:
statusString- the statusString to set
-
isStoped
public boolean isStoped()- Returns:
- It the thread process was canceled
-
setProgress
Set pregress information- Parameters:
progress-IStiProgressInformationthe progress to set
-
setOutputStream
- Parameters:
outputStream- the outputStream to set
-
setExportSettings
- Parameters:
exportSettings- the exportSettings to set
-
setExportReport
- Parameters:
exportReport- the exportReport to set
-
setExFile
- Parameters:
exFile- the exFile to set
-
getExFile
- Returns:
- the exFile
-
getExportSettings
- Returns:
- the exportSettings
-
getExportedFiles
- Returns:
- the exportedFiles
-