CSS Padding Ignored [message #632918] |
Thu, 14 October 2010 16:21 |
|
I have a BIRT report using an external CSS file (via Use CSS File). I want the rows of the data table to have top and bottom padding, but using the following clause in the file, the padding is ignored:
.table {
font-family: sans-serif;
text-align: left;
padding-top: 3px;
padding-bottom: 3px;
padding-left: 0px;
padding-right: 0px;
}
Instead I get padding vaolues of 1pt (Inherited). I can't for the life of me find out where the inheritance comes from. I'm using BIRT 2.5.0 - is there a known issue about CSS implementation that I didn't find in Bugzilla?
Richard
|
|
|
Re: CSS Padding Ignored [message #632937 is a reply to message #632918] |
Thu, 14 October 2010 17:34 |
|
Richard,
Can you rename the style to something like table_tst?
table is a predefined style and I am wondering if that is causing the issue.
Jason
On 10/14/2010 12:21 PM, Richard A. Polunsky wrote:
> I have a BIRT report using an external CSS file (via Use CSS File). I
> want the rows of the data table to have top and bottom padding, but
> using the following clause in the file, the padding is ignored:
>
> table {
> font-family: sans-serif;
> text-align: left;
> padding-top: 3px;
> padding-bottom: 3px;
> padding-left: 0px;
> padding-right: 0px;
> }
>
> Instead I get padding vaolues of 1pt (Inherited). I can't for the life
> of me find out where the inheritance comes from. I'm using BIRT 2.5.0 -
> is there a known issue about CSS implementation that I didn't find in
> Bugzilla?
>
> Richard
|
|
|
Re: CSS Padding Ignored [message #632944 is a reply to message #632918] |
Thu, 14 October 2010 18:02 |
|
The following all work correctly but they don't respond to padding entries either:
.table-header
.table-group-header-1
.table-group-footer-1
.table-group-header-2
I'll clone it and then apply the style manually and see what happens.
|
|
|
Re: CSS Padding Ignored [message #632949 is a reply to message #632918] |
Thu, 14 October 2010 18:25 |
|
Here is the test CSS file and the sample report. I bumped the padding values up to 6pt so it's clear they are ignored at the report level.
TESTCSS.CSS FILE:
.report {
font-family: serif;
font-size: x-small;
color: black;
}
.table-test {
font-family: sans-serif;
text-align: left;
padding-top: 6pt;
padding-bottom: 6pt;
padding-left: 6pt;
padding-right: 0pt;
}
.table {
font-family: sans-serif;
text-align: left;
padding-top: 6pt;
padding-bottom: 6pt;
padding-left: 0pt;
padding-right: 0pt;
}
.table-header {
font-weight: bold;
color: white;
background-color: #1f3953;
}
.table-group-header-1 {
font-weight: bold;
background-color: #c6c6c6;
}
.table-group-footer-1 {
font-weight: bold;
}
.table-group-header-2 {
font-weight: bold;
}
TEST REPORT (new_derby_report.rptdesign):
<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.20" id="1">
<property name="createdBy">Eclipse BIRT Designer Version 2.5.0.v20090603 Build <2.5.0.v20090617-0630></property>
<property name="units">in</property>
<property name="iconFile">/templates/blank_report.gif</property>
<property name="bidiLayoutOrientation">ltr</property>
<list-property name="cssStyleSheets">
<structure>
<property name="fileName">testcss.css</property>
</structure>
</list-property>
<data-sources>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="Data Source" id="7">
<property name="odaDriverClass">org.eclipse.birt.report.data.oda.sampledb.Driver </property>
<property name="odaURL">jdbc:classicmodels:sampledb</property>
<property name="odaUser">ClassicModels</property>
</oda-data-source>
</data-sources>
<data-sets>
<oda-data-set extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet " name="Data Set" id="8">
<list-property name="columnHints">
<structure>
<property name="columnName">CUSTOMERNUMBER</property>
<property name="displayName">CUSTOMERNUMBER</property>
</structure>
<structure>
<property name="columnName">CUSTOMERNAME</property>
<property name="displayName">CUSTOMERNAME</property>
</structure>
<structure>
<property name="columnName">CONTACTLASTNAME</property>
<property name="displayName">CONTACTLASTNAME</property>
</structure>
<structure>
<property name="columnName">CONTACTFIRSTNAME</property>
<property name="displayName">CONTACTFIRSTNAME</property>
</structure>
<structure>
<property name="columnName">PHONE</property>
<property name="displayName">PHONE</property>
</structure>
<structure>
<property name="columnName">ADDRESSLINE1</property>
<property name="displayName">ADDRESSLINE1</property>
</structure>
<structure>
<property name="columnName">ADDRESSLINE2</property>
<property name="displayName">ADDRESSLINE2</property>
</structure>
<structure>
<property name="columnName">CITY</property>
<property name="displayName">CITY</property>
</structure>
<structure>
<property name="columnName">STATE</property>
<property name="displayName">STATE</property>
</structure>
<structure>
<property name="columnName">POSTALCODE</property>
<property name="displayName">POSTALCODE</property>
</structure>
<structure>
<property name="columnName">COUNTRY</property>
<property name="displayName">COUNTRY</property>
</structure>
<structure>
<property name="columnName">SALESREPEMPLOYEENUMBER</property>
<property name="displayName">SALESREPEMPLOYEENUMBER</property>
</structure>
<structure>
<property name="columnName">CREDITLIMIT</property>
<property name="displayName">CREDITLIMIT</property>
</structure>
</list-property>
<structure name="cachedMetaData">
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">CUSTOMERNUMBER</property>
<property name="dataType">integer</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">CUSTOMERNAME</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">3</property>
<property name="name">CONTACTLASTNAME</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">4</property>
<property name="name">CONTACTFIRSTNAME</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">5</property>
<property name="name">PHONE</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">6</property>
<property name="name">ADDRESSLINE1</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">7</property>
<property name="name">ADDRESSLINE2</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">8</property>
<property name="name">CITY</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">9</property>
<property name="name">STATE</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">10</property>
<property name="name">POSTALCODE</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">11</property>
<property name="name">COUNTRY</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">12</property>
<property name="name">SALESREPEMPLOYEENUMBER</property>
<property name="dataType">integer</property>
</structure>
<structure>
<property name="position">13</property>
<property name="name">CREDITLIMIT</property>
<property name="dataType">float</property>
</structure>
</list-property>
</structure>
<property name="dataSource">Data Source</property>
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">CUSTOMERNUMBER</property>
<property name="nativeName">CUSTOMERNUMBER</property>
<property name="dataType">integer</property>
<property name="nativeDataType">4</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">CUSTOMERNAME</property>
<property name="nativeName">CUSTOMERNAME</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
<structure>
<property name="position">3</property>
<property name="name">CONTACTLASTNAME</property>
<property name="nativeName">CONTACTLASTNAME</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
<structure>
<property name="position">4</property>
<property name="name">CONTACTFIRSTNAME</property>
<property name="nativeName">CONTACTFIRSTNAME</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
<structure>
<property name="position">5</property>
<property name="name">PHONE</property>
<property name="nativeName">PHONE</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
<structure>
<property name="position">6</property>
<property name="name">ADDRESSLINE1</property>
<property name="nativeName">ADDRESSLINE1</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
<structure>
<property name="position">7</property>
<property name="name">ADDRESSLINE2</property>
<property name="nativeName">ADDRESSLINE2</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
<structure>
<property name="position">8</property>
<property name="name">CITY</property>
<property name="nativeName">CITY</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
<structure>
<property name="position">9</property>
<property name="name">STATE</property>
<property name="nativeName">STATE</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
<structure>
<property name="position">10</property>
<property name="name">POSTALCODE</property>
<property name="nativeName">POSTALCODE</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
<structure>
<property name="position">11</property>
<property name="name">COUNTRY</property>
<property name="nativeName">COUNTRY</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
<structure>
<property name="position">12</property>
<property name="name">SALESREPEMPLOYEENUMBER</property>
<property name="nativeName">SALESREPEMPLOYEENUMBER</property>
<property name="dataType">integer</property>
<property name="nativeDataType">4</property>
</structure>
<structure>
<property name="position">13</property>
<property name="name">CREDITLIMIT</property>
<property name="nativeName">CREDITLIMIT</property>
<property name="dataType">float</property>
<property name="nativeDataType">8</property>
</structure>
</list-property>
<xml-property name="queryText"><![CDATA[select *
from customers]]></xml-property>
<xml-property name="designerValues"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<model:DesignValues xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design" xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel">
<Version>1.0</Version>
<design:ResultSets derivedMetaData="true">
<design:resultSetDefinitions>
<design:resultSetColumns>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>CUSTOMERNUMBER</design:name>
<design:position>1</design:position>
<design:nativeDataTypeCode>4</design:nativeDataTypeCode>
<design:precision>10</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>CUSTOMERNUMBER</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>CUSTOMERNUMBER</design:label>
<design:formattingHints>
<design:displaySize>11</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>CUSTOMERNAME</design:name>
<design:position>2</design:position>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>50</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>CUSTOMERNAME</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>CUSTOMERNAME</design:label>
<design:formattingHints>
<design:displaySize>50</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>CONTACTLASTNAME</design:name>
<design:position>3</design:position>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>50</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>CONTACTLASTNAME</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>CONTACTLASTNAME</design:label>
<design:formattingHints>
<design:displaySize>50</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>CONTACTFIRSTNAME</design:name>
<design:position>4</design:position>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>50</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>CONTACTFIRSTNAME</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>CONTACTFIRSTNAME</design:label>
<design:formattingHints>
<design:displaySize>50</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>PHONE</design:name>
<design:position>5</design:position>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>50</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>PHONE</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>PHONE</design:label>
<design:formattingHints>
<design:displaySize>50</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>ADDRESSLINE1</design:name>
<design:position>6</design:position>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>50</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>ADDRESSLINE1</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>ADDRESSLINE1</design:label>
<design:formattingHints>
<design:displaySize>50</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>ADDRESSLINE2</design:name>
<design:position>7</design:position>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>50</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>ADDRESSLINE2</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>ADDRESSLINE2</design:label>
<design:formattingHints>
<design:displaySize>50</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>CITY</design:name>
<design:position>8</design:position>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>50</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>CITY</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>CITY</design:label>
<design:formattingHints>
<design:displaySize>50</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>STATE</design:name>
<design:position>9</design:position>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>50</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>STATE</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>STATE</design:label>
<design:formattingHints>
<design:displaySize>50</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>POSTALCODE</design:name>
<design:position>10</design:position>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>15</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>POSTALCODE</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>POSTALCODE</design:label>
<design:formattingHints>
<design:displaySize>15</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>COUNTRY</design:name>
<design:position>11</design:position>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>50</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>COUNTRY</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>COUNTRY</design:label>
<design:formattingHints>
<design:displaySize>50</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>SALESREPEMPLOYEENUMBER</design:name>
<design:position>12</design:position>
<design:nativeDataTypeCode>4</design:nativeDataTypeCode>
<design:precision>10</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>SALESREPEMPLOYEENUMBER</design:displayName >
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>SALESREPEMPLOYEENUMBER</design:label>
<design:formattingHints>
<design:displaySize>11</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>CREDITLIMIT</design:name>
<design:position>13</design:position>
<design:nativeDataTypeCode>8</design:nativeDataTypeCode>
<design:precision>15</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>CREDITLIMIT</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>CREDITLIMIT</design:label>
<design:formattingHints>
<design:displaySize>22</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
</design:resultSetColumns>
</design:resultSetDefinitions>
</design:ResultSets>
</model:DesignValues>]]></xml-property>
</oda-data-set>
</data-sets>
<page-setup>
<simple-master-page name="Simple MasterPage" id="2">
<property name="orientation">landscape</property>
<page-footer>
<text id="3">
<property name="contentType">html</property>
<text-property name="content"><![CDATA[<value-of>new Date()</value-of>]]></text-property>
</text>
</page-footer>
</simple-master-page>
</page-setup>
<body>
<table id="9">
<property name="fontSize">x-small</property>
<property name="dataSet">Data Set</property>
<list-property name="boundDataColumns">
<structure>
<property name="name">CUSTOMERNUMBER</property>
<property name="displayName">CUSTOMERNUMBER</property>
<expression name="expression">dataSetRow["CUSTOMERNUMBER"]</expression >
<property name="dataType">integer</property>
</structure>
<structure>
<property name="name">CUSTOMERNAME</property>
<property name="displayName">CUSTOMERNAME</property>
<expression name="expression">dataSetRow["CUSTOMERNAME"]</expression >
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">CONTACTLASTNAME</property>
<property name="displayName">CONTACTLASTNAME</property>
<expression name="expression">dataSetRow["CONTACTLASTNAME"]</expression >
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">CONTACTFIRSTNAME</property>
<property name="displayName">CONTACTFIRSTNAME</property>
<expression name="expression">dataSetRow["CONTACTFIRSTNAME"]</expression >
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">PHONE</property>
<property name="displayName">PHONE</property>
<expression name="expression">dataSetRow["PHONE"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">ADDRESSLINE1</property>
<property name="displayName">ADDRESSLINE1</property>
<expression name="expression">dataSetRow["ADDRESSLINE1"]</expression >
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">ADDRESSLINE2</property>
<property name="displayName">ADDRESSLINE2</property>
<expression name="expression">dataSetRow["ADDRESSLINE2"]</expression >
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">CITY</property>
<property name="displayName">CITY</property>
<expression name="expression">dataSetRow["CITY"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">STATE</property>
<property name="displayName">STATE</property>
<expression name="expression">dataSetRow["STATE"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">POSTALCODE</property>
<property name="displayName">POSTALCODE</property>
<expression name="expression">dataSetRow["POSTALCODE"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">COUNTRY</property>
<property name="displayName">COUNTRY</property>
<expression name="expression">dataSetRow["COUNTRY"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">SALESREPEMPLOYEENUMBER</property>
<property name="displayName">SALESREPEMPLOYEENUMBER</property>
<expression name="expression">dataSetRow["SALESREPEMPLOYEENUMBER"]</expression >
<property name="dataType">integer</property>
</structure>
<structure>
<property name="name">CREDITLIMIT</property>
<property name="displayName">CREDITLIMIT</property>
<expression name="expression">dataSetRow["CREDITLIMIT"]</expression >
<property name="dataType">float</property>
</structure>
</list-property>
<list-property name="sort">
<structure>
<expression name="key">row["CUSTOMERNAME"]</expression>
<property name="direction">asc</property>
</structure>
</list-property>
<column id="78"/>
<column id="79"/>
<column id="80"/>
<column id="81"/>
<column id="82"/>
<column id="83"/>
<column id="84"/>
<column id="85"/>
<column id="86"/>
<column id="87"/>
<column id="88"/>
<column id="89"/>
<column id="90"/>
<header>
<row id="10">
<cell id="11">
<label id="12">
<text-property name="text">CUSTOMERNUMBER</text-property>
</label>
</cell>
<cell id="13">
<label id="14">
<text-property name="text">CUSTOMERNAME</text-property>
</label>
</cell>
<cell id="15">
<label id="16">
<text-property name="text">CONTACTLASTNAME</text-property>
</label>
</cell>
<cell id="17">
<label id="18">
<text-property name="text">CONTACTFIRSTNAME</text-property>
</label>
</cell>
<cell id="19">
<label id="20">
<text-property name="text">PHONE</text-property>
</label>
</cell>
<cell id="21">
<label id="22">
<text-property name="text">ADDRESSLINE1</text-property>
</label>
</cell>
<cell id="23">
<label id="24">
<text-property name="text">ADDRESSLINE2</text-property>
</label>
</cell>
<cell id="25">
<label id="26">
<text-property name="text">CITY</text-property>
</label>
</cell>
<cell id="27">
<label id="28">
<text-property name="text">STATE</text-property>
</label>
</cell>
<cell id="29">
<label id="30">
<text-property name="text">POSTALCODE</text-property>
</label>
</cell>
<cell id="31">
<label id="32">
<text-property name="text">COUNTRY</text-property>
</label>
</cell>
<cell id="33">
<label id="34">
<text-property name="text">SALESREPEMPLOYEENUMBER</text-property>
</label>
</cell>
<cell id="35">
<label id="36">
<text-property name="text">CREDITLIMIT</text-property>
</label>
</cell>
</row>
</header>
<group id="91">
<property name="groupName">NewTableGroup1</property>
<property name="interval">none</property>
<property name="sortDirection">asc</property>
<expression name="keyExpr">row["STATE"]</expression>
<structure name="toc">
<expression name="expressionValue">row["STATE"]</expression>
</structure>
<property name="repeatHeader">true</property>
<property name="hideDetail">false</property>
<property name="pageBreakAfter">auto</property>
<property name="pageBreakBefore">auto</property>
<property name="pageBreakInside">auto</property>
<header>
<row id="92">
<cell id="93">
<data id="120">
<property name="fontWeight">bold</property>
<property name="textUnderline">underline</property>
<property name="resultSetColumn">STATE</property>
</data>
</cell>
<cell id="94"/>
<cell id="95"/>
<cell id="96"/>
<cell id="97"/>
<cell id="98"/>
<cell id="99"/>
<cell id="100"/>
<cell id="101"/>
<cell id="102"/>
<cell id="103"/>
<cell id="104"/>
<cell id="105"/>
</row>
</header>
<footer>
<row id="106">
<cell id="107"/>
<cell id="108"/>
<cell id="109"/>
<cell id="110"/>
<cell id="111"/>
<cell id="112"/>
<cell id="113"/>
<cell id="114"/>
<cell id="115"/>
<cell id="116"/>
<cell id="117"/>
<cell id="118"/>
<cell id="119"/>
</row>
</footer>
</group>
<group id="121">
<property name="groupName">NewTableGroup2</property>
<property name="interval">none</property>
<property name="sortDirection">asc</property>
<expression name="keyExpr">row["CITY"]</expression>
<structure name="toc">
<expression name="expressionValue">row["CITY"]</expression>
</structure>
<property name="repeatHeader">true</property>
<property name="hideDetail">false</property>
<property name="pageBreakAfter">auto</property>
<property name="pageBreakBefore">auto</property>
<property name="pageBreakInside">auto</property>
<header>
<row id="122">
<cell id="123">
<data id="150">
<property name="resultSetColumn">CITY</property>
</data>
</cell>
<cell id="124"/>
<cell id="125"/>
<cell id="126"/>
<cell id="127"/>
<cell id="128"/>
<cell id="129"/>
<cell id="130"/>
<cell id="131"/>
<cell id="132"/>
<cell id="133"/>
<cell id="134"/>
<cell id="135"/>
</row>
</header>
<footer>
<row id="136">
<cell id="137"/>
<cell id="138"/>
<cell id="139"/>
<cell id="140"/>
<cell id="141"/>
<cell id="142"/>
<cell id="143"/>
<cell id="144"/>
<cell id="145"/>
<cell id="146"/>
<cell id="147"/>
<cell id="148"/>
<cell id="149"/>
</row>
</footer>
</group>
<detail>
<row id="37">
<property name="style">table-test</property>
<list-property name="highlightRules">
<structure>
<property name="operator">eq</property>
<property name="backgroundColor">#808000</property>
<expression name="testExpr">row.__rownum % 2</expression>
<simple-property-list name="value1">
<value>1</value>
</simple-property-list>
</structure>
</list-property>
<cell id="38">
<data id="39">
<property name="resultSetColumn">CUSTOMERNUMBER</property>
</data>
</cell>
<cell id="40">
<data id="41">
<property name="resultSetColumn">CUSTOMERNAME</property>
</data>
</cell>
<cell id="42">
<data id="43">
<property name="resultSetColumn">CONTACTLASTNAME</property>
</data>
</cell>
<cell id="44">
<data id="45">
<property name="resultSetColumn">CONTACTFIRSTNAME</property>
</data>
</cell>
<cell id="46">
<data id="47">
<property name="resultSetColumn">PHONE</property>
</data>
</cell>
<cell id="48">
<data id="49">
<property name="resultSetColumn">ADDRESSLINE1</property>
</data>
</cell>
<cell id="50">
<data id="51">
<property name="resultSetColumn">ADDRESSLINE2</property>
</data>
</cell>
<cell id="52">
<data id="53">
<property name="resultSetColumn">CITY</property>
</data>
</cell>
<cell id="54">
<data id="55">
<property name="resultSetColumn">STATE</property>
</data>
</cell>
<cell id="56">
<data id="57">
<property name="resultSetColumn">POSTALCODE</property>
</data>
</cell>
<cell id="58">
<data id="59">
<property name="resultSetColumn">COUNTRY</property>
</data>
</cell>
<cell id="60">
<data id="61">
<property name="resultSetColumn">SALESREPEMPLOYEENUMBER</property>
</data>
</cell>
<cell id="62">
<data id="63">
<property name="resultSetColumn">CREDITLIMIT</property>
</data>
</cell>
</row>
</detail>
<footer>
<row id="64">
<cell id="65"/>
<cell id="66"/>
<cell id="67"/>
<cell id="68"/>
<cell id="69"/>
<cell id="70"/>
<cell id="71"/>
<cell id="72"/>
<cell id="73"/>
<cell id="74"/>
<cell id="75"/>
<cell id="76"/>
<cell id="77"/>
</row>
</footer>
</table>
</body>
</report>
|
|
|
Re: CSS Padding Ignored [message #632954 is a reply to message #632949] |
Thu, 14 October 2010 18:54 |
|
Richard,
can you try this css file?
..report {
font-family: serif;
font-size: x-small;
color: black;
}
..table-test {
font-family: sans-serif;
text-align: left;
padding-top: 36pt;
padding-bottom: 6pt;
padding-left: 6pt;
padding-right: 0pt;
background-color: red;
}
..table {
font-family: sans-serif;
text-align: left;
padding-top: 6pt;
padding-bottom: 6pt;
padding-left: 0pt;
padding-right: 0pt;
}
..table-header {
font-weight: bold;
color: blue;
background-color: #1f3953;
}
..table-group-header-1 {
font-weight: bold;
background-color: #c6c6c6;
}
..table-group-footer-1 {
font-weight: bold;
}
..table-group-header-2 {
font-weight: bold;
}
On 10/14/2010 2:25 PM, Richard A. Polunsky wrote:
> Here is the test CSS file and the sample report. I bumped the padding
> values up to 6pt so it's clear they are ignored at the report level.
>
> TESTCSS.CSS FILE:
> report {
> font-family: serif;
> font-size: x-small;
> color: black;
> }
>
> table-test {
> font-family: sans-serif;
> text-align: left;
> padding-top: 6pt;
> padding-bottom: 6pt;
> padding-left: 6pt;
> padding-right: 0pt;
> }
>
> table {
> font-family: sans-serif;
> text-align: left;
> padding-top: 6pt;
> padding-bottom: 6pt;
> padding-left: 0pt;
> padding-right: 0pt;
> }
>
> table-header {
> font-weight: bold;
> color: white;
> background-color: #1f3953;
> }
>
> table-group-header-1 {
> font-weight: bold;
> background-color: #c6c6c6;
> }
>
> table-group-footer-1 {
> font-weight: bold;
> }
>
> table-group-header-2 {
> font-weight: bold;
> }
>
> TEST REPORT (new_derby_report.rptdesign):
> <?xml version="1.0" encoding="UTF-8"?>
> <report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.20"
> id="1">
> <property name="createdBy">Eclipse BIRT Designer Version 2.5.0.v20090603
> Build <2.5.0.v20090617-0630></property>
> <property name="units">in</property>
> <property name="iconFile">/templates/blank_report.gif</property>
> <property name="bidiLayoutOrientation">ltr</property>
> <list-property name="cssStyleSheets">
> <structure>
> <property name="fileName">testcss.css</property>
> </structure>
> </list-property>
> <data-sources>
> <oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc"
> name="Data Source" id="7">
> <property
> name="odaDriverClass">org.eclipse.birt.report.data.oda.sampledb.Driver
> </property>
> <property name="odaURL">jdbc:classicmodels:sampledb</property>
> <property name="odaUser">ClassicModels</property>
> </oda-data-source>
> </data-sources>
> <data-sets>
> <oda-data-set
> extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet "
> name="Data Set" id="8">
> <list-property name="columnHints">
> <structure>
> <property name="columnName">CUSTOMERNUMBER</property>
> <property name="displayName">CUSTOMERNUMBER</property>
> </structure>
> <structure>
> <property name="columnName">CUSTOMERNAME</property>
> <property name="displayName">CUSTOMERNAME</property>
> </structure>
> <structure>
> <property name="columnName">CONTACTLASTNAME</property>
> <property name="displayName">CONTACTLASTNAME</property>
> </structure>
> <structure>
> <property name="columnName">CONTACTFIRSTNAME</property>
> <property name="displayName">CONTACTFIRSTNAME</property>
> </structure>
> <structure>
> <property name="columnName">PHONE</property>
> <property name="displayName">PHONE</property>
> </structure>
> <structure>
> <property name="columnName">ADDRESSLINE1</property>
> <property name="displayName">ADDRESSLINE1</property>
> </structure>
> <structure>
> <property name="columnName">ADDRESSLINE2</property>
> <property name="displayName">ADDRESSLINE2</property>
> </structure>
> <structure>
> <property name="columnName">CITY</property>
> <property name="displayName">CITY</property>
> </structure>
> <structure>
> <property name="columnName">STATE</property>
> <property name="displayName">STATE</property>
> </structure>
> <structure>
> <property name="columnName">POSTALCODE</property>
> <property name="displayName">POSTALCODE</property>
> </structure>
> <structure>
> <property name="columnName">COUNTRY</property>
> <property name="displayName">COUNTRY</property>
> </structure>
> <structure>
> <property name="columnName">SALESREPEMPLOYEENUMBER</property>
> <property name="displayName">SALESREPEMPLOYEENUMBER</property>
> </structure>
> <structure>
> <property name="columnName">CREDITLIMIT</property>
> <property name="displayName">CREDITLIMIT</property>
> </structure>
> </list-property>
> <structure name="cachedMetaData">
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">CUSTOMERNUMBER</property>
> <property name="dataType">integer</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">CUSTOMERNAME</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">3</property>
> <property name="name">CONTACTLASTNAME</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">4</property>
> <property name="name">CONTACTFIRSTNAME</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">5</property>
> <property name="name">PHONE</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">6</property>
> <property name="name">ADDRESSLINE1</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">7</property>
> <property name="name">ADDRESSLINE2</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">8</property>
> <property name="name">CITY</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">9</property>
> <property name="name">STATE</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">10</property>
> <property name="name">POSTALCODE</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">11</property>
> <property name="name">COUNTRY</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">12</property>
> <property name="name">SALESREPEMPLOYEENUMBER</property>
> <property name="dataType">integer</property>
> </structure>
> <structure>
> <property name="position">13</property>
> <property name="name">CREDITLIMIT</property>
> <property name="dataType">float</property>
> </structure>
> </list-property>
> </structure>
> <property name="dataSource">Data Source</property>
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">CUSTOMERNUMBER</property>
> <property name="nativeName">CUSTOMERNUMBER</property>
> <property name="dataType">integer</property>
> <property name="nativeDataType">4</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">CUSTOMERNAME</property>
> <property name="nativeName">CUSTOMERNAME</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">3</property>
> <property name="name">CONTACTLASTNAME</property>
> <property name="nativeName">CONTACTLASTNAME</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">4</property>
> <property name="name">CONTACTFIRSTNAME</property>
> <property name="nativeName">CONTACTFIRSTNAME</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">5</property>
> <property name="name">PHONE</property>
> <property name="nativeName">PHONE</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">6</property>
> <property name="name">ADDRESSLINE1</property>
> <property name="nativeName">ADDRESSLINE1</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">7</property>
> <property name="name">ADDRESSLINE2</property>
> <property name="nativeName">ADDRESSLINE2</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">8</property>
> <property name="name">CITY</property>
> <property name="nativeName">CITY</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">9</property>
> <property name="name">STATE</property>
> <property name="nativeName">STATE</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">10</property>
> <property name="name">POSTALCODE</property>
> <property name="nativeName">POSTALCODE</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">11</property>
> <property name="name">COUNTRY</property>
> <property name="nativeName">COUNTRY</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">12</property>
> <property name="name">SALESREPEMPLOYEENUMBER</property>
> <property name="nativeName">SALESREPEMPLOYEENUMBER</property>
> <property name="dataType">integer</property>
> <property name="nativeDataType">4</property>
> </structure>
> <structure>
> <property name="position">13</property>
> <property name="name">CREDITLIMIT</property>
> <property name="nativeName">CREDITLIMIT</property>
> <property name="dataType">float</property>
> <property name="nativeDataType">8</property>
> </structure>
> </list-property>
> <xml-property name="queryText"><![CDATA[select *
> from customers]]></xml-property>
> <xml-property name="designerValues"><![CDATA[<?xml version="1.0"
> encoding="UTF-8"?>
> <model:DesignValues
> xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design"
> xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel">
> <Version>1.0</Version>
> <design:ResultSets derivedMetaData="true">
> <design:resultSetDefinitions>
> <design:resultSetColumns>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>CUSTOMERNUMBER</design:name>
> <design:position>1</design:position>
> <design:nativeDataTypeCode>4</design:nativeDataTypeCode>
> <design:precision>10</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Nullable</design:nullability>
> <design:uiHints>
> <design:displayName>CUSTOMERNUMBER</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>CUSTOMERNUMBER</design:label>
> <design:formattingHints>
> <design:displaySize>11</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>CUSTOMERNAME</design:name>
> <design:position>2</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>50</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Nullable</design:nullability>
> <design:uiHints>
> <design:displayName>CUSTOMERNAME</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>CUSTOMERNAME</design:label>
> <design:formattingHints>
> <design:displaySize>50</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>CONTACTLASTNAME</design:name>
> <design:position>3</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>50</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Nullable</design:nullability>
> <design:uiHints>
> <design:displayName>CONTACTLASTNAME</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>CONTACTLASTNAME</design:label>
> <design:formattingHints>
> <design:displaySize>50</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>CONTACTFIRSTNAME</design:name>
> <design:position>4</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>50</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Nullable</design:nullability>
> <design:uiHints>
> <design:displayName>CONTACTFIRSTNAME</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>CONTACTFIRSTNAME</design:label>
> <design:formattingHints>
> <design:displaySize>50</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>PHONE</design:name>
> <design:position>5</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>50</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Nullable</design:nullability>
> <design:uiHints>
> <design:displayName>PHONE</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>PHONE</design:label>
> <design:formattingHints>
> <design:displaySize>50</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>ADDRESSLINE1</design:name>
> <design:position>6</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>50</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Nullable</design:nullability>
> <design:uiHints>
> <design:displayName>ADDRESSLINE1</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>ADDRESSLINE1</design:label>
> <design:formattingHints>
> <design:displaySize>50</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>ADDRESSLINE2</design:name>
> <design:position>7</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>50</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Nullable</design:nullability>
> <design:uiHints>
> <design:displayName>ADDRESSLINE2</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>ADDRESSLINE2</design:label>
> <design:formattingHints>
> <design:displaySize>50</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>CITY</design:name>
> <design:position>8</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>50</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Nullable</design:nullability>
> <design:uiHints>
> <design:displayName>CITY</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>CITY</design:label>
> <design:formattingHints>
> <design:displaySize>50</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>STATE</design:name>
> <design:position>9</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>50</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Nullable</design:nullability>
> <design:uiHints>
> <design:displayName>STATE</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>STATE</design:label>
> <design:formattingHints>
> <design:displaySize>50</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>POSTALCODE</design:name>
> <design:position>10</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>15</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Nullable</design:nullability>
> <design:uiHints>
> <design:displayName>POSTALCODE</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>POSTALCODE</design:label>
> <design:formattingHints>
> <design:displaySize>15</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>COUNTRY</design:name>
> <design:position>11</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>50</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Nullable</design:nullability>
> <design:uiHints>
> <design:displayName>COUNTRY</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>COUNTRY</design:label>
> <design:formattingHints>
> <design:displaySize>50</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>SALESREPEMPLOYEENUMBER</design:name>
> <design:position>12</design:position>
> <design:nativeDataTypeCode>4</design:nativeDataTypeCode>
> <design:precision>10</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Nullable</design:nullability>
> <design:uiHints>
> <design:displayName>SALESREPEMPLOYEENUMBER</design:displayName >
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>SALESREPEMPLOYEENUMBER</design:label>
> <design:formattingHints>
> <design:displaySize>11</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>CREDITLIMIT</design:name>
> <design:position>13</design:position>
> <design:nativeDataTypeCode>8</design:nativeDataTypeCode>
> <design:precision>15</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Nullable</design:nullability>
> <design:uiHints>
> <design:displayName>CREDITLIMIT</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>CREDITLIMIT</design:label>
> <design:formattingHints>
> <design:displaySize>22</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> </design:resultSetColumns>
> </design:resultSetDefinitions>
> </design:ResultSets>
> </model:DesignValues>]]></xml-property>
> </oda-data-set>
> </data-sets>
> <page-setup>
> <simple-master-page name="Simple MasterPage" id="2">
> <property name="orientation">landscape</property>
> <page-footer>
> <text id="3">
> <property name="contentType">html</property>
> <text-property name="content"><![CDATA[<value-of>new
> Date()</value-of>]]></text-property>
> </text>
> </page-footer>
> </simple-master-page>
> </page-setup>
> <body>
> <table id="9">
> <property name="fontSize">x-small</property>
> <property name="dataSet">Data Set</property>
> <list-property name="boundDataColumns">
> <structure>
> <property name="name">CUSTOMERNUMBER</property>
> <property name="displayName">CUSTOMERNUMBER</property>
> <expression name="expression">dataSetRow["CUSTOMERNUMBER"]</expression >
> <property name="dataType">integer</property>
> </structure>
> <structure>
> <property name="name">CUSTOMERNAME</property>
> <property name="displayName">CUSTOMERNAME</property>
> <expression name="expression">dataSetRow["CUSTOMERNAME"]</expression >
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">CONTACTLASTNAME</property>
> <property name="displayName">CONTACTLASTNAME</property>
> <expression name="expression">dataSetRow["CONTACTLASTNAME"]</expression >
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">CONTACTFIRSTNAME</property>
> <property name="displayName">CONTACTFIRSTNAME</property>
> <expression name="expression">dataSetRow["CONTACTFIRSTNAME"]</expression >
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">PHONE</property>
> <property name="displayName">PHONE</property>
> <expression name="expression">dataSetRow["PHONE"]</expression>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">ADDRESSLINE1</property>
> <property name="displayName">ADDRESSLINE1</property>
> <expression name="expression">dataSetRow["ADDRESSLINE1"]</expression >
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">ADDRESSLINE2</property>
> <property name="displayName">ADDRESSLINE2</property>
> <expression name="expression">dataSetRow["ADDRESSLINE2"]</expression >
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">CITY</property>
> <property name="displayName">CITY</property>
> <expression name="expression">dataSetRow["CITY"]</expression>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">STATE</property>
> <property name="displayName">STATE</property>
> <expression name="expression">dataSetRow["STATE"]</expression>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">POSTALCODE</property>
> <property name="displayName">POSTALCODE</property>
> <expression name="expression">dataSetRow["POSTALCODE"]</expression>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">COUNTRY</property>
> <property name="displayName">COUNTRY</property>
> <expression name="expression">dataSetRow["COUNTRY"]</expression>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">SALESREPEMPLOYEENUMBER</property>
> <property name="displayName">SALESREPEMPLOYEENUMBER</property>
> <expression
> name="expression">dataSetRow["SALESREPEMPLOYEENUMBER"]</expression >
> <property name="dataType">integer</property>
> </structure>
> <structure>
> <property name="name">CREDITLIMIT</property>
> <property name="displayName">CREDITLIMIT</property>
> <expression name="expression">dataSetRow["CREDITLIMIT"]</expression >
> <property name="dataType">float</property>
> </structure>
> </list-property>
> <list-property name="sort">
> <structure>
> <expression name="key">row["CUSTOMERNAME"]</expression>
> <property name="direction">asc</property>
> </structure>
> </list-property>
> <column id="78"/>
> <column id="79"/>
> <column id="80"/>
> <column id="81"/>
> <column id="82"/>
> <column id="83"/>
> <column id="84"/>
> <column id="85"/>
> <column id="86"/>
> <column id="87"/>
> <column id="88"/>
> <column id="89"/>
> <column id="90"/>
> <header>
> <row id="10">
> <cell id="11">
> <label id="12">
> <text-property name="text">CUSTOMERNUMBER</text-property>
> </label>
> </cell>
> <cell id="13">
> <label id="14">
> <text-property name="text">CUSTOMERNAME</text-property>
> </label>
> </cell>
> <cell id="15">
> <label id="16">
> <text-property name="text">CONTACTLASTNAME</text-property>
> </label>
> </cell>
> <cell id="17">
> <label id="18">
> <text-property name="text">CONTACTFIRSTNAME</text-property>
> </label>
> </cell>
> <cell id="19">
> <label id="20">
> <text-property name="text">PHONE</text-property>
> </label>
> </cell>
> <cell id="21">
> <label id="22">
> <text-property name="text">ADDRESSLINE1</text-property>
> </label>
> </cell>
> <cell id="23">
> <label id="24">
> <text-property name="text">ADDRESSLINE2</text-property>
> </label>
> </cell>
> <cell id="25">
> <label id="26">
> <text-property name="text">CITY</text-property>
> </label>
> </cell>
> <cell id="27">
> <label id="28">
> <text-property name="text">STATE</text-property>
> </label>
> </cell>
> <cell id="29">
> <label id="30">
> <text-property name="text">POSTALCODE</text-property>
> </label>
> </cell>
> <cell id="31">
> <label id="32">
> <text-property name="text">COUNTRY</text-property>
> </label>
> </cell>
> <cell id="33">
> <label id="34">
> <text-property name="text">SALESREPEMPLOYEENUMBER</text-property>
> </label>
> </cell>
> <cell id="35">
> <label id="36">
> <text-property name="text">CREDITLIMIT</text-property>
> </label>
> </cell>
> </row>
> </header>
> <group id="91">
> <property name="groupName">NewTableGroup1</property>
> <property name="interval">none</property>
> <property name="sortDirection">asc</property>
> <expression name="keyExpr">row["STATE"]</expression>
> <structure name="toc">
> <expression name="expressionValue">row["STATE"]</expression>
> </structure>
> <property name="repeatHeader">true</property>
> <property name="hideDetail">false</property>
> <property name="pageBreakAfter">auto</property>
> <property name="pageBreakBefore">auto</property>
> <property name="pageBreakInside">auto</property>
> <header>
> <row id="92">
> <cell id="93">
> <data id="120">
> <property name="fontWeight">bold</property>
> <property name="textUnderline">underline</property>
> <property name="resultSetColumn">STATE</property>
> </data>
> </cell>
> <cell id="94"/>
> <cell id="95"/>
> <cell id="96"/>
> <cell id="97"/>
> <cell id="98"/>
> <cell id="99"/>
> <cell id="100"/>
> <cell id="101"/>
> <cell id="102"/>
> <cell id="103"/>
> <cell id="104"/>
> <cell id="105"/>
> </row>
> </header>
> <footer>
> <row id="106">
> <cell id="107"/>
> <cell id="108"/>
> <cell id="109"/>
> <cell id="110"/>
> <cell id="111"/>
> <cell id="112"/>
> <cell id="113"/>
> <cell id="114"/>
> <cell id="115"/>
> <cell id="116"/>
> <cell id="117"/>
> <cell id="118"/>
> <cell id="119"/>
> </row>
> </footer>
> </group>
> <group id="121">
> <property name="groupName">NewTableGroup2</property>
> <property name="interval">none</property>
> <property name="sortDirection">asc</property>
> <expression name="keyExpr">row["CITY"]</expression>
> <structure name="toc">
> <expression name="expressionValue">row["CITY"]</expression>
> </structure>
> <property name="repeatHeader">true</property>
> <property name="hideDetail">false</property>
> <property name="pageBreakAfter">auto</property>
> <property name="pageBreakBefore">auto</property>
> <property name="pageBreakInside">auto</property>
> <header>
> <row id="122">
> <cell id="123">
> <data id="150">
> <property name="resultSetColumn">CITY</property>
> </data>
> </cell>
> <cell id="124"/>
> <cell id="125"/>
> <cell id="126"/>
> <cell id="127"/>
> <cell id="128"/>
> <cell id="129"/>
> <cell id="130"/>
> <cell id="131"/>
> <cell id="132"/>
> <cell id="133"/>
> <cell id="134"/>
> <cell id="135"/>
> </row>
> </header>
> <footer>
> <row id="136">
> <cell id="137"/>
> <cell id="138"/>
> <cell id="139"/>
> <cell id="140"/>
> <cell id="141"/>
> <cell id="142"/>
> <cell id="143"/>
> <cell id="144"/>
> <cell id="145"/>
> <cell id="146"/>
> <cell id="147"/>
> <cell id="148"/>
> <cell id="149"/>
> </row>
> </footer>
> </group>
> <detail>
> <row id="37">
> <property name="style">table-test</property>
> <list-property name="highlightRules">
> <structure>
> <property name="operator">eq</property>
> <property name="backgroundColor">#808000</property>
> <expression name="testExpr">row.__rownum % 2</expression>
> <simple-property-list name="value1">
> <value>1</value>
> </simple-property-list>
> </structure>
> </list-property>
> <cell id="38">
> <data id="39">
> <property name="resultSetColumn">CUSTOMERNUMBER</property>
> </data>
> </cell>
> <cell id="40">
> <data id="41">
> <property name="resultSetColumn">CUSTOMERNAME</property>
> </data>
> </cell>
> <cell id="42">
> <data id="43">
> <property name="resultSetColumn">CONTACTLASTNAME</property>
> </data>
> </cell>
> <cell id="44">
> <data id="45">
> <property name="resultSetColumn">CONTACTFIRSTNAME</property>
> </data>
> </cell>
> <cell id="46">
> <data id="47">
> <property name="resultSetColumn">PHONE</property>
> </data>
> </cell>
> <cell id="48">
> <data id="49">
> <property name="resultSetColumn">ADDRESSLINE1</property>
> </data>
> </cell>
> <cell id="50">
> <data id="51">
> <property name="resultSetColumn">ADDRESSLINE2</property>
> </data>
> </cell>
> <cell id="52">
> <data id="53">
> <property name="resultSetColumn">CITY</property>
> </data>
> </cell>
> <cell id="54">
> <data id="55">
> <property name="resultSetColumn">STATE</property>
> </data>
> </cell>
> <cell id="56">
> <data id="57">
> <property name="resultSetColumn">POSTALCODE</property>
> </data>
> </cell>
> <cell id="58">
> <data id="59">
> <property name="resultSetColumn">COUNTRY</property>
> </data>
> </cell>
> <cell id="60">
> <data id="61">
> <property name="resultSetColumn">SALESREPEMPLOYEENUMBER</property>
> </data>
> </cell>
> <cell id="62">
> <data id="63">
> <property name="resultSetColumn">CREDITLIMIT</property>
> </data>
> </cell>
> </row>
> </detail>
> <footer>
> <row id="64">
> <cell id="65"/>
> <cell id="66"/>
> <cell id="67"/>
> <cell id="68"/>
> <cell id="69"/>
> <cell id="70"/>
> <cell id="71"/>
> <cell id="72"/>
> <cell id="73"/>
> <cell id="74"/>
> <cell id="75"/>
> <cell id="76"/>
> <cell id="77"/>
> </row>
> </footer>
> </table>
> </body>
> </report>
>
|
|
|
Re: CSS Padding Ignored [message #632957 is a reply to message #632918] |
Thu, 14 October 2010 19:26 |
|
BIRT does not recognize the double-period lead entries in that file.
If I change them to single-period leads it recognizes and applies them but not the padding values.
|
|
|
Re: CSS Padding Ignored [message #632965 is a reply to message #632954] |
Thu, 14 October 2010 19:42 |
|
That is odd. My css only contained one period. Are you using 2.5.0?
Any chance you could try 2.5.2, or 2.6.1?
Jason
On 10/14/2010 2:54 PM, Jason Weathersby wrote:
> Richard,
>
> can you try this css file?
>
>
> ..report {
> font-family: serif;
> font-size: x-small;
> color: black;
> }
>
> ..table-test {
> font-family: sans-serif;
> text-align: left;
> padding-top: 36pt;
> padding-bottom: 6pt;
> padding-left: 6pt;
> padding-right: 0pt;
> background-color: red;
> }
>
> ..table {
> font-family: sans-serif;
> text-align: left;
> padding-top: 6pt;
> padding-bottom: 6pt;
> padding-left: 0pt;
> padding-right: 0pt;
> }
>
> ..table-header {
> font-weight: bold;
> color: blue;
> background-color: #1f3953;
> }
>
> ..table-group-header-1 {
> font-weight: bold;
> background-color: #c6c6c6;
> }
>
> ..table-group-footer-1 {
> font-weight: bold;
> }
>
> ..table-group-header-2 {
> font-weight: bold;
> }
>
>
> On 10/14/2010 2:25 PM, Richard A. Polunsky wrote:
>> Here is the test CSS file and the sample report. I bumped the padding
>> values up to 6pt so it's clear they are ignored at the report level.
>>
>> TESTCSS.CSS FILE:
>> report {
>> font-family: serif;
>> font-size: x-small;
>> color: black;
>> }
>>
>> table-test {
>> font-family: sans-serif;
>> text-align: left;
>> padding-top: 6pt;
>> padding-bottom: 6pt;
>> padding-left: 6pt;
>> padding-right: 0pt;
>> }
>>
>> table {
>> font-family: sans-serif;
>> text-align: left;
>> padding-top: 6pt;
>> padding-bottom: 6pt;
>> padding-left: 0pt;
>> padding-right: 0pt;
>> }
>>
>> table-header {
>> font-weight: bold;
>> color: white;
>> background-color: #1f3953;
>> }
>>
>> table-group-header-1 {
>> font-weight: bold;
>> background-color: #c6c6c6;
>> }
>>
>> table-group-footer-1 {
>> font-weight: bold;
>> }
>>
>> table-group-header-2 {
>> font-weight: bold;
>> }
>>
>> TEST REPORT (new_derby_report.rptdesign):
>> <?xml version="1.0" encoding="UTF-8"?>
>> <report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.20"
>> id="1">
>> <property name="createdBy">Eclipse BIRT Designer Version 2.5.0.v20090603
>> Build <2.5.0.v20090617-0630></property>
>> <property name="units">in</property>
>> <property name="iconFile">/templates/blank_report.gif</property>
>> <property name="bidiLayoutOrientation">ltr</property>
>> <list-property name="cssStyleSheets">
>> <structure>
>> <property name="fileName">testcss.css</property>
>> </structure>
>> </list-property>
>> <data-sources>
>> <oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc"
>> name="Data Source" id="7">
>> <property
>> name="odaDriverClass">org.eclipse.birt.report.data.oda.sampledb.Driver
>> </property>
>> <property name="odaURL">jdbc:classicmodels:sampledb</property>
>> <property name="odaUser">ClassicModels</property>
>> </oda-data-source>
>> </data-sources>
>> <data-sets>
>> <oda-data-set
>> extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet "
>> name="Data Set" id="8">
>> <list-property name="columnHints">
>> <structure>
>> <property name="columnName">CUSTOMERNUMBER</property>
>> <property name="displayName">CUSTOMERNUMBER</property>
>> </structure>
>> <structure>
>> <property name="columnName">CUSTOMERNAME</property>
>> <property name="displayName">CUSTOMERNAME</property>
>> </structure>
>> <structure>
>> <property name="columnName">CONTACTLASTNAME</property>
>> <property name="displayName">CONTACTLASTNAME</property>
>> </structure>
>> <structure>
>> <property name="columnName">CONTACTFIRSTNAME</property>
>> <property name="displayName">CONTACTFIRSTNAME</property>
>> </structure>
>> <structure>
>> <property name="columnName">PHONE</property>
>> <property name="displayName">PHONE</property>
>> </structure>
>> <structure>
>> <property name="columnName">ADDRESSLINE1</property>
>> <property name="displayName">ADDRESSLINE1</property>
>> </structure>
>> <structure>
>> <property name="columnName">ADDRESSLINE2</property>
>> <property name="displayName">ADDRESSLINE2</property>
>> </structure>
>> <structure>
>> <property name="columnName">CITY</property>
>> <property name="displayName">CITY</property>
>> </structure>
>> <structure>
>> <property name="columnName">STATE</property>
>> <property name="displayName">STATE</property>
>> </structure>
>> <structure>
>> <property name="columnName">POSTALCODE</property>
>> <property name="displayName">POSTALCODE</property>
>> </structure>
>> <structure>
>> <property name="columnName">COUNTRY</property>
>> <property name="displayName">COUNTRY</property>
>> </structure>
>> <structure>
>> <property name="columnName">SALESREPEMPLOYEENUMBER</property>
>> <property name="displayName">SALESREPEMPLOYEENUMBER</property>
>> </structure>
>> <structure>
>> <property name="columnName">CREDITLIMIT</property>
>> <property name="displayName">CREDITLIMIT</property>
>> </structure>
>> </list-property>
>> <structure name="cachedMetaData">
>> <list-property name="resultSet">
>> <structure>
>> <property name="position">1</property>
>> <property name="name">CUSTOMERNUMBER</property>
>> <property name="dataType">integer</property>
>> </structure>
>> <structure>
>> <property name="position">2</property>
>> <property name="name">CUSTOMERNAME</property>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="position">3</property>
>> <property name="name">CONTACTLASTNAME</property>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="position">4</property>
>> <property name="name">CONTACTFIRSTNAME</property>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="position">5</property>
>> <property name="name">PHONE</property>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="position">6</property>
>> <property name="name">ADDRESSLINE1</property>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="position">7</property>
>> <property name="name">ADDRESSLINE2</property>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="position">8</property>
>> <property name="name">CITY</property>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="position">9</property>
>> <property name="name">STATE</property>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="position">10</property>
>> <property name="name">POSTALCODE</property>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="position">11</property>
>> <property name="name">COUNTRY</property>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="position">12</property>
>> <property name="name">SALESREPEMPLOYEENUMBER</property>
>> <property name="dataType">integer</property>
>> </structure>
>> <structure>
>> <property name="position">13</property>
>> <property name="name">CREDITLIMIT</property>
>> <property name="dataType">float</property>
>> </structure>
>> </list-property>
>> </structure>
>> <property name="dataSource">Data Source</property>
>> <list-property name="resultSet">
>> <structure>
>> <property name="position">1</property>
>> <property name="name">CUSTOMERNUMBER</property>
>> <property name="nativeName">CUSTOMERNUMBER</property>
>> <property name="dataType">integer</property>
>> <property name="nativeDataType">4</property>
>> </structure>
>> <structure>
>> <property name="position">2</property>
>> <property name="name">CUSTOMERNAME</property>
>> <property name="nativeName">CUSTOMERNAME</property>
>> <property name="dataType">string</property>
>> <property name="nativeDataType">12</property>
>> </structure>
>> <structure>
>> <property name="position">3</property>
>> <property name="name">CONTACTLASTNAME</property>
>> <property name="nativeName">CONTACTLASTNAME</property>
>> <property name="dataType">string</property>
>> <property name="nativeDataType">12</property>
>> </structure>
>> <structure>
>> <property name="position">4</property>
>> <property name="name">CONTACTFIRSTNAME</property>
>> <property name="nativeName">CONTACTFIRSTNAME</property>
>> <property name="dataType">string</property>
>> <property name="nativeDataType">12</property>
>> </structure>
>> <structure>
>> <property name="position">5</property>
>> <property name="name">PHONE</property>
>> <property name="nativeName">PHONE</property>
>> <property name="dataType">string</property>
>> <property name="nativeDataType">12</property>
>> </structure>
>> <structure>
>> <property name="position">6</property>
>> <property name="name">ADDRESSLINE1</property>
>> <property name="nativeName">ADDRESSLINE1</property>
>> <property name="dataType">string</property>
>> <property name="nativeDataType">12</property>
>> </structure>
>> <structure>
>> <property name="position">7</property>
>> <property name="name">ADDRESSLINE2</property>
>> <property name="nativeName">ADDRESSLINE2</property>
>> <property name="dataType">string</property>
>> <property name="nativeDataType">12</property>
>> </structure>
>> <structure>
>> <property name="position">8</property>
>> <property name="name">CITY</property>
>> <property name="nativeName">CITY</property>
>> <property name="dataType">string</property>
>> <property name="nativeDataType">12</property>
>> </structure>
>> <structure>
>> <property name="position">9</property>
>> <property name="name">STATE</property>
>> <property name="nativeName">STATE</property>
>> <property name="dataType">string</property>
>> <property name="nativeDataType">12</property>
>> </structure>
>> <structure>
>> <property name="position">10</property>
>> <property name="name">POSTALCODE</property>
>> <property name="nativeName">POSTALCODE</property>
>> <property name="dataType">string</property>
>> <property name="nativeDataType">12</property>
>> </structure>
>> <structure>
>> <property name="position">11</property>
>> <property name="name">COUNTRY</property>
>> <property name="nativeName">COUNTRY</property>
>> <property name="dataType">string</property>
>> <property name="nativeDataType">12</property>
>> </structure>
>> <structure>
>> <property name="position">12</property>
>> <property name="name">SALESREPEMPLOYEENUMBER</property>
>> <property name="nativeName">SALESREPEMPLOYEENUMBER</property>
>> <property name="dataType">integer</property>
>> <property name="nativeDataType">4</property>
>> </structure>
>> <structure>
>> <property name="position">13</property>
>> <property name="name">CREDITLIMIT</property>
>> <property name="nativeName">CREDITLIMIT</property>
>> <property name="dataType">float</property>
>> <property name="nativeDataType">8</property>
>> </structure>
>> </list-property>
>> <xml-property name="queryText"><![CDATA[select *
>> from customers]]></xml-property>
>> <xml-property name="designerValues"><![CDATA[<?xml version="1.0"
>> encoding="UTF-8"?>
>> <model:DesignValues
>> xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design"
>> xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel">
>> <Version>1.0</Version>
>> <design:ResultSets derivedMetaData="true">
>> <design:resultSetDefinitions>
>> <design:resultSetColumns>
>> <design:resultColumnDefinitions>
>> <design:attributes>
>> <design:name>CUSTOMERNUMBER</design:name>
>> <design:position>1</design:position>
>> <design:nativeDataTypeCode>4</design:nativeDataTypeCode>
>> <design:precision>10</design:precision>
>> <design:scale>0</design:scale>
>> <design:nullability>Nullable</design:nullability>
>> <design:uiHints>
>> <design:displayName>CUSTOMERNUMBER</design:displayName>
>> </design:uiHints>
>> </design:attributes>
>> <design:usageHints>
>> <design:label>CUSTOMERNUMBER</design:label>
>> <design:formattingHints>
>> <design:displaySize>11</design:displaySize>
>> </design:formattingHints>
>> </design:usageHints>
>> </design:resultColumnDefinitions>
>> <design:resultColumnDefinitions>
>> <design:attributes>
>> <design:name>CUSTOMERNAME</design:name>
>> <design:position>2</design:position>
>> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
>> <design:precision>50</design:precision>
>> <design:scale>0</design:scale>
>> <design:nullability>Nullable</design:nullability>
>> <design:uiHints>
>> <design:displayName>CUSTOMERNAME</design:displayName>
>> </design:uiHints>
>> </design:attributes>
>> <design:usageHints>
>> <design:label>CUSTOMERNAME</design:label>
>> <design:formattingHints>
>> <design:displaySize>50</design:displaySize>
>> </design:formattingHints>
>> </design:usageHints>
>> </design:resultColumnDefinitions>
>> <design:resultColumnDefinitions>
>> <design:attributes>
>> <design:name>CONTACTLASTNAME</design:name>
>> <design:position>3</design:position>
>> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
>> <design:precision>50</design:precision>
>> <design:scale>0</design:scale>
>> <design:nullability>Nullable</design:nullability>
>> <design:uiHints>
>> <design:displayName>CONTACTLASTNAME</design:displayName>
>> </design:uiHints>
>> </design:attributes>
>> <design:usageHints>
>> <design:label>CONTACTLASTNAME</design:label>
>> <design:formattingHints>
>> <design:displaySize>50</design:displaySize>
>> </design:formattingHints>
>> </design:usageHints>
>> </design:resultColumnDefinitions>
>> <design:resultColumnDefinitions>
>> <design:attributes>
>> <design:name>CONTACTFIRSTNAME</design:name>
>> <design:position>4</design:position>
>> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
>> <design:precision>50</design:precision>
>> <design:scale>0</design:scale>
>> <design:nullability>Nullable</design:nullability>
>> <design:uiHints>
>> <design:displayName>CONTACTFIRSTNAME</design:displayName>
>> </design:uiHints>
>> </design:attributes>
>> <design:usageHints>
>> <design:label>CONTACTFIRSTNAME</design:label>
>> <design:formattingHints>
>> <design:displaySize>50</design:displaySize>
>> </design:formattingHints>
>> </design:usageHints>
>> </design:resultColumnDefinitions>
>> <design:resultColumnDefinitions>
>> <design:attributes>
>> <design:name>PHONE</design:name>
>> <design:position>5</design:position>
>> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
>> <design:precision>50</design:precision>
>> <design:scale>0</design:scale>
>> <design:nullability>Nullable</design:nullability>
>> <design:uiHints>
>> <design:displayName>PHONE</design:displayName>
>> </design:uiHints>
>> </design:attributes>
>> <design:usageHints>
>> <design:label>PHONE</design:label>
>> <design:formattingHints>
>> <design:displaySize>50</design:displaySize>
>> </design:formattingHints>
>> </design:usageHints>
>> </design:resultColumnDefinitions>
>> <design:resultColumnDefinitions>
>> <design:attributes>
>> <design:name>ADDRESSLINE1</design:name>
>> <design:position>6</design:position>
>> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
>> <design:precision>50</design:precision>
>> <design:scale>0</design:scale>
>> <design:nullability>Nullable</design:nullability>
>> <design:uiHints>
>> <design:displayName>ADDRESSLINE1</design:displayName>
>> </design:uiHints>
>> </design:attributes>
>> <design:usageHints>
>> <design:label>ADDRESSLINE1</design:label>
>> <design:formattingHints>
>> <design:displaySize>50</design:displaySize>
>> </design:formattingHints>
>> </design:usageHints>
>> </design:resultColumnDefinitions>
>> <design:resultColumnDefinitions>
>> <design:attributes>
>> <design:name>ADDRESSLINE2</design:name>
>> <design:position>7</design:position>
>> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
>> <design:precision>50</design:precision>
>> <design:scale>0</design:scale>
>> <design:nullability>Nullable</design:nullability>
>> <design:uiHints>
>> <design:displayName>ADDRESSLINE2</design:displayName>
>> </design:uiHints>
>> </design:attributes>
>> <design:usageHints>
>> <design:label>ADDRESSLINE2</design:label>
>> <design:formattingHints>
>> <design:displaySize>50</design:displaySize>
>> </design:formattingHints>
>> </design:usageHints>
>> </design:resultColumnDefinitions>
>> <design:resultColumnDefinitions>
>> <design:attributes>
>> <design:name>CITY</design:name>
>> <design:position>8</design:position>
>> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
>> <design:precision>50</design:precision>
>> <design:scale>0</design:scale>
>> <design:nullability>Nullable</design:nullability>
>> <design:uiHints>
>> <design:displayName>CITY</design:displayName>
>> </design:uiHints>
>> </design:attributes>
>> <design:usageHints>
>> <design:label>CITY</design:label>
>> <design:formattingHints>
>> <design:displaySize>50</design:displaySize>
>> </design:formattingHints>
>> </design:usageHints>
>> </design:resultColumnDefinitions>
>> <design:resultColumnDefinitions>
>> <design:attributes>
>> <design:name>STATE</design:name>
>> <design:position>9</design:position>
>> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
>> <design:precision>50</design:precision>
>> <design:scale>0</design:scale>
>> <design:nullability>Nullable</design:nullability>
>> <design:uiHints>
>> <design:displayName>STATE</design:displayName>
>> </design:uiHints>
>> </design:attributes>
>> <design:usageHints>
>> <design:label>STATE</design:label>
>> <design:formattingHints>
>> <design:displaySize>50</design:displaySize>
>> </design:formattingHints>
>> </design:usageHints>
>> </design:resultColumnDefinitions>
>> <design:resultColumnDefinitions>
>> <design:attributes>
>> <design:name>POSTALCODE</design:name>
>> <design:position>10</design:position>
>> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
>> <design:precision>15</design:precision>
>> <design:scale>0</design:scale>
>> <design:nullability>Nullable</design:nullability>
>> <design:uiHints>
>> <design:displayName>POSTALCODE</design:displayName>
>> </design:uiHints>
>> </design:attributes>
>> <design:usageHints>
>> <design:label>POSTALCODE</design:label>
>> <design:formattingHints>
>> <design:displaySize>15</design:displaySize>
>> </design:formattingHints>
>> </design:usageHints>
>> </design:resultColumnDefinitions>
>> <design:resultColumnDefinitions>
>> <design:attributes>
>> <design:name>COUNTRY</design:name>
>> <design:position>11</design:position>
>> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
>> <design:precision>50</design:precision>
>> <design:scale>0</design:scale>
>> <design:nullability>Nullable</design:nullability>
>> <design:uiHints>
>> <design:displayName>COUNTRY</design:displayName>
>> </design:uiHints>
>> </design:attributes>
>> <design:usageHints>
>> <design:label>COUNTRY</design:label>
>> <design:formattingHints>
>> <design:displaySize>50</design:displaySize>
>> </design:formattingHints>
>> </design:usageHints>
>> </design:resultColumnDefinitions>
>> <design:resultColumnDefinitions>
>> <design:attributes>
>> <design:name>SALESREPEMPLOYEENUMBER</design:name>
>> <design:position>12</design:position>
>> <design:nativeDataTypeCode>4</design:nativeDataTypeCode>
>> <design:precision>10</design:precision>
>> <design:scale>0</design:scale>
>> <design:nullability>Nullable</design:nullability>
>> <design:uiHints>
>> <design:displayName>SALESREPEMPLOYEENUMBER</design:displayName >
>> </design:uiHints>
>> </design:attributes>
>> <design:usageHints>
>> <design:label>SALESREPEMPLOYEENUMBER</design:label>
>> <design:formattingHints>
>> <design:displaySize>11</design:displaySize>
>> </design:formattingHints>
>> </design:usageHints>
>> </design:resultColumnDefinitions>
>> <design:resultColumnDefinitions>
>> <design:attributes>
>> <design:name>CREDITLIMIT</design:name>
>> <design:position>13</design:position>
>> <design:nativeDataTypeCode>8</design:nativeDataTypeCode>
>> <design:precision>15</design:precision>
>> <design:scale>0</design:scale>
>> <design:nullability>Nullable</design:nullability>
>> <design:uiHints>
>> <design:displayName>CREDITLIMIT</design:displayName>
>> </design:uiHints>
>> </design:attributes>
>> <design:usageHints>
>> <design:label>CREDITLIMIT</design:label>
>> <design:formattingHints>
>> <design:displaySize>22</design:displaySize>
>> </design:formattingHints>
>> </design:usageHints>
>> </design:resultColumnDefinitions>
>> </design:resultSetColumns>
>> </design:resultSetDefinitions>
>> </design:ResultSets>
>> </model:DesignValues>]]></xml-property>
>> </oda-data-set>
>> </data-sets>
>> <page-setup>
>> <simple-master-page name="Simple MasterPage" id="2">
>> <property name="orientation">landscape</property>
>> <page-footer>
>> <text id="3">
>> <property name="contentType">html</property>
>> <text-property name="content"><![CDATA[<value-of>new
>> Date()</value-of>]]></text-property>
>> </text>
>> </page-footer>
>> </simple-master-page>
>> </page-setup>
>> <body>
>> <table id="9">
>> <property name="fontSize">x-small</property>
>> <property name="dataSet">Data Set</property>
>> <list-property name="boundDataColumns">
>> <structure>
>> <property name="name">CUSTOMERNUMBER</property>
>> <property name="displayName">CUSTOMERNUMBER</property>
>> <expression name="expression">dataSetRow["CUSTOMERNUMBER"]</expression >
>> <property name="dataType">integer</property>
>> </structure>
>> <structure>
>> <property name="name">CUSTOMERNAME</property>
>> <property name="displayName">CUSTOMERNAME</property>
>> <expression name="expression">dataSetRow["CUSTOMERNAME"]</expression >
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="name">CONTACTLASTNAME</property>
>> <property name="displayName">CONTACTLASTNAME</property>
>> <expression name="expression">dataSetRow["CONTACTLASTNAME"]</expression >
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="name">CONTACTFIRSTNAME</property>
>> <property name="displayName">CONTACTFIRSTNAME</property>
>> <expression
>> name="expression">dataSetRow["CONTACTFIRSTNAME"]</expression >
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="name">PHONE</property>
>> <property name="displayName">PHONE</property>
>> <expression name="expression">dataSetRow["PHONE"]</expression>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="name">ADDRESSLINE1</property>
>> <property name="displayName">ADDRESSLINE1</property>
>> <expression name="expression">dataSetRow["ADDRESSLINE1"]</expression >
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="name">ADDRESSLINE2</property>
>> <property name="displayName">ADDRESSLINE2</property>
>> <expression name="expression">dataSetRow["ADDRESSLINE2"]</expression >
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="name">CITY</property>
>> <property name="displayName">CITY</property>
>> <expression name="expression">dataSetRow["CITY"]</expression>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="name">STATE</property>
>> <property name="displayName">STATE</property>
>> <expression name="expression">dataSetRow["STATE"]</expression>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="name">POSTALCODE</property>
>> <property name="displayName">POSTALCODE</property>
>> <expression name="expression">dataSetRow["POSTALCODE"]</expression>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="name">COUNTRY</property>
>> <property name="displayName">COUNTRY</property>
>> <expression name="expression">dataSetRow["COUNTRY"]</expression>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="name">SALESREPEMPLOYEENUMBER</property>
>> <property name="displayName">SALESREPEMPLOYEENUMBER</property>
>> <expression
>> name="expression">dataSetRow["SALESREPEMPLOYEENUMBER"]</expression >
>> <property name="dataType">integer</property>
>> </structure>
>> <structure>
>> <property name="name">CREDITLIMIT</property>
>> <property name="displayName">CREDITLIMIT</property>
>> <expression name="expression">dataSetRow["CREDITLIMIT"]</expression >
>> <property name="dataType">float</property>
>> </structure>
>> </list-property>
>> <list-property name="sort">
>> <structure>
>> <expression name="key">row["CUSTOMERNAME"]</expression>
>> <property name="direction">asc</property>
>> </structure>
>> </list-property>
>> <column id="78"/>
>> <column id="79"/>
>> <column id="80"/>
>> <column id="81"/>
>> <column id="82"/>
>> <column id="83"/>
>> <column id="84"/>
>> <column id="85"/>
>> <column id="86"/>
>> <column id="87"/>
>> <column id="88"/>
>> <column id="89"/>
>> <column id="90"/>
>> <header>
>> <row id="10">
>> <cell id="11">
>> <label id="12">
>> <text-property name="text">CUSTOMERNUMBER</text-property>
>> </label>
>> </cell>
>> <cell id="13">
>> <label id="14">
>> <text-property name="text">CUSTOMERNAME</text-property>
>> </label>
>> </cell>
>> <cell id="15">
>> <label id="16">
>> <text-property name="text">CONTACTLASTNAME</text-property>
>> </label>
>> </cell>
>> <cell id="17">
>> <label id="18">
>> <text-property name="text">CONTACTFIRSTNAME</text-property>
>> </label>
>> </cell>
>> <cell id="19">
>> <label id="20">
>> <text-property name="text">PHONE</text-property>
>> </label>
>> </cell>
>> <cell id="21">
>> <label id="22">
>> <text-property name="text">ADDRESSLINE1</text-property>
>> </label>
>> </cell>
>> <cell id="23">
>> <label id="24">
>> <text-property name="text">ADDRESSLINE2</text-property>
>> </label>
>> </cell>
>> <cell id="25">
>> <label id="26">
>> <text-property name="text">CITY</text-property>
>> </label>
>> </cell>
>> <cell id="27">
>> <label id="28">
>> <text-property name="text">STATE</text-property>
>> </label>
>> </cell>
>> <cell id="29">
>> <label id="30">
>> <text-property name="text">POSTALCODE</text-property>
>> </label>
>> </cell>
>> <cell id="31">
>> <label id="32">
>> <text-property name="text">COUNTRY</text-property>
>> </label>
>> </cell>
>> <cell id="33">
>> <label id="34">
>> <text-property name="text">SALESREPEMPLOYEENUMBER</text-property>
>> </label>
>> </cell>
>> <cell id="35">
>> <label id="36">
>> <text-property name="text">CREDITLIMIT</text-property>
>> </label>
>> </cell>
>> </row>
>> </header>
>> <group id="91">
>> <property name="groupName">NewTableGroup1</property>
>> <property name="interval">none</property>
>> <property name="sortDirection">asc</property>
>> <expression name="keyExpr">row["STATE"]</expression>
>> <structure name="toc">
>> <expression name="expressionValue">row["STATE"]</expression>
>> </structure>
>> <property name="repeatHeader">true</property>
>> <property name="hideDetail">false</property>
>> <property name="pageBreakAfter">auto</property>
>> <property name="pageBreakBefore">auto</property>
>> <property name="pageBreakInside">auto</property>
>> <header>
>> <row id="92">
>> <cell id="93">
>> <data id="120">
>> <property name="fontWeight">bold</property>
>> <property name="textUnderline">underline</property>
>> <property name="resultSetColumn">STATE</property>
>> </data>
>> </cell>
>> <cell id="94"/>
>> <cell id="95"/>
>> <cell id="96"/>
>> <cell id="97"/>
>> <cell id="98"/>
>> <cell id="99"/>
>> <cell id="100"/>
>> <cell id="101"/>
>> <cell id="102"/>
>> <cell id="103"/>
>> <cell id="104"/>
>> <cell id="105"/>
>> </row>
>> </header>
>> <footer>
>> <row id="106">
>> <cell id="107"/>
>> <cell id="108"/>
>> <cell id="109"/>
>> <cell id="110"/>
>> <cell id="111"/>
>> <cell id="112"/>
>> <cell id="113"/>
>> <cell id="114"/>
>> <cell id="115"/>
>> <cell id="116"/>
>> <cell id="117"/>
>> <cell id="118"/>
>> <cell id="119"/>
>> </row>
>> </footer>
>> </group>
>> <group id="121">
>> <property name="groupName">NewTableGroup2</property>
>> <property name="interval">none</property>
>> <property name="sortDirection">asc</property>
>> <expression name="keyExpr">row["CITY"]</expression>
>> <structure name="toc">
>> <expression name="expressionValue">row["CITY"]</expression>
>> </structure>
>> <property name="repeatHeader">true</property>
>> <property name="hideDetail">false</property>
>> <property name="pageBreakAfter">auto</property>
>> <property name="pageBreakBefore">auto</property>
>> <property name="pageBreakInside">auto</property>
>> <header>
>> <row id="122">
>> <cell id="123">
>> <data id="150">
>> <property name="resultSetColumn">CITY</property>
>> </data>
>> </cell>
>> <cell id="124"/>
>> <cell id="125"/>
>> <cell id="126"/>
>> <cell id="127"/>
>> <cell id="128"/>
>> <cell id="129"/>
>> <cell id="130"/>
>> <cell id="131"/>
>> <cell id="132"/>
>> <cell id="133"/>
>> <cell id="134"/>
>> <cell id="135"/>
>> </row>
>> </header>
>> <footer>
>> <row id="136">
>> <cell id="137"/>
>> <cell id="138"/>
>> <cell id="139"/>
>> <cell id="140"/>
>> <cell id="141"/>
>> <cell id="142"/>
>> <cell id="143"/>
>> <cell id="144"/>
>> <cell id="145"/>
>> <cell id="146"/>
>> <cell id="147"/>
>> <cell id="148"/>
>> <cell id="149"/>
>> </row>
>> </footer>
>> </group>
>> <detail>
>> <row id="37">
>> <property name="style">table-test</property>
>> <list-property name="highlightRules">
>> <structure>
>> <property name="operator">eq</property>
>> <property name="backgroundColor">#808000</property>
>> <expression name="testExpr">row.__rownum % 2</expression>
>> <simple-property-list name="value1">
>> <value>1</value>
>> </simple-property-list>
>> </structure>
>> </list-property>
>> <cell id="38">
>> <data id="39">
>> <property name="resultSetColumn">CUSTOMERNUMBER</property>
>> </data>
>> </cell>
>> <cell id="40">
>> <data id="41">
>> <property name="resultSetColumn">CUSTOMERNAME</property>
>> </data>
>> </cell>
>> <cell id="42">
>> <data id="43">
>> <property name="resultSetColumn">CONTACTLASTNAME</property>
>> </data>
>> </cell>
>> <cell id="44">
>> <data id="45">
>> <property name="resultSetColumn">CONTACTFIRSTNAME</property>
>> </data>
>> </cell>
>> <cell id="46">
>> <data id="47">
>> <property name="resultSetColumn">PHONE</property>
>> </data>
>> </cell>
>> <cell id="48">
>> <data id="49">
>> <property name="resultSetColumn">ADDRESSLINE1</property>
>> </data>
>> </cell>
>> <cell id="50">
>> <data id="51">
>> <property name="resultSetColumn">ADDRESSLINE2</property>
>> </data>
>> </cell>
>> <cell id="52">
>> <data id="53">
>> <property name="resultSetColumn">CITY</property>
>> </data>
>> </cell>
>> <cell id="54">
>> <data id="55">
>> <property name="resultSetColumn">STATE</property>
>> </data>
>> </cell>
>> <cell id="56">
>> <data id="57">
>> <property name="resultSetColumn">POSTALCODE</property>
>> </data>
>> </cell>
>> <cell id="58">
>> <data id="59">
>> <property name="resultSetColumn">COUNTRY</property>
>> </data>
>> </cell>
>> <cell id="60">
>> <data id="61">
>> <property name="resultSetColumn">SALESREPEMPLOYEENUMBER</property>
>> </data>
>> </cell>
>> <cell id="62">
>> <data id="63">
>> <property name="resultSetColumn">CREDITLIMIT</property>
>> </data>
>> </cell>
>> </row>
>> </detail>
>> <footer>
>> <row id="64">
>> <cell id="65"/>
>> <cell id="66"/>
>> <cell id="67"/>
>> <cell id="68"/>
>> <cell id="69"/>
>> <cell id="70"/>
>> <cell id="71"/>
>> <cell id="72"/>
>> <cell id="73"/>
>> <cell id="74"/>
>> <cell id="75"/>
>> <cell id="76"/>
>> <cell id="77"/>
>> </row>
>> </footer>
>> </table>
>> </body>
>> </report>
>>
>
|
|
|
|
Re: CSS Padding Ignored [message #632978 is a reply to message #632918] |
Thu, 14 October 2010 21:04 |
|
Jason:
The derby test report worked correctly in 2.5.2 but did not recognize the padding in 2.6.0.
I'll see if I can figure out how to word the Bugzilla entry tonight. Also, I tested in 2.5.2 applying the table-test style to the detail row; I need to go back and remove that application and then see whether the padding entries int the "table" style are recognized.
Richard
|
|
|
Re: CSS Padding Ignored [message #632981 is a reply to message #632918] |
Thu, 14 October 2010 21:13 |
|
Okay, if I remove the table-test style from the detail row, the padding defined in the CSS file for the .table element is not recognized. If I define .table-detail in the CSS file and add padding elements, those are also not recognized.
|
|
|
|
|
|
Re: CSS Padding Ignored [message #633252 is a reply to message #632918] |
Fri, 15 October 2010 21:08 |
|
BUGZILLA entry 327957 has now been entered.
I've narrowed down the focus. Padding in the .table element is not propagated to any of the table elements. However, padding in the .table-design element is recognized in HTML output but not in PDF output.
|
|
|
Re: CSS Padding Ignored [message #633617 is a reply to message #633252] |
Mon, 18 October 2010 14:46 |
|
Richard,
Thanks for posting this.
Jason
On 10/15/2010 5:08 PM, Richard A. Polunsky wrote:
> BUGZILLA entry 327957 has now been entered.
> I've narrowed down the focus. Padding in the .table element is not
> propagated to any of the table elements. However, padding in the
> .table-design element is recognized in HTML output but not in PDF output.
>
|
|
|
Powered by
FUDForum. Page generated in 0.06093 seconds