Announcement

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

    exportContent ignores images

    hello.

    SmartClient Version: v9.1p_2014-03-10/EVAL Deployment

    A ListGridField displays photos as ListGridFieldType.IMAGE

    When exporting the grid as pdf these photos are omitted. (see bottom for exporting code)
    The Listgrid is filled (for now) using setData(Record[])

    My current workaround is to display the photos manually using a custom cellFormatter with Canvas.imgHTML(...)

    Is there a better way to do that?


    DSRequest requestProperties = new DSRequest();
    requestProperties.setAttribute("skinName", "Enterprise");
    requestProperties.setAttribute("pdfName", "file");
    requestProperties.setDownloadResult(true);
    RPCManager.exportContent(detailsGrid, requestProperties);

    #2
    Take a look at the server-side JavaDoc for PdfRenderer for details of how image URLs are resolved and errors that can occur.

    Comment


      #3
      Originally posted by Isomorphic View Post
      Take a look at the server-side JavaDoc for PdfRenderer for details of how image URLs are resolved and errors that can occur.
      That did the trick, thank you

      Comment

      Working...
      X