diff --git a/org.adempiere.base/src/org/compiere/print/ReportEngine.java b/org.adempiere.base/src/org/compiere/print/ReportEngine.java index 73f7cc0f6f..ebec1e8a73 100644 --- a/org.adempiere.base/src/org/compiere/print/ReportEngine.java +++ b/org.adempiere.base/src/org/compiere/print/ReportEngine.java @@ -687,8 +687,20 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount) if (doc != null) { - appendInlineCss(doc); + //IDEMPIERE-4113 mapCssInfo.clear(); + MPrintFormatItem item = null; + int printColIndex = -1; + for(int col = 0; col < m_printFormat.getItemCount(); col++) + { + item = m_printFormat.getItem(col); + if(item.isPrinted()) + { + printColIndex++; + addCssInfo(item, printColIndex); + } + }//IDEMPIERE-4113 + appendInlineCss(doc); StringBuilder styleBuild = new StringBuilder(); MPrintTableFormat tf = m_printFormat.getTableFormat(); @@ -920,11 +932,7 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount) td.setClass(cssPrefix + "-date"); else td.setClass(cssPrefix + "-text"); - } - //just run with on record - if (row == 0) - addCssInfo(item, printColIndex); - + } } else if (obj instanceof PrintData) {