BookmarkSubscribeRSS Feed
dostiep
Calcite | Level 5

Hi all,

 

I'm using TAGSETS.RTF_SAMPLE combined with a slightly modified style that has as parent STYLES.PRINTER. For some reason I can't explain, I end up with a large space between the last row of my table and the first footnote (see attached picture).

 

I have the PARSKIP fontsize set to 1pt and it works fine to remove the space between the titles and the headers of my table. But I simply can't figure out how I can remove the extra space between the last row of my table and the footnotes.

 

Any idea? I'm sure it must be a style element that needs to be updated but which one.

 

Thanks

 

Pierre

5 REPLIES 5
ballardw
Super User

Share at least the code you are using to generate the document. ODS options and the proc that generates the output.

 

Since your "docx" has a picture and is not an actual rtf document to begin with then it is impossible to tell what was actually placed in the document.

 

You may want to investigate the tagset option VSPACE='OFF' if the footnotes are not appearing in the footer section of a page.

dostiep
Calcite | Level 5

This is the SAS code I use to modify the STYLES.PRINTER:

 

proc template;

define style styles.testrtf / store=work.templat;

parent = styles.printer;

style Container /

backgroundcolor = white

bordercolor = black

color = black

 

protectspecialchars = off

asis = on;

style Document from Container;

style Body from Container /

leftmargin = 0pt

rightmargin = 0pt

topmargin = 0pt

bottommargin = 0pt;

style Output from Container /

outputwidth = 100%

frame = hsides;

style parskip / fontsize = 1pt;

style SystemTitle from TitlesAndFooters /

font = ("Courier New",9pt)

 

vjust = B;

style SystemFooter from TitlesAndFooters /

font = ("Courier New",9pt);

style Byline from BylineContainer /

font = ("Courier New",9pt)

textalign = L;

style table from output /

cellpadding = 0.5pt

borderwidth = 0.25pt

rules = groups;

style header from header /

borderwidth = 0.25pt

frame = below

rules = groups;

style rowheader from rowheader /

rules = rows

frame = below;

style Cell from Container /

rules = NONE;

style HeadersAndFooters from Cell /

font = ("Courier New",9pt)

textalign = C

 

vjust = B;

style Data from Cell /

font = ("Courier New",9pt)

textalign = L

 

vjust = T;

style NoteContent from Cell /

font = ("Courier New",9pt)

textalign = L

 

vjust = T;

end;

run;

 

And this is the code I use to assign the style I created to my new tagset that has as parent RTF_SAMPLE.

 

proc template;

measured;

define tagset tagsets.testrtf / store=work.templat;

parent = tagsets.rtf_sample;

 

uniform = yes;

default_style="styles.testrtf";

 

Finally, the ODS stattement I use before my PROC REPORT:

 

ods tagsets.testrtf options (CONTINUE_TAG="off" vspace="no") pagepanels=1 file="&_file." newfile=none;

 

Thanks

ballardw
Super User

Do the FOOTNOTES appear in the FOOTER of the RTF document?

dostiep
Calcite | Level 5
Yes they do, that's the point of using RTF_SAMPLE rather than RTF tagset.
ballardw
Super User

@dostiep wrote:
Yes they do, that's the point of using RTF_SAMPLE rather than RTF tagset.

If you are intentionally placing the footnotes into the footer area of a document then have intentionally placed them so that space will occur between the table and the footnote except in the rare case when a table ends just above the footer area.

 

If you want the text to appear closer to the table you may actually want something like ODS TEXT, Proc Odstext or Odslist but those won't repeat if that is the reason you are placing things into the footer.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 2238 views
  • 0 likes
  • 2 in conversation