Page 1 of 1

PDFDocumentService Prevent Column Text Wrapping

Posted: Wed Aug 02, 2017 7:32 am
by jyoung
Is there anyway to prevent the column text from wrapping in the PDFDocumentService?

For example I have this table defined

Code: Select all

    <table x1="10" y1="770" width="575" style="normal" alternate="false">
      <column field="STD_TEXTL" width-percentage="20" horizontal-align="left" title="Name" />
      <column field="wk_PercentChange" horizontal-align="left" title="% Chg" />
      <column field="wk_PercentOfSales" horizontal-align="left" title="% Sales" />
      <column field="wk_PercentOfGrossMargin" horizontal-align="left" title="% GM" />
      <column field="wk_TotalSales" horizontal-align="left" title="Tot. Sales" />
      <column field="wk_GrossMarginPercent" horizontal-align="left" title="GM %" />
      <column field="wk_GrossMarginPerHour" horizontal-align="left" title="GM / HR" />
      <column field="wk_GrossMargin" horizontal-align="left" title="GM" />
      <column field="wk_TotalHoursWorked" horizontal-align="left" title="Tot. Hrs." />
      <column field="wk_AverageHoursWorked" horizontal-align="left" title="Avg. Hrs." />
    </table>
And the output looks like
Capture.PNG
Capture.PNG (8.11 KiB) Viewed 2883 times
I need to do some paging and the wrapped lines through off the line counts so that I know when I need to add a page.

I've tried adding a smaller field and playing with the width-percentage but it always wraps.

Re: PDFDocumentService Prevent Column Text Wrapping

Posted: Thu Aug 03, 2017 3:21 am
by jyoung
Come to find out, my fields where still to big after I pushed them into smaller fields.

Pushing the field into a smaller length(20) worked ok.