Jump to content
We've recently updated our Privacy Statement, available here ×

keogz

Members
  • Posts

    8
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by keogz

  1. i created a nullpx transparent gif and copied it into where the .jasper report is. and it still wont find it...i've tried to use that code you placed but that directory /address doesnt exist...the address is

     

    ../admin/report/nullpx.gif

     

    but how do i point it at there exactly? as you can see, i've tried it in the code but to no results...

    thats the last problem i've got...to show images in the HTML jasper report...all the nullpx's spacers wont show at all..and leaves the HTML page really bad looking...if you want to see other associated files, pls tell me i can upload it for you....

    Post edited by: keogz, at: 2007/07/30 05:44

  2. i know this has been in alot of posts and i've been reading them and trying to add the necessary codes and parameters to my BaseReportAction.java for my jsp to HTML jasper report,but to no avail....attached here is the BaseReportAction.java (in txt format)...if anyone can pls help me asap..i've been pondering on this for a week now..i need help..i can see how its suppose to look like on iReport but not when i export it to my Web app using tomcat...

    Post edited by: keogz, at: 2007/07/27 08:53

  3. my BaseReportAction.java includes the ff lines:

     

     

    final JasperPrint jasperPrint =

    JasperFillManager.fillReport(

    jasperReport,

    parameters,

    getTransactionManager().getDataSource().getConnection()

    );

    request.getSession()

    .setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, jasperPrint);

    final JRHtmlExporter exporter = new JRHtmlExporter();

    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);

    final StringBuffer sbuffer = new StringBuffer(4096);

    exporter.setParameter(JRExporterParameter.OUTPUT_STRING_BUFFER, sbuffer);

    exporter.setParameter(JRHtmlExporterParameter.HTML_HEADER, "");

    exporter.setParameter(JRHtmlExporterParameter.HTML_FOOTER, "");

    exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI,

    "../../servlets/image?image=");

    exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, false);

    exporter.exportReport();

     

    //log.debug(sbuffer.toString());

    request.setAttribute("reportHTML", sbuffer.toString());

    }

    Post edited by: keogz, at: 2007/07/19 02:57

  4. thank you...but i've already added this line

     

    exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, false);

     

    to my BaseReportAction.java and tried to generate the html page again..unfortunately, it still wont recognize the spaces...

     

    need help pls..

  5. My Jasper reports were originally PDF's and now i need them to be in HTML... my problem would be that when i display/view the html, the spacings in blank areas show as jpg files that wont load. i need to dispaly the html properly. i know this seems easy to fix but im not to verse with jasper reports and would like to know how to fix this....i use .jasper files and have iReport 2.0...would appreciate it if someone could give me the best solution. thank you!
×
×
  • Create New...