BookmarkSubscribeRSS Feed
LB
Quartz | Level 8 LB
Quartz | Level 8

Hello all;

I am looking for some guidance on using background images for a report cover-

Essentially there is a mandated image but then I want to add about 3 spaced lines with text and images that are linked to other pages in the report.

If anyone has any guidance to any SUGI papers or others that might have some ideas that would be great.

If I attempt to set the image as a background image now, it simply shrinks it..code thus far..

I know that I can embed the image in a proc template statement but I only need it for the first page.

Thanks.

Lawrence

ods escapechar="\";

ods listing gpath="P:\" ;

ods graphics on/reset=all antialias=on width=9in height=5in border=no

;

options  nodate nonumber center leftmargin=.25in rightmargin=.25in topmargin=.05in bottommargin=.15in

orientation=landscape;

ods pdf file='P:\Report.pdf'  style=Styles.XCL dpi=300;

ods pdf text="\S={topmargin=1in leftmargin=1in backgroundimage='T:\Hospital Reporting Team\Inp Quality Analytic Team\HA-CDI\HA-CDI Dashboard\TEMPLATE\dashboardheader.bmp'}";

ods

run;

ods pdf close;

5 REPLIES 5
Cynthia_sas
Diamond | Level 26

Hi:

  You might want to look at some of the ODS LAYOUT examples, such as the one with a cover page in this paper:

http://support.sas.com/resources/papers/proceedings09/043-2009.pdf

cynthia

LB
Quartz | Level 8 LB
Quartz | Level 8

Many Thanks!

Lawrence

LB
Quartz | Level 8 LB
Quartz | Level 8

OK Cynthia-It was a good start and it helped me enough to get to where I want to go but I have a curious issue with a phantom issue-

I essentially have a report that makes use of a ODS PDF text statement-

ods  text="\S={leftmargin=1.5in preimage='T:\Hospital Reporting Team\Inp Quality Analytic Team\HA-CDI\HA-CDI Dashboard\TEMPLATE\LOGO.bmp'  font_size=7 font_weight=bold} Hospital-Associated xxx Infection";

It works after the cover page, or the 2nd page of the report, but then when I run the statement it seems to be attaching a whole another image that is for the cover page? I am stumped.

I realize that you probably need the code but I'd rather do that off-line.

Lawrence

It works properly on the 2nd page of the report, after the cover page, but then

Cynthia_sas
Diamond | Level 26

Hi:

  This is really the kind of thing that you need to work with Tech Support. If there are issues that are due to the image and PDF, then Tech Support can test everything and involve the developers if they need to.

cynthia

LB
Quartz | Level 8 LB
Quartz | Level 8

Cynthia- Duly noted. Thanks.

Lawrence

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore 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
  • 5 replies
  • 3457 views
  • 0 likes
  • 2 in conversation