***SPAM*** ggf. gleich loeschen JRu :-) AW: Re: ***SPAM*** ggf. gleich loeschen JRu :-) AW: Re: XSLFO Problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

***SPAM*** ggf. gleich loeschen JRu :-) AW: Re: ***SPAM*** ggf. gleich loeschen JRu :-) AW: Re: XSLFO Problem

Dimitri Unruh-2
i guess you need also a fo:block in every table cell

Dimitri




Lynx-Consulting AG
Johanniskirchplatz 6
D-33615 Bielefeld
fon +49 521 52470
fax +49 521 5247250
www.lynx.de


----- Original Message -----
From: "Midhat Ali" [[hidden email]]
Sent: 29.07.2006 13:14
To: [hidden email]
Subject: Re: ***SPAM*** ggf. gleich loeschen JRu :-) AW: Re: XSLFO Problem

Okay i changed the table to



text before table
      <fo:table>
      <fo:table-column column-width="1in"/>
       <fo:table-column column-width="1in"/>
        <fo:table-column column-width="1in"/>
        <fo:table-column column-width="1in"/>
        <fo:table-column column-width="1in"/>
        <fo:table-column column-width="1in"/>
        <fo:table-column column-width="1in"/>
      <fo:table-header>
          <fo:table-row>
          <fo:table-cell>col 1${uiLabelMap.ManufacturingProductLevel
}</fo:table-cell>
          <fo:table-cell>${uiLabelMap.ProductProductId}</fo:table-cell>
          <fo:table-cell>---</fo:table-cell>
          <fo:table-cell>${uiLabelMap.ProductProductName}</fo:table-cell>
          <fo:table-cell>${uiLabelMap.CommonQuantity}</fo:table-cell>
          <fo:table-cell>${uiLabelMap.ManufacturingComponentCost
}</fo:table-cell>
          <fo:table-cell>${uiLabelMap.ManufacturingComponentValue
}</fo:table-cell>
        </fo:table-row>
      </fo:table-header>
      <fo:table-body>
          <fo:table-row>
          <fo:table-cell>col 1${uiLabelMap.ManufacturingProductLevel
}</fo:table-cell>
          <fo:table-cell>${uiLabelMap.ProductProductId}</fo:table-cell>
          <fo:table-cell>---</fo:table-cell>
          <fo:table-cell>${uiLabelMap.ProductProductName}</fo:table-cell>
          <fo:table-cell>${uiLabelMap.CommonQuantity}</fo:table-cell>
          <fo:table-cell>${uiLabelMap.ManufacturingComponentCost
}</fo:table-cell>
          <fo:table-cell>${uiLabelMap.ManufacturingComponentValue
}</fo:table-cell>
        </fo:table-row>
      </fo:table-body>

      </fo:table>
      text after table





but it stil doesnt render the table. only the text before and after the
table is printed

On 7/29/06, Dimitri Unruh <[hidden email]> wrote:

