BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
cov_derek
Fluorite | Level 6

,I am using PROC TEMPLATE to create a style, and include a simple background JPG graphic designed to fill the page. Here's the code:

 

proc template;

define style safetyslides ; parent=Styles.rtf;

style Body from Document / leftmargin=.25in rightmargin= .25in topmargin=.25in bottommargin=24pt

height=8.5in width=11in backgroundimage="C:\backgrounds\background1.jpg";

style systemtitle / just=center foreground=black font_face=arial font_size=24pt font_weight=bold;

style systemfooter / just=right foreground=black font_face=arial font_size=12pt ;

style table / cellpadding=3pt cellspacing=2pt bordercolor=black borderwidth=2pt width=684pt;

style header / background=white foreground=black font_weight=bold font_size=20pt just=center font_face=arial;

style rowheader / font_size=20pt font_face=arial;

style colheader / font_size=20pt foreground=black just=center font_weight=bold font_face=arial;

style data / foreground=black just=left font_face=arial font_size=20pt vjust=bottom;

end;

No matter what I do, the background is still white. I tried scaling the background jpg using MS picture editor to 150dpi (from a SAS Tech Note), but that did not seem to work. Should I try to create the graphic so that it is 8.5x11 to fill the page? I'm at a loss here. I am using RTF, not TAGSETS.RTF as my ODS destination.

Thanks,

Derek

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

My online documentation, SAS 9.2.3, for BACKGROUNDIMAGE doesn't indicate support for RTF or measured RTF, only markup, PCL and PS destinations.

View solution in original post

2 REPLIES 2
ballardw
Super User

My online documentation, SAS 9.2.3, for BACKGROUNDIMAGE doesn't indicate support for RTF or measured RTF, only markup, PCL and PS destinations.

cov_derek
Fluorite | Level 6

Well that would certainly explain it. Guess I would have to add any background to the RTF file in Word.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1704 views
  • 0 likes
  • 2 in conversation