| Date: | Mon, 31 Jan 2005 19:47:06 -0000 |
| Reply-To: | John Kirkpatrick <news@NOSPAM.ISC-LTD.CO.UK> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | John Kirkpatrick <news@NOSPAM.ISC-LTD.CO.UK> |
| Subject: | Re: Leading blanks in ODS RTF |
|---|
Daniel,
Setting the ASIS style attribute may do the trick, but if you're using a
proportional font, it may not give the results you expect.
A better option would be to turn protectspecialchars off and then to emit
the RTF code for a tab a few millimetres in from the left margin. Something
like (untested) \tx144\tab should do the trick. (\tx<n> defines the tab
stop at <x> twips from the right hand margin - there are 1440 twips to the
inch - and \tab emits the actual tab.
You can either add the rtf control codes to your character variable or, if
you're using proc report, use the pretext style attribute to add the
necessary code automatically. If you need to dynamically change the amount
of indentation, you cans et the style attribue in a compute block for the
variable you're printing.
HTH,
John
"Daniel Boisvert" <djboisvert@HOTMAIL.COM> wrote in message
news:200501271905.j0RJ5jYf005982@listserv.cc.uga.edu...
> Dear anyone,
>
> I'm new to ODS so I will eventually have many questions but for now I will
> start out with a (hopefully) easy one.
>
> I need to produce a report that looks like:
>
> (note the indentation)
> Category
> subcategory
> subcategory
>
> After printing the data with PROC REPORT my table looks exactly as I want
> it. But when I output it with ODS RTF everything is LEFT justified.
>
> Is there a way to keep the indentation?
>
> Thanks,
> Dan
|