Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Custom PDF Export

    Hi,

    We are trying to write a custom PDF export function, which allows user to export the current view of data from a listgrid in PDF format. The PDF library that we use is ITEXT.

    We tried to use Window.open(), but sometimes we need to pass back large set of data, and it seems like the request is using GET and we couldn't find a way to do a POST. If there isn't a large data set to send to the server, then we can see the d/l export prompt.

    We also tried to use the DSReuqest with the following attributes:
    Code:
    DSRequest req1 = new DSRequest();
    req1.setActionURL("getPDF.do");				req1.setHttpMethod("POST");
    req1.setParams(m);
    req1.setExportDisplay(ExportDisplay.WINDOW);
    req1.setDownloadResult(true);
    req1.setContentType("application/pdf");
    req1.setDownloadToNewWindow(true);
    
    RPCManager mg= new RPCManager();
    mg.sendRequest(req1);
    But we can't see the D/L export file prompt.

    Can someone please kindly advise us on how we can resolve the problem?

    Thanks

    Kuan

    #2
    Can anyone help please?

    Thanks,

    Kuan

    Comment

    Working...
    X