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
SAS Super FREQ

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
SAS Super FREQ

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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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
  • 1695 views
  • 0 likes
  • 2 in conversation