com.stimulsoft.webviewer.helper
Class StiExportsClass

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

public class StiExportsClass
extends java.lang.Object

Copyright Stimulsoft


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

Constructor Detail

StiExportsClass

public StiExportsClass()
Method Detail

getReportFileName

public static java.lang.String getReportFileName(StiReport report)

exportReport

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

Parameters:
report -
exportFormat -
jsonObject -
stream -
Throws:
java.security.NoSuchAlgorithmException
java.io.IOException
JSONException
StiException

exportReport

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

Parameters:
report -
exportFormat -
settingsObject -
saveFileDialog -
Returns:
Throws:
java.security.NoSuchAlgorithmException
java.io.IOException
JSONException
StiException

emailReport

public static java.lang.Object emailReport(StiReport report,
                                           StiExportFormat exportFormat,
                                           org.w3c.dom.Element settingsNode,
                                           StiMailProperties mail,
                                           boolean compressMessage)

exportReport

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

Throws:
javax.xml.parsers.ParserConfigurationException
java.security.NoSuchAlgorithmException
java.io.IOException
JSONException
StiException

exportReport

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

Parameters:
report -
exportFormat -
jsonObject -
stream -
saveFileDialog -
Returns:
Throws:
java.security.NoSuchAlgorithmException
java.io.IOException
JSONException
StiException

saveDocumentFile

public static StiWebActionResult saveDocumentFile(StiReport report,
                                                  org.w3c.dom.Element settingsNode,
                                                  java.io.OutputStream stream)
                                           throws java.io.IOException,
                                                  java.security.NoSuchAlgorithmException,
                                                  JSONException
Save report to Document File (MDC, MDZ, MDX)

Parameters:
report -
jsonObject -
stream -
Returns:
Throws:
java.io.IOException
java.security.NoSuchAlgorithmException
JSONException

exportAsOdt

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

Parameters:
report -
settings -
stream -
Returns:
Throws:
StiException
java.io.IOException

exportAsExcel

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

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
StiException
java.io.IOException

exportAsExcelXml

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

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
StiException
java.io.IOException

exportAsExcel2007

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

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
StiException
java.io.IOException

exportAsOds

public static StiWebActionResult exportAsOds(StiReport report,
                                             StiOdsExportSettings settings,
                                             java.io.OutputStream stream)
                                      throws StiException,
                                             java.io.IOException
Throws:
StiException
java.io.IOException

exportAsCsv

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

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
StiException
java.io.IOException

exportAsXml

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

Parameters:
report -
stream -
Returns:
Throws:
StiException
java.io.IOException

exportAsSylk

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

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
java.io.IOException
StiException

exportAsBmp

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

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
StiException
java.io.IOException

exportAsJpeg

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

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
StiException
java.io.IOException

exportAsPcx

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

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
StiException
java.io.IOException

exportAsPng

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

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
StiException
java.io.IOException

exportAsSvg

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

Parameters:
report -
settingsObject -
stream -
Returns:
Throws:
JSONException
StiException
java.io.IOException

exportAsSvgz

public static StiWebActionResult exportAsSvgz(StiReport report,
                                              StiImageExportSettings settings,
                                              java.io.OutputStream stream)
                                       throws JSONException,
                                              StiException,
                                              java.io.IOException
Throws:
JSONException
StiException
java.io.IOException

getExportSettings

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

Parameters:
exportFormat -
settingsNode -
Returns:
Throws:
JSONException