Jump to content

view jasper report


2006 IR Open Dicussion

Recommended Posts

By: xiaoyu - justxiaoyu

view jasper report

2006-04-06 20:57

Hi all,

i would like to view jasper report in pdf, jasper view n excel. my server os is linux n client os is window .currently i m facing few problems :-

 

1) when i try 2 view report in jasper view, it work on my linux machine, but when i try 2 view on my client machine, nothing pop out.

 

2) to view in pdf n excel it's work fine on machine tat hv tis 2 application installed. but it having problem tat do not hv tis 2 application installed. wat shd i co on tis? how 2 write d code tat hv a small window pop out tat have "download adobe acobat" button tat ask user 2 install the pdf?

 

Thanks

 

 

 

 

 

 

 

By: cardondenis - cardondenis

RE: view jasper report

2006-04-07 09:00

1) You could provide the jasper viewer as an applet.

 

2) You can have a small pdf doc in your page web that ask for pdf plugin (look at http://www.gobroomecounty.com/pdftest.html) and tell your user that if they cannot see the "hello world" message they have to download acrobat reader. I don't know any way of forcing a popup when acrobat is not on the client computer.

 

PS : could you please write plain english, it is much faster to read (you may also write plain simplified chinese, but I'm not sure every one on the forum will understand :-)

 

 

 

 

By: GSantos - gureba

RE: view jasper report

2006-04-07 09:47

How can I provide Jasper Viewer as an applet?

 

 

 

 

By: cardondenis - cardondenis

RE: view jasper report

2006-04-07 10:02

there is something called jasperreports-1.2.1-applet.jar on the jasper report sourceforge page. I've never used it though. If you have time to integrate it in the a web server, I'll be glad to hear from your experience.

 

Cheers,

 

Denis

 

 

 

 

By: xiaoyu - justxiaoyu

RE: view jasper report

2006-04-10 01:42

Hi Denis,

Thanks for ur help again.

i managed to solved it finally. this is my code :-

if (navigator.plugins && navigator.plugins.length){

for ( var x = 0, l = navigator.plugins.length; x < l; ++x ) {

if (navigator.plugins[x].description.indexOf('Adobe Acrobat') != -1)

{

acrobat.version=parseFloat(navigator.plugins[x].description.split('Version ')[1]);

if (acrobat.version.toString().length == 1) acrobat.version+='.0';

acrobat.installed=true;

break;

}

}

}else if (window.ActiveXObject){

for (x=2; x<10; x++){

try{

oAcro=new ActiveXObject("PDF.PdfCtrl." + x);

if (oAcro){

acrobat.installed=true;

acrobat.version=x+'.0';

}

}catch(e) {}

}

 

try{

oAcro4=new ActiveXObject('PDF.PdfCtrl.1');

if (oAcro4){

acrobat.installed=true;

acrobat.version='4.0';

}

}catch(e) {}

 

try{

oAcro7=new ActiveXObject('AcroPDF.PDF.1');

if (oAcro7){

acrobat.installed=true;

acrobat.version='7.0';

}

}catch(e) {}

 

 

with the function above, i can check whether the adobe is installed on client's machine or not.

 

Thanks and have a nice day :-)

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...