Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Embeddable report and css!!!(eclipse)
Embeddable report and css!!! [message #1810151] Thu, 01 August 2019 14:13 Go to next message
Johan Kreta is currently offline Johan KretaFriend
Messages: 1
Registered: August 2019
Junior Member
I'm having an issue with the HTMLRenderOption.setEmbeddable option. I'm trying to embed a report in an existing web page and I'm using an external css style sheet in the report, the same css I'm using in the page.
When the setEmbeddable property is set to false the report generates an HTML output with the classes that are defined in the style sheet, something like '<div class="name">Entry 1</div>', but if I set the setEmbeddable property to true all the imported classes are removed from the generated HTML and the previous example becomes '<div>Entry 1</div>'.
Is this the normal behavior for BIRT? Shouldn't only the html and body tags be removed when I setEmbeddable to true?
I'm using BIRT 2.6 and the code I'm using is this:
Code: [Select all] [Show/ hide]

ByteArrayOutputStream output = new ByteArrayOutputStream();
IHTMLRenderOption options = new HTMLRenderOption();
options.setOutputFormat(IHTMLRenderOption.OUTPUT_FORMAT_HTML);
options.setEmitterID(HTMLRenderOption.OUTPUT_EMITTERID_HTML);
options.setOutputStream(output);
options.setEmbeddable(true);
options.setBaseImageURL(getContext().getRequest().getContextPath() + "/images");
options.setImageDirectory(getContext().getServletContext().getRealPath("/images"));
options.setImageHandler(new HTMLServerImageHandler());
options.setMasterPageContent(false);
Thanks in Advance
Re: Embeddable report and css!!! [message #1810493 is a reply to message #1810151] Mon, 12 August 2019 17:13 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

BIRT questions should be asked in the BIRT forum: http://eclipse.org/forums/eclipse.birt . This doesn't appear to be related to the Web Tools Platform.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:WebSphere Developer Tools Plugins
Next Topic: The ecore and genmodel files
Goto Forum:
  


Current Time: Wed Apr 24 15:10:40 GMT 2024

Powered by FUDForum. Page generated in 0.03034 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top