com.stimulsoft.webviewer.helper
Class StiExportsClass

java.lang.Object
  extended by com.stimulsoft.webviewer.helper.StiExportsClass

public class StiExportsClass
extends Object

Copyright Stimulsoft


Constructor Summary
StiExportsClass()
           
 
Method Summary
static Object emailReport(StiReport report, StiExportFormat exportFormat, Element settingsNode, StiMailProperties mail, boolean compressMessage)
           
static StiFileResult exportAsBmp(StiReport report, StiImageExportSettings settings, OutputStream stream)
          Exports report to BMP format.
static StiFileResult exportAsCsv(StiReport report, StiDataExportSettings settings, OutputStream stream)
          Exports report to CSV format.
static StiFileResult exportAsExcel(StiReport report, StiExcelExportSettings settings, OutputStream stream)
          Exports report to Microsoft Excel format.
static StiFileResult exportAsExcel2007(StiReport report, StiExcelExportSettings settings, OutputStream stream)
          Exports report to Microsoft Excel 2007 format.
static StiFileResult exportAsExcelXml(StiReport report, StiExcelExportSettings settings, OutputStream stream)
          Exports report to Microsoft Excel Xml format.
static StiFileResult exportAsJpeg(StiReport report, StiImageExportSettings settings, OutputStream stream)
          Exports report to JPEG format.
static StiFileResult exportAsOds(StiReport report, StiOdsExportSettings settings, OutputStream stream)
           
static StiFileResult exportAsOdt(StiReport report, StiOdtExportSettings settings, OutputStream stream)
          Exports report to OpenDocument Writer format.
static StiFileResult exportAsPcx(StiReport report, StiImageExportSettings settings, OutputStream stream)
          Exports report to PCX format.
static StiFileResult exportAsPng(StiReport report, StiImageExportSettings settings, OutputStream stream)
          Exports report to PNG format.
static StiFileResult exportAsSvg(StiReport report, StiImageExportSettings settings, OutputStream stream)
          Exports report to Scalable Vector Graphics (SVG) format.
static StiFileResult exportAsSvgz(StiReport report, StiImageExportSettings settings, OutputStream stream)
           
static StiFileResult exportAsSylk(StiReport report, StiDataExportSettings settings, OutputStream stream)
          Exports report to Symbolic Link (SYLK) format.
static StiFileResult exportAsXml(StiReport report, OutputStream stream)
          Exports report to XML format.
static Object exportReport(StiReport report, StiExportFormat exportFormat, Element settingsObject, boolean saveFileDialog)
          Exports report to specified format and return the FileResult object.
static void exportReport(StiReport report, StiExportFormat exportFormat, Element jsonObject, OutputStream stream)
          Exports report by the specified format and export settings object to the stream.
static StiFileResult exportReport(StiReport report, StiExportFormat exportFormat, Element jsonObject, OutputStream stream, boolean saveFileDialog)
          Exports report by the specified format and export settings to the stream or return the StiFileResult object.
static Object exportReport(StiReport report, StiRequiredOptions requestOptions, StiMailProperties emailOptions)
          Exports report to specified format and return the FileResult object.
static Hashtable<String,Hashtable<String,Object>> getDefaultExportSettings(StiWebViewerOptions options)
           
static StiExportSettings getExportSettings(StiExportFormat exportFormat, Element settingsNode)
          Get the export settings from the client data
static String getReportFileName(StiReport report)
           
static StiFileResult saveDocumentFile(StiReport report, Element settingsNode, OutputStream stream)
          Save report to Document File (MDC, MDZ, MDX)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StiExportsClass

public StiExportsClass()
Method Detail

getReportFileName

public static String getReportFileName(StiReport report)

getDefaultExportSettings

public static Hashtable<String,Hashtable<String,Object>> getDefaultExportSettings(StiWebViewerOptions options)

exportReport

public static void exportReport(StiReport report,
                                StiExportFormat exportFormat,
                                Element jsonObject,
                                OutputStream stream)
                         throws NoSuchAlgorithmException,
                                IOException,
                                JSONException,
                                StiException
Exports report by the specified format and export settings object to the stream.

Parameters:
report -
exportFormat -
jsonObject -
stream -
Throws:
NoSuchAlgorithmException
IOException
JSONException
StiException

exportReport

public static Object exportReport(StiReport report,
                                  StiExportFormat exportFormat,
                                  Element settingsObject,
                                  boolean saveFileDialog)
                           throws NoSuchAlgorithmException,
                                  IOException,
                                  JSONException,
                                  StiException
Exports report to specified format and return the FileResult object.

Parameters:
report -
exportFormat -
settingsObject -
saveFileDialog -
Returns:
Throws:
NoSuchAlgorithmException
IOException
JSONException
StiException

emailReport

public static Object emailReport(StiReport report,
                                 StiExportFormat exportFormat,
                                 Element settingsNode,
                                 StiMailProperties mail,
                                 boolean compressMessage)

exportReport

public static Object exportReport(StiReport report,
                                  StiRequiredOptions requestOptions,
                                  StiMailProperties emailOptions)
                           throws NoSuchAlgorithmException,
                                  IOException,
                                  JSONException,
                                  StiException,
                                  ParserConfigurationException
Exports report to specified format and return the FileResult object.

