The SAS Output Delivery System and reporting techniques

Text formatting using ODS Layout

Reply
N/A
Posts: 0

Text formatting using ODS Layout

Hi,

Does anyone have any ideas on how to underline text using ODS layout (obj.format_text(text: "blah blah") etc).

I've tried a variety of things ( such as using ODS escape char and appending "~S={text_decoration=underline}" to the text) without success.

Any help/guidance would be appreciated.
SAS Super FREQ
Posts: 8,744

Re: Text formatting using ODS Layout

Hi:
It looks from this site like text decoration is not production until 9.2 for PDF.
http://support.sas.com/rnd/base/topics/new92/92pdf.html

For RTF, you may be able to use RTF control strings in 9.1.3. Tech Support is probably your best bet for help with this. I believe ODS LAYOUT is experimental right now, as well.

cynthia
N/A
Posts: 0

Re: Text formatting using ODS Layout

Hi Cynthia,

Thanks for the response - I'll try Tech Support but other than that looks like I'll have to wait for 9.2.
Contributor
Posts: 30

Re: Text formatting using ODS Layout

Hi

If you are using RTF then you can attach this "\brdrb\brdrs\brdrw15" to your text.

I am not sure about other ODS destination. I have not tried them out but my belief is that
it should be the same principal because all you do is just attach some instruction to your text for rendering. You just need to find the control words for the ODS destinations and the syntax for it. Love to know if this work for other ODS destination as well.



Duong
SAS Super FREQ
Posts: 8,744

Re: Text formatting using ODS Layout

Hi,
Only Markup Language destinations have tags or dot commands that you can change. ODS Markup includes (but is not limited to) HTML, WML, TROFF, LaTex, Pyx, XML, etc.

The RTF destination will allow you to insert RTF control strings IF you know the correct ones, but even then, sometimes you cannot get to the right place to insert the control string in the current method of creating RTF output files. The PDF destination produces a proprietary (to Adobe) format file and there are not any "control" strings available for PDF the way there are for HTML or RTF.

When "measured" RTF comes down the road in SAS 9.2, things will improve in this regard.
Ask a Question
Discussion stats
  • 4 replies
  • 168 views
  • 0 likes
  • 3 in conversation