PDFDocumentService Prevent Column Text Wrapping

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
jyoung
Posts: 694
Joined: Thu Jan 21, 2016 6:43 am
Location: Oklahoma City, OK USA

PDFDocumentService Prevent Column Text Wrapping

Post 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 2881 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.
jyoung
Posts: 694
Joined: Thu Jan 21, 2016 6:43 am
Location: Oklahoma City, OK USA

Re: PDFDocumentService Prevent Column Text Wrapping

Post 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.
Post Reply