Jump to content

sunxh

Members
  • Posts

    9
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Posts posted by sunxh

  1. I've build a new server(linux AS4) to run the same project,and didn't appear such problem.

    I guess may be the old server(linux AS4)'s config has changed and induce pop-up blank browses.

    Is anybody know about this?

    appreciate for your suggest

  2. HI,

     

    Open pdf file in Internet Explorer Browser

     

    window.open(link,'reportWindow','xxxxx');

     

    The problem is if There is Adobe Reader 7 on client,

    project will pop-up a blank browser and Reader open pdf file separately.

    when server run on local,pdf file can open within browser automatically..

    And with Adobe Reader6,pdf file always opened within browser whatever server is local or remote.

     

    I've set Adobe Reader to open file in browser in it's internet option ,but no effect

     

    I want client can view pdf file within Browser

    no matter which version of Adobe Reader they've installed

    any suggestion?

    really appreciate for ur help~~

     

    Code in jsp:

    JasperPrint jasperPrint = JasperFillManager.fillReport(reportFile.getPath(),parameters,conn);

     

    byte[] bytes= JasperExportManager.exportReportToPdf(jasperPrint);

     

    response.setContentType("application/pdf");

    response.addHeader("Content-Disposition", "inline;");

    response.setContentLength(bytes.length);

    ServletOutputStream ouputStream = response.getOutputStream() ;

    ouputStream.write(bytes, 0, bytes.length);

    ouputStream.flush();

    ouputStream.close();

  3. I've got it,The problem is the parameter pass to jasperreports~~

    parameters.put(JRParameter.REPORT_VIRTUALIZER, virtualizer);

    JasperPrint jasperPrint = JasperFillManager.fillReport(reportFile.getPath(),parameters,conn);

    Delete this parameter,reports works perfectly.

     

    new problem is How to add a virtualizer to reports exactly?

     

    I use JRFileVirtualizer just like jasperreports Demo:

     

    JRFileVirtualizer virtualizer = new JRFileVirtualizer(2, tmp_path);

    parameters.put(JRParameter.REPORT_VIRTUALIZER, virtualizer);

    virtualizer.setReadOnly(true);

    JasperPrint jasperPrint = JasperFillManager.fillReport(reportFile.getPath(),parameters,conn);

     

    Why JRFileVirtualizer interrupt page_number?

    Thanks

    Post edited by: sunxh, at: 2006/08/11 04:08

  4. I have a design which contains pageHeader band,detail band and build 2 groups

     

    I placed $V{page_number}(evaluation time now) and $V{page_number}(evaluation time report) both set "Print repeated values" in pageHeader.

    For first group I've set: "Start on a new page", and "Print header on each page". another one set "Print header on each page"

     

    I used IReport interface run this report with a connection export pdf file,it works perfactly,both Page_number were displayed, but when I run same report in jsp, Page_number(report) only display once in a page,the other pages were blank

    Can somebody help me on how to fix this bug?

    Thanks in advance.

     

    Post edited by: sunxh, at: 2006/08/02 12:34

    Post edited by: sunxh, at: 2006/08/02 12:36

×
×
  • Create New...