Jump to content
  • Adding background in HTML pages


    shrije
    Assigned User teodord
    CategoryBug report
    PriorityHigh
    ReproducibilityAlways
    ResolutionSuspended
    SeverityMajor
    StatusClosed

    I have added feature of background image addition to HTML reports. Background can be set from JRHTMLExporter parameter. I have attached the changed source files.

     

    Also is attached the Fonts sample to demonstrate the background for HTML reports and also a sample report.



    User Feedback

    Recommended Comments

    Hi,

     

    The trouble with the patch you have provided is that it uses the background image for all the HTML tables, including the nested ones coming from frame elements in the report template.

     

    We assume you would actually want the background to be used only for the top level tables, coming from pages.

     

    Thank you,

    Teodor

     

    Link to comment
    Share on other sites

    Hi,

     

    Thanks for spending time on this. We need HTML background on every page and the table tag following the was thought to be the best to display the HtML background. This is the one which can reflect the background for each page. If we add the image at the top level table, the image would also spread across the non-printable area too so that is not desirable. When the user prints this page he should be able to see the image. So to answer your feedback the background is not to be used for top level tables.

     

    Thanks and Regards,

    Shrirang Edgaonkar

    Link to comment
    Share on other sites

    Hi,

     

    This is not yet accepted and implemented.

    However, in the meantime, we have created an XHTML exporter that no longer has a problem with overlapping elements.

    Basically, if you put an image in the section of your JRXML report template, you should be able to see it in the resulting XHTML document.

     

    Please check the latest JR version and see the new exporter being used in the samples.

     

    I hope this helps.

    Teodor

    Link to comment
    Share on other sites

    Hi,

     

    I don't think we are going to patch the HTML exporter anymore, since the newer XHTML/CSS exporter no longer has the grid exporter limitations and using the background section of the report should work just find.

     

    Thank you,

    Teodor

     

    Link to comment
    Share on other sites


×
×
  • Create New...