cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal 2008 - webElements 2.45 Border of report showing with Iframe

Former Member
0 Kudos

Can anyone please help with this?

Previously in XI R2 webElements 2.2, we used an iframe and we_SurpressHeader to control the outer grey area of the report (the borders). But now, in 2008 webElements 2.45, we are still using the same iframe syntax and we_surpressHeader, but we still get the grey area around the report. Is there any way of getting ride of the grey area of the report?

Thanks a bunch!

Namita

Accepted Solutions (1)

Accepted Solutions (1)

JWiseman
Active Contributor
0 Kudos

hello,

we_suppressheader is not a part of the release webelements custom function suite...it would have been something that was custom built.

in cr2008 / xir3 the viewer has changed and there will always be a border around the report even in an iframe.

you can minimize the amount of space that a report takes up in an iframe by

a) using the weviewer function on the report to hide or suppress the toolbar...see the user guide for more information on the weviewer function

or

b) by putting the following syntax in the last parameter of your wetarget function

&drilldowntabs=hide&toolbar=hide&sReportMode=weblayout

for example, the iframe may be calling

WETargetPath ("rpt","Name", "salesreport", "weTarget=iframeA&drilldowntabs=hide&toolbar=hide&sReportMode=weblayout");

the following are opendocument swtiches that will work in xi 3.0

drilldowntabs=hide hides the drilldown tabs including the "Main" one...very handy for any drilldown reports

toolbar=hide hides the toolbar on the target report

sReportMode=weblayout makes the report viewer background white instead of gray...applies to the area outside of the report within the viewer

i hope this helps,

jamie

Former Member
0 Kudos

You are THE BOMB!!!

Thanks!

I used the weblayout in our iframe syntax!

<iframe

name="OUR_VIEWER"

src ="../opendoc/openDocument.jsp?sDocName=REPORT_NAME&sType=rpt&sRefresh=N&sInstance=Last&weTarget=iframeA&drilldowntabs=hide&toolbar=hide&sReportMode=weblayout"

frameborder=0

width="100%"

height="100%"

scrolling="auto">

</iframe>

Former Member
0 Kudos

Jamie, One other thing. If we are using half of the space in a report, before the Iframe would take care of the blank space, now, we see the whole report. Anything for that?

Thank you in advance.

Namita

JWiseman
Active Contributor
0 Kudos

hi Namita,

unfortunately there is not much one can do to auto resize an iframe...even if you set the width and height at 100% the size would be determined the first time the report was loaded.

what may have appeared to be autosizing in previous BOE versions was due to the fact that the old viewer's background was white and would be top left justified. in the new xi 3.x viewer when the content is much smaller than the viewer it becomes centered. there is nothing that can be done about that unfortunately.

the other option would be to not use iframes but use dynamically suppressed / unsuppressed sections containing subreports...which might be difficult though if your intention is to pass values via controls from the main report into an existing iframe.

cheers,

jamie

Answers (0)