Throws:
ParserConfigurationException
NoSuchAlgorithmException
IOException
JSONException
StiException

exportReport

public static StiFileResult exportReport(StiReport report,
                                         StiExportFormat exportFormat,
                                         Element jsonObject,
                                         OutputStream stream,
                                         boolean saveFileDialog)
                                  throws NoSuchAlgorithmException,
                                         IOException,
                                         JSONException,
                                         StiException
Exports report by the specified format and export settings to the stream or return the StiFileResult object.

Parameters:
report -
exportFormat -
jsonObject -
stream -
saveFileDialog -
Returns:
Throws:
NoSuchAlgorithmException
IOException
JSONException
StiException

saveDocumentFile

public static StiFileResult saveDocumentFile(StiReport report,
                                             Element settingsNode,
                                             OutputStream stream)
                                      throws IOException,
                                             NoSuchAlgorithmException,
                                             JSONException
Save report to Document File (MDC, MDZ, MDX)

Parameters:
report -
jsonObject -
stream -
Returns:
Throws:
IOException
NoSuchAlgorithmException
JSONException

exportAsOdt

public static StiFileResult exportAsOdt(StiReport report,
                                        StiOdtExportSettings settings,
                                        OutputStream stream)
                                 throws StiException,
                                        IOException
Exports report to OpenDocument Writer format.

Parameters:
report -
settings -
stream -
Returns:
Throws:
StiException
IOException

exportAsExcel

public static StiFileResult exportAsExcel(StiReport report,
                                          StiExcelExportSettings settings,
                                          OutputStream stream)
                                   throws JSONException,
                                          StiException,
                                          IOException
Exports report to Microsoft Excel format.

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
StiException
IOException

exportAsExcelXml

public static StiFileResult exportAsExcelXml(StiReport report,
                                             StiExcelExportSettings settings,
                                             OutputStream stream)
                                      throws JSONException,
                                             StiException,
                                             IOException
Exports report to Microsoft Excel Xml format.

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
StiException
IOException

exportAsExcel2007

public static StiFileResult exportAsExcel2007(StiReport report,
                                              StiExcelExportSettings settings,
                                              OutputStream stream)
                                       throws JSONException,
                                              StiException,
                                              IOException
Exports report to Microsoft Excel 2007 format.

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
StiException
IOException

exportAsOds

public static StiFileResult exportAsOds(StiReport report,
                                        StiOdsExportSettings settings,
                                        OutputStream stream)
                                 throws StiException,
                                        IOException
Throws:
StiException
IOException

exportAsCsv

public static StiFileResult exportAsCsv(StiReport report,
                                        StiDataExportSettings settings,
                                        OutputStream stream)
                                 throws JSONException,
                                        StiException,
                                        IOException
Exports report to CSV format.

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
StiException
IOException

exportAsXml

public static StiFileResult exportAsXml(StiReport report,
                                        OutputStream stream)
                                 throws StiException,
                                        IOException
Exports report to XML format.

Parameters:
report -
stream -
Returns:
Throws:
StiException
IOException

exportAsSylk

public static StiFileResult exportAsSylk(StiReport report,
                                         StiDataExportSettings settings,
                                         OutputStream stream)
                                  throws JSONException,
                                         IOException,
                                         StiException
Exports report to Symbolic Link (SYLK) format.

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
IOException
StiException

exportAsBmp

public static StiFileResult exportAsBmp(StiReport report,
                                        StiImageExportSettings settings,
                                        OutputStream stream)
                                 throws JSONException,
                                        StiException,
                                        IOException
Exports report to BMP format.

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
StiException
IOException

exportAsJpeg

public static StiFileResult exportAsJpeg(StiReport report,
                                         StiImageExportSettings settings,
                                         OutputStream stream)
                                  throws JSONException,
                                         StiException,
                                         IOException
Exports report to JPEG format.

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
StiException
IOException

exportAsPcx

public static StiFileResult exportAsPcx(StiReport report,
                                        StiImageExportSettings settings,
                                        OutputStream stream)
                                 throws JSONException,
                                        StiException,
                                        IOException
Exports report to PCX format.

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
StiException
IOException

exportAsPng

public static StiFileResult exportAsPng(StiReport report,
                                        StiImageExportSettings settings,
                                        OutputStream stream)
                                 throws JSONException,
                                        StiException,
                                        IOException
Exports report to PNG format.

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
StiException
IOException

exportAsSvg

public static StiFileResult exportAsSvg(StiReport report,
                                        StiImageExportSettings settings,
                                        OutputStream stream)
                                 throws JSONException,
                                        StiException,
                                        IOException
Exports report to Scalable Vector Graphics (SVG) format.

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
StiException
IOException

exportAsSvgz

public static StiFileResult exportAsSvgz(StiReport report,
                                         StiImageExportSettings settings,
                                         OutputStream stream)
                                  throws JSONException,
                                         StiException,
                                         IOException
Throws:
JSONException
StiException
IOException

getExportSettings

public static StiExportSettings getExportSettings(StiExportFormat exportFormat,
                                                  Element settingsNode)
                                           throws JSONException
Get the export settings from the client data

Parameters:
exportFormat -
settingsNode -
Returns:
Throws:
JSONException


Copyright © 2017 Stimulsoft. All Rights Reserved.