Jump to content
Changes to the Jaspersoft community edition download ×

view jasper report


2006 IR Open Dicussion

Recommended Posts

By: xiaoyu - justxiaoyu

view jasper report

2006-03-29 23:20

Hi all,

i have 2 questions on jasper report :

1) when i try 2 use jasperview.viewreport(jasperprint) in linux os, the jasper view window do pop out, but nothing inside that frame. i m wondering may b i had defined the wrong path. how to define path in linux for jasper report?

ex. i put my jasper report rpt.jrxml in root folder, how shd i define the path?

 

2) when i try 2 use jasperview.viewreport(jasperprint) in window, nothing pop out. wat went wrong ?

 

Please help. Thanks in advance

 

 

 

 

 

 

By: Percibal - percibalinux

RE: view jasper report

2006-03-30 05:20

Hello,

 

I have worked on Osx and Windows System, and in both I have no problem to display the information.

 

Here you can define the path:

 

// For Linux

final String fileName="/home/user/report.jasper";

// For Windows

final String fileName="c:/report.jasper";

JasperPrint jasperPrint;

jasperPrint = JasperFillManager.fillReport(fileName, someparameters, getConnection());

 

// And then show the report.

 

I hope this solve your problem.

 

regards,

Percibal.

 

 

 

 

 

 

By: xiaoyu - justxiaoyu

RE: view jasper report

2006-03-30 18:53

Hi Percibal,

Thanks for ur reply.

i did try to use put the .jasper report in the path as u stated on my linux server n call fr my window machine, the porblem stil same. what was went wrong?

 

y when i use jasperview.viewreport(jasperprint) in my window, nothing come out but it did appear on my linux machine but with empty content..

 

kindly advice..

Thanks

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...