cancel
Showing results for 
Search instead for 
Did you mean: 

Html view of report displaying overlapping content

Former Member
0 Kudos

I'm having a problem with my report objects overlapping other objects when I get an HTML view of a report. This happens on many of the reports when I have an image (some type of graph) embedded in the report.

The same report will look just fine using the openDocument.jsp script but not when I send the report content myself to the browser.

Has anybody else experience a similar issue with the report displaying differently between openDocument.jsp and their own viewer?

Accepted Solutions (1)

Accepted Solutions (1)

dan_cuevas
Active Participant
0 Kudos

Hi Farhat,

Can you please kindly provide the following information:

1. What type of documents are your viewing (WebI, DeskI or Crystal Reports)?

2. Include the code snippet you are using to view your document.

3. What version of the product you are using (XI R1, R2 or 3.0)?

4. Do you have any Service Pack (SP) or Fix Packs (FP) applied to your installation?

Regards,

Dan

Former Member
0 Kudos

1. I'm viewing webi documents.

2.

Report report = doc.getReports().getItem(0);
if(report != null) {
   report.setPaginationMode(PaginationMode.Page);
   HTMLView view  = (HTMLView)report.getView(OutputFormatType.DHTML);
         
   System.out.println("Displaying '" + report.getName() + "' report.");
   ImageOption webiImgOpt = doc.getImageOption();
   webiImgOpt.setImageCallback("imageServlet.image");
   webiImgOpt.setImageNameHolder("imageName");
   webiImgOpt.setStorageTokenHolder("imageToken");
         
   IOUtils.write(view.getContent(), response.getOutputStream());
   IOUtils.closeQuietly(response.getOutputStream());
}

3. Using XI R2

4. We're currently on service pack 4.

The behavior is sporadic and seems to happen when an image is displayed before the rest of the report content.

dan_cuevas
Active Participant
0 Kudos

Hi Farhat,

I'm not sure if this will make a difference but try defining the ImageOption before the getView().

Regards,

Dan

Former Member
0 Kudos

I get the same behavior.

What I find strange is how/why the openDocument.jsp script is generating or displaying different html content from what I'm generating.

dan_cuevas
Active Participant
0 Kudos

Hi Farhat,

Try doing a test writing the getContent() output using out.print() instead of using the IOUtils.write().

Regards,

Dan

Former Member
0 Kudos

Same behavior.

dan_cuevas
Active Participant
0 Kudos

Hi Farhat,

At this point, the easiest way to detemine the cause for this issue is to reproduce the issue.

If you have access to the Service Marketplace, I recommend that you create an Incident for this issue.

Regards,

Dan

Answers (0)