It's all about the answers!

Ask a question

CSS external styles can not be used in RTC for deployed RPE report


Dmitry A. Lesin (24826096) | asked Sep 06 '18, 3:16 p.m.

Hello!

I'm trying to investigate how custom CSS styles could be added to elements of Rational Publishing Engine (v6.0.5) report deployed to Rational Team Concert (v6.0.5). I'm following next info:


I have created a very simple sample with one element with "MyStyle" style defined:
- test.dta
template

Created DSX file where HTML output contains "Stylesheet test.css" value.
Content of test.css is:

.MyStyle {
font-size: 48.0pt;
color: red;
}

It works nice from RPE Document Studio:
Result in RPE Document Studio

Next, I'm trying deploy it to RTC as a report resource:
Deployed to RTC

Result:
Result in RTC

I don't see any styles applied!
What can be wrong?
Thank you very much for any help!

Accepted answer


permanent link
Subramanya Prasad Pilar (4.6k16) | answered Sep 07 '18, 2:12 a.m.
edited Sep 07 '18, 2:44 a.m.
Hi,

There is a known defect RRDG report losing css from generated html, which is fixed in 6.0.5 iFix003.

 Also please check the following for the stylesheet to work:
1. In the document specification, "Stylesheet" property contains only the file name (without any path).

2. When you create the Report Resource, after uploading the .dta file, attach test.css file first and then attach the .dsx file.
Dmitry A. Lesin selected this answer as the correct answer

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.