cancel
Showing results for 
Search instead for 
Did you mean: 

JSP crystal report problem

Former Member
0 Kudos

Enviornment : BOXi R2 Crystal reports Java

I am trying to fit crystalreportviewer page within our portal but It always opens a new page

I have tried setting

  
CrystalReportViewer viewer = new CrystalReportViewer();
viewer.setReportSource(reportSource);

    viewer.setName("CrystalReportViewer");
    viewer.setOwnPage(false);
    viewer.setDisplayPage(true);
viewer.setOwnForm(true);
    viewer.setParameterFields(parameterFields);
    viewer.setDisplayToolbar(true);
viewer.setWidth(1000);
   viewer.setHeight(1000);

I am unable to get the viewer page within the portal page ( we have a header ,company logo,and a menu on the left etc..)

Does any body know how to set html tags set height widht etc. Any example would help

Thanks in advance

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Can we use the HTML iFrame to adjust the frame size of the crystal report that I am calling through opendocument? If so can you please let me know how to achieve this.

Thanks for your help.

Edited by: rajani padala on May 11, 2010 5:18 PM

Edited by: rajani padala on May 11, 2010 5:19 PM

ted_ueda
Employee
Employee
0 Kudos

You're telling the viewer to format the HTML as if it's the only thing on its page OwnPage and no other Forms OwnForm.

So that's what you're getting.

Simplest would be to isolate the viewer using HTML IFrame or Frame.

You can try OwnPage or OwnForm false, but you'll lose functionality - for example, exports - because of conflicting JavaScript.

Sincerely,

Ted Ueda

Former Member
0 Kudos

Ted thanks for the reply,

Is there sample code for putting the viewer within the frame for java sdk? If I use the tag library I am not able to set the parameters.

thanks in advance

ted_ueda
Employee
Employee
0 Kudos

I'm specifically stating HTML Frame or IFrame.

You needn't have it in Java.

Sincerely,

Ted Ueda

Former Member
0 Kudos

Do I have to use a different Viewer to embed my crystal report within my JSP page? any help would be greatly appreciated

Former Member
0 Kudos

Hey,

Did you get any solution for this ? I am also having the same problem and stuck there

Please let me know if you found a solution

Thanks in advance