The SAS Output Delivery System and reporting techniques

Report cover in ODS using a background image

Reply
Frequent Contributor
Frequent Contributor
Posts: 133

Report cover in ODS using a background image

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;

SAS Super FREQ
Posts: 8,743

Re: Report cover in ODS using a background image

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

Frequent Contributor
Frequent Contributor
Posts: 133

Re: Report cover in ODS using a background image

Many Thanks!

Lawrence

Frequent Contributor
Frequent Contributor
Posts: 133

Re: Report cover in ODS using a background image

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

SAS Super FREQ
Posts: 8,743

Re: Report cover in ODS using a background image

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

Frequent Contributor
Frequent Contributor
Posts: 133

Re: Report cover in ODS using a background image

Cynthia- Duly noted. Thanks.

Lawrence

Ask a Question
Discussion stats
  • 5 replies
  • 281 views
  • 0 likes
  • 2 in conversation