Package com.stimulsoft.web.helper
Class StiReportResponse
java.lang.Object
com.stimulsoft.web.helper.StiReportResponse
Copyright Stimulsoft
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprintAsHtml(StiHttpServletResponse response, StiReport report) Print report as HTML document.static voidprintAsHtml(StiHttpServletResponse response, StiReport report, StiHtmlExportSettings settings) Print report as HTML document.static voidprintAsHtml(StiHttpServletResponse response, StiReport report, StiPagesRange pageRange) Print report as HTML document.static voidprintAsPdf(StiHttpServletResponse response, StiReport report) Print report as PDF document.static voidprintAsPdf(StiHttpServletResponse response, StiReport report, StiPdfExportSettings settings) Print report as PDF document.static voidprintAsPdf(StiHttpServletResponse response, StiReport report, StiPagesRange pageRange) Print report as PDF document.static voidresponseAsPdf(StiHttpServletResponse response, StiReport report, StiPdfExportSettings settings, boolean saveFileDialog) static voidresponseBuffer(StiHttpServletResponse response, byte[] buffer, String contentType, boolean browserCache, String fileName, boolean saveFileDialog) static voidresponseStream(StiHttpServletResponse response, ByteArrayOutputStream stream, String contentType, boolean browserCache, String fileName, boolean saveFileDialog)
-
Constructor Details
-
StiReportResponse
public StiReportResponse()
-
-
Method Details
-
printAsPdf
public static void printAsPdf(StiHttpServletResponse response, StiReport report) throws StiException, IOException Print report as PDF document.- Parameters:
response-report- Report, which is to be printed.- Throws:
StiExceptionIOException
-
printAsPdf
public static void printAsPdf(StiHttpServletResponse response, StiReport report, StiPagesRange pageRange) throws StiException, IOException Print report as PDF document.- Parameters:
response-report- Report, which is to be printed.pageRange- Describes pages range for the printing.- Throws:
StiExceptionIOException
-
printAsPdf
public static void printAsPdf(StiHttpServletResponse response, StiReport report, StiPdfExportSettings settings) throws StiException, IOException Print report as PDF document.- Parameters:
response-report- Report, which is to be printed.settings- All available settings for this export type.- Throws:
StiExceptionIOException
-
printAsHtml
public static void printAsHtml(StiHttpServletResponse response, StiReport report) throws UnsupportedEncodingException, IOException, StiException Print report as HTML document.- Parameters:
response-report- Report, which is to be printed.- Throws:
UnsupportedEncodingExceptionIOExceptionStiException
-
printAsHtml
public static void printAsHtml(StiHttpServletResponse response, StiReport report, StiPagesRange pageRange) throws UnsupportedEncodingException, IOException, StiException Print report as HTML document.- Parameters:
response-report- Report, which is to be printedpageRange- Describes pages range for the printing.- Throws:
UnsupportedEncodingExceptionIOExceptionStiException
-
printAsHtml
public static void printAsHtml(StiHttpServletResponse response, StiReport report, StiHtmlExportSettings settings) throws UnsupportedEncodingException, IOException, StiException Print report as HTML document.- Parameters:
response-report- Report, which is to be printed.settings- All available settings for this export type.- Throws:
UnsupportedEncodingExceptionIOExceptionStiException
-
responseAsPdf
public static void responseAsPdf(StiHttpServletResponse response, StiReport report, StiPdfExportSettings settings, boolean saveFileDialog) throws StiException, IOException - Throws:
StiExceptionIOException
-
responseStream
public static void responseStream(StiHttpServletResponse response, ByteArrayOutputStream stream, String contentType, boolean browserCache, String fileName, boolean saveFileDialog) throws IOException - Throws:
IOException
-
responseBuffer
public static void responseBuffer(StiHttpServletResponse response, byte[] buffer, String contentType, boolean browserCache, String fileName, boolean saveFileDialog) throws IOException - Throws:
IOException
-