cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Report not use the Bo to export the PDF

Former Member
0 Kudos

Hi all;

     As my new requirement,I should export the PDF from the RPT in Java project. If someone used to do this,Please give me some advice.

I used to get the report from the BO, but the new requirement, I do not known to do.

Thanks all.

-Alex

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Assuming you have managed crystal reports(Published to BO), you can use the below sample

This is for XI 3.1, however would work for BI 4.x.

-Prithvi

Former Member
0 Kudos

HI Prithvi,

  I check the ras2008_managed_exportreport.jsp, known that this page will get the RPT from Bo ,and then it will download the PDF to the web server?? is right?? If is right, is useful to me.


-Alex

Former Member
0 Kudos

You can specify the path where you would want the pdf to be exported. The sample will download the file on the machine the code will be run.

Former Member
0 Kudos

HI Prithvi,

I follow the JSP to design the code ,when run to this , the JAVA will hold on here, can not go to next .

ReportClientDocument rcd = rptAppFactory.openDocument((IInfoObject)infoObjects.get(0), 0, Locale.ENGLISH);

is it some miss??

-Alex

Former Member
0 Kudos

what is the error stack you getting?

Former Member
0 Kudos

it so strange, that is not error pop up.

Former Member
0 Kudos

HI Prithvi,

     the ReportClientDocument  not work, Is some software miss install?? I just only install the BO 2008.

Former Member
0 Kudos

There should be some exception if it is not working. Can you share a screenshot. And how do you know that it fails at that line. Do you have any debug statements captured. Check in you application server logs.

Some more information will be of help.

Former Member
0 Kudos

HI Prithvi,

   this problem is OK ,thanks for your help.Thank you so much.


-Alex

Answers (0)