>
> you need a fo:table-header tag
>
>
>
>
> Lynx-Consulting AG
> Johanniskirchplatz 6
> D-33615 Bielefeld
> fon +49 521 52470
> fax +49 521 5247250
> www.lynx.de
>
>
> ----- Original Message -----
> From: "Midhat Ali" [[hidden email]]
> Sent: 29.07.2006 11:38
> To: [hidden email]
> Subject: Re: XSLFO Problem
>
> theres no eror. The file renders (thats why i included the "sample text"
> in
> the file). it just doesnt show the table headers
>
> On 7/29/06, Jacopo Cappellato <[hidden email]> wrote:
> >
> > Have a look at the error log (framework/logs/ofbiz.log): you should find
> > there the reason of this problem.
> > If you cannot find it, please zip the file and send it to me so that I
> > can have a look
> >
> > Jacopo
> >
> >
> > Midhat Ali wrote:
> > > Hi Jacopo
> > >
> > > i did as you said. it still doesnt work
> > >
> > > On 7/29/06, Jacopo Cappellato <[hidden email]> wrote:
> > >>
> > >> Hi Midhat,
> > >>
> > >> I think that the problem is that in a table definition, the number of
> > >> table headers and fields in each row must be the same.
> > >> To make a quick test you can try to remove the lines between my two
> > >> comments below:
> > >>
> > >>
> > >> Midhat Ali wrote:
> > >> > I am trying to make a PDF report for the BOM. I converted a segment
> > of
> > >> > BomSimulation.ftl to BimSimulation.fo.ftl. heres the file
> > >> >
> > >> > <?xml version="1.0" encoding="UTF-8"?>
> > >> >  <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> > >> >   <fo:layout-master-set>
> > >> >
> > >> >   <fo:simple-page-master
> > >> >   margin-right="15mm" margin-left="15mm"
> > >> >   margin-bottom="15mm" margin-top="15mm"
> > >> >   page-width="210mm" page-height="297mm"
> > >> >   master-name="bookpage">
> > >> >   <fo:region-body region-name="bookpage-body"
> > >> >
> > >> >   margin-bottom="5mm" margin-top="5mm" />
> > >> >   </fo:simple-page-master>
> > >> >   </fo:layout-master-set>
> > >> >   <fo:page-sequence master-reference="bookpage">
> > >> >   <fo:title>Hello world example</fo:title>
> > >> >
> > >> >   <fo:flow flow-name="bookpage-body">
> > >> >   <fo:block>
> > >> >
> > >> > <#-- <#if requestParameters.lookupFlag?default("N") == "Y"> -->
> > >> >
> > >> >
> > >> > sample text
> > >> >
> > >> >      <fo:table>
> > >> >      <fo:table-column column-width="1in"/>
> > >> >       <fo:table-column column-width="1in"/>
> > >> >        <fo:table-column column-width="1in"/>
> > >> >        <fo:table-column column-width="1in"/>
> > >> >        <fo:table-column column-width="1in"/>
> > >> >        <fo:table-column column-width="1in"/>
> > >> >        <fo:table-column column-width="1in"/>
> > >> >      <fo:table-body>
> > >> >
> > >> >        <fo:table-row>
> > >> >          <fo:table-cell>col 1${uiLabelMap.ManufacturingProductLevel
> > >> > }</fo:table-cell>
> > >> >          <fo:table-cell>${uiLabelMap.ProductProductId
> > }</fo:table-cell>
> > >> >          <fo:table-cell>---</fo:table-cell>
> > >> >
> > >> <fo:table-cell>${uiLabelMap.ProductProductName}</fo:table-cell>
> > >> >          <fo:table-cell>${uiLabelMap.CommonQuantity
> }</fo:table-cell>
> > >> >          <fo:table-cell>${uiLabelMap.ManufacturingComponentCost
> > >> > }</fo:table-cell>
> > >> >          <fo:table-cell>${uiLabelMap.ManufacturingComponentValue
> > >> > }</fo:table-cell>
> > >> >        </fo:table-row>
> > >>
> > >> REMOVE FROM HERE
> > >>
> > >> >        <fo:table-row>
> > >> >          <fo:table-cell></fo:table-cell>
> > >> >        </fo:table-row>
> > >> >        <#if tree?has_content>
> > >> >          <#assign rowClass = "viewManyTR2">
> > >> >          <#list tree as node>
> > >> >            <#-- toggle the row color -->
> > >> >            <#if rowClass == "viewManyTR2">
> > >> >              <#assign rowClass = "viewManyTR1">
> > >> >            <#else>
> > >> >              <#assign rowClass = "viewManyTR2">
> > >> >            </#if>
> > >> >          </#list>
> > >> >        <#else>
> > >> >          <fo:table-row>
> > >> >            <fo:table-cell>${uiLabelMap.CommonNoElementFound
> > >> > }.</fo:table-cell>
> > >> >          </fo:table-row>
> > >> >        </#if>
> > >>
> > >> TO HERE
> > >>
> > >>
> > >> >      </fo:table-body>
> > >> >      </fo:table>
> > >> >
> > >> > <#-- </#if> -->
> > >> >
> > >> > </fo:block>
> > >> >   </fo:flow>
> > >> >   </fo:page-sequence>
> > >> >
> > >> >  </fo:root>
> > >> >
> > >> > It just prints the text before table
> > >> > "sample text"
> > >> > but does not print even the tabl headers. Please help
> > >> >
> > >>
> > >> Does it works?
> > >>
> > >> Jacopo
> > >>
> > >
> >
> >
>
>