Hi, I need some help in scheduler export to pdf in java. I checked the above link 'http://dhtmlx.com/x/download/r… for java documentation. I called that servlet and so on… and when i press the print button, it is generating the pdf. But pdf is not having the desired data, which is showing in my scheduler.
import java.io.IOException;
import java.net.URLDecoder;
import javax.servlet.http.*;
import com.dhtmlx.scheduler.PDFWriter;
@SuppressWarnings(“serial”)
public class PDFGenerator extends HttpServlet {
public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
String xml;
xml = req.getParameter(“mycoolxmlbody”);
xml = URLDecoder.decode(xml, “UTF-8”);
PDFWriter pdf = new PDFWriter();
pdf.generate(xml, resp);
}
}