
Exporting the report results to multiple file formats
There are several methods with which JReport Desktop Viewer Bean can export the results of a report to different file formats (.html, .pdf, .txt, etc). They are as follows:
- exportToHtml(HtmlFileName, bChartApplet, isMultiFile, bUsingTable, bHyperlink, bPageNum, bAbsolute, iBrowser, drilldown)
- exportToHtml(htmlFileName, bChartApplet, isMultiFile, bUsingTable, bHyperlink, bPageNumber, bAbsolute, iBrowser, drilldown, noMarginHtml)
- exportTohtml(htmlFileName, bChartApplet, isMultiFile, bUsingTable, bHyperlink, bPageNum, bAbsolute, iBrowser, bincdrilldownfile, noMargin, isDhtml)
- exportToHtml(htmlFileName, bChartApplet, isMultiFile, bUsingTable, bHyperlink, bPageNumber, bAbsolute, iBrowser, drilldown, noMarginHtml, isDhtml, resolution)
- exportToHtml(htmlFileName, bChartApplet, isMultiFile, bUsingTable, bHyperlink, bPageNumber, bAbsolute, iBrowser, drilldown, noMarginHtml, isDhtml, resolution, overflow)
- exportToDhtml(htmlFileName, bChartApplet, isMultiFile, bUsingTable, bHyperlink, bPageNum, bAbsolute, iBrowser, drilldown)
- exportToDhtml(htmlFileName, bChartApplet, isMultiFile, bUsingTable, bHyperlink, bPageNum, bAbsolute, iBrowser, drilldown, noMargin)
- exportToDhtml(htmlFileName, bChartApplet, isMultiFile, bUsingTable, bHyperlink, bPageNumber, bAbsolute, iBrowser, drilldown, noMarginHtml, resolution)
- exportToDhtml(htmlFileName, bChartApplet, isMultiFile, bUsingTable, bHyperlink, bPageNumber, bAbsolute, iBrowser, drilldown, noMarginHtml, resolution, overflow)
- exportToPdf("PdfFileName")
- exportToPdf("pdfFileName", noMarginPdf)
- exportToPdf("pdfFileName", noMarginPdf, isSimPrintMode)
- exportToPdf("pdfFileName", noMarginPdf, isSimPrintMode, isCompressImage)
- exportToPdf("pdfFileName", noMargin, isPrintMode, isCompressImage, isTransparent)
- exportToPdf(pdfFileName, noMarginPdf, isSimPrintMode, isCompressImage, isTransparent, isToc, isDrilldown)
- exportToPdf(pdfFileName, noMarginPdf, isSimPrintMode, isCompressImage, isTransparent, isToc, isDrilldown, pdfPassword)
- exportToText("TextFileName", isNormalText, isRepeat, delimiter)
- exportToText("TextFileName", isNormalText, isRepeat, delimiter, charWidth, charHeight)
- exportToText("TextFileName", isNormalText, isRepeat, delimiter, charWidth, charHeight, IsQuoteMark)
- exportToText(txtFileName, isNormalText, isRepeat, delimiter, charWidth, charHeight, isQuoteMark, hasHeadfoot, bTxtCompress)
- exportToText(txtFileName, isNormalText, isRepeat, delimiter, charWidth, charHeight, isQuoteMark, hasHeadfoot, bTxtCompress, forWindows)
- exportToText(txtFileName, isNormalText, isRepeat, delimiter, charWidth, charHeight, isQuoteMark, hasHeadfoot, bTxtCompress, forWindows, isCsv, isTab)
- exportToXls("xlsFileName")
- exportToXls(xlsFileName, wordWrap)
- exportToXls(xlsFileName, wordWrap, excel2000)
- exportToXls(xlsFileName, wordWrap, excel2000, hasShapes)
- exportToPS("psFileName")
- exportToPS("psFileName", noMarginPs)
- exportToRtf("rtfFileName")
- exportToRtf("rtfFileName", noMarginRtf)
- exportToXML(String xmlFileName)
- exportToXML(java.lang.String xmlFileName, boolean isOnlyData)
- exportToXML(String xmlFileName, boolean isMultiFiles, boolean isOnlyData) (deprecated)
- exportToXML(xmlFileName, isOnlyData, xsdFile)
The above parameters have been explained below:
- HtmlFileName
The name of the HTML format result file with a full path.
- bChartApplet
A boolean value that specifies whether or not the chart in an HTML file is an applet.
- isMultiFile
A boolean value that specifies whether to generate to one or to multiple HTML files.
- bUsingTable
A boolean value that specifies whether or not to use HTML table format when exporting HTML files.
- bHyperLink
A boolean value that specifies whether or not a hyperlink is to be generated.
- bPageNum
A boolean value that specifies whether or not to generate page numbers.
- bAbsolute
A boolean value that specifies whether the font size is absolute or relative.
- iBrowser
An int value that specifies whether the web browser is IE or NETSCAPE.
- drilldown
A boolean value that specifies whether or not to generate drilldown HTML files in the file list.
- isDhtml
A boolean value that specifies whether to export to HTML or DHTML.
- PdfFileName
The name of the PDF format result file with a full path.
- PdfFileName
The name of the PDF format result file with full path.
- isSimPrintMode
A boolean value that specifies whether or not to use simulating print mode when exporting reports to PDF format.
- isComprssImage
A boolean value that specifies whether or not to compress images when exporting reports to PDF format.
- isTransparent
A boolean value that specifies whether or not to keep the GIF image transparent background.
- TextFileName
The name of the TEXT format result file with a full path.
- isNormalText
A boolean value that specifies whether the Text file is in normal text format or delimited format (a delimited format Text file is a Text file where each row represents a record in a report. It can be used as a text data source for exchanging data with other applications).
- isRepeat
A boolean value indicates whether the same contents should be repeated.
- delimiter
A character used in delimited format. The delimiter is used only when the "true/false" parameter is set to false. A delimiter can be a ',' (CSV format) or any other character. The default is ' ' (a blank), which is the SSV format.
- IsQuoteMark
A boolean value that specifies whether or not to mark fields in quotes.
- xlsFileName
The name of the Excel format report result file with a full path.
- psFileName
The name of the PostScript format result file with a full path.
- rtfFileName
The name of the Rich Text Format file with a full path.
- noMarginHtml
A boolean value that specifies whether or not to generate HTML files without page margins.
- noMarginPdf
A boolean value that specifies whether or not to generate a PDF file without page margins.
- noMarginRtf
A boolean value that specifies whether or not to generate a RTF file without page margins.
- noMarginPs
A boolean value that specifies whether or not to generate a PS file without page margins.
- charWidth
An int type value, which represents the width of each unit of the width clearance between columns.
- charHeight
An int type value, which represents the height of each unit of the height clearance between columns.
- xmlFileName
The XML file name.
- isMultiFiles
A boolean value that specifies whether XML is generated to one or to multiple files.
- isOnlyData
A boolean value that specifies whether or not just the database column information is exported to the XML file. Otherwise all report details, including all the properties will be exported.
- resolution
An int type that specifies the resolution of the HTML file.
- overflow
An int type that specifies the text overflow type of the HTML file.
- isToc
A boolean value that specifies whether or not the pdf file has a TOC.
- isDrilldown
A boolean value that specifies whether or not the PDF drill-down link should be enabled.
- pdfPassword
A String type that specifies the value of the password.
- hasHeadfoot
A boolean value that specifies whether or not to include a Header and Footer in SDF format.
- bTxtCompress
A boolean value that specifies whether or not to compress the file.
- forWindows
A boolean value that specifies whether or not the Text file has \r\n format carriage return.
- isCsv
A boolean value that specifies whether or not the result is csv format.
- isTab
A boolean value that specifies whether or not the result is delimited by tab.
- wordWrap
An int type that specifies that the XLS file has word wrap.
- excel2000
A boolean value that specifies whether or not the XLS file has excel2000 format.
- hasShapes
A boolean value that specifies whether or not the XLS file has shapes.
- isOnlyData
A boolean value which specifies whether or not only database column information is exported to the XML file. Otherwise all report details, including all the properties will be exported.
- xsdFile
A String value that specifies the XSD file path.
