Why is SaveToZipFile deprecated in the new version. Is there a replacement?
We are currently using this object to save documents/display from a web container.
It is currently Tue Nov 26, 2024 9:30 pm
$.ajax({
type: "POST",
url: "/PrintDocument/PrintServlet?type=pdf",
data: 'htmlContent='+ escape(someDataToServlet),
success: function(data){
alert(data);
// To-do block to oepn the PDF
},
error:function (data){
}
});
wordMLPackage = WordprocessingMLPackage.load(new java.io.File(
_reportFilePath));
DocPropsCustomPart docPropsCustomPart = wordMLPackage
.getDocPropsCustomPart();
for (String propertyName : properties.keySet()) {
if (properties.get(propertyName) != null) {
docPropsCustomPart.setProperty(propertyName,
properties.get(propertyName));
}
}
wordMLPackage.save(new java.io.File(_reportFilePath));
Total posts 10111 • Total topics 2842 • Total members 2074