/** * @deprecated Replaced by {@link JasperExportManager#exportReportToXmlFile(String, String, boolean)}. */ public static void printReportToXmlFile( String sourceFileName, String destFileName, boolean isEmbeddingImages ) throws JRException { JasperExportManager.exportReportToXmlFile( sourceFileName, destFileName, isEmbeddingImages ); }
/** * @deprecated Replaced by {@link JasperExportManager#exportReportToXmlFile(String, boolean)}. */ public static String printReportToXmlFile( String sourceFileName, boolean isEmbeddingImages ) throws JRException { return JasperExportManager.exportReportToXmlFile( sourceFileName, isEmbeddingImages ); }
/** * @deprecated Replaced by {@link JasperExportManager#exportReportToXmlFile(JasperPrint, String, boolean)}. */ public static void printReportToXmlFile( JasperPrint jasperPrint, String destFileName, boolean isEmbeddingImages ) throws JRException { JasperExportManager.exportReportToXmlFile( jasperPrint, destFileName, isEmbeddingImages ); }
/** * Exports the generated report file specified by the first parameter into XML format, * placing the result into the second file parameter. * <p> * If not embedded into the XML content itself using the Base64 encoder, * the images are placed as distinct files inside a directory having the same name * as the XML destination file, plus the "_files" suffix. * * @param sourceFileName source file containing the generated report * @param destFileName file name to place the XML representation into * @param isEmbeddingImages flag that indicates whether the images should be embedded in the * XML content itself using the Base64 encoder or be referenced as external resources * @see net.sf.jasperreports.engine.export.JRPdfExporter */ public static void exportReportToXmlFile( String sourceFileName, String destFileName, boolean isEmbeddingImages ) throws JRException { JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFileName); exportReportToXmlFile( jasperPrint, destFileName, isEmbeddingImages ); }
String destFileName = destFile.toString(); exportReportToXmlFile( jasperPrint, destFileName,
break; case XML: JasperExportManager.exportReportToXmlFile(jasperPrint, destinationFileName, true); break; case XML_EMBED: JasperExportManager.exportReportToXmlFile(jasperPrint, destinationFileName, true); break; case XHTML:
break; case xml: JasperExportManager.exportReportToXmlFile(jasperPrint,destFileName,true); reportName = createZip(destFileName); break;