Help using Base SAS procedures

Insert 2 images in a title in proc report

Accepted Solution Solved
Reply
New Contributor
Posts: 3
Accepted Solution

Insert 2 images in a title in proc report

I need to get one image in each of the top corners of a pdf.  I thought I could do this by putting both images in a title with spaces in between but it doesn't work.  I can get either of these images to print individually, but when I use both, only the first prints.  The second image is ignored but I don't get an error message.  This is my code:

 

ods escapechar='^';

ods pdf close;

ods pdf file = 'c\sed\NYSAA ELA Grade 3 teacher report 2016.pdf' notoc;

proc report data=NYSAA_2016_Grade3_ela_elements style(header)=[background=white] bypageno=1;

<more statements>

title1 '^S={preimage="c\sed\nysed-logo-text.png"}        ^S={preimage="c\sed\dlm_logo_final_registered.jpg"}';

run;

 

Thanks.


Accepted Solutions
Solution
‎09-08-2016 09:19 AM
Super User
Posts: 10,521

Re: Insert 2 images in a title in proc report

Did you try PostImage for the second?

I don't do much with the image insertions but I would thing that Preimage is in one "location" and Postimage in another.

 

Also you might want to consider some justification code to justify the first into left and the second as right.

View solution in original post


All Replies
Solution
‎09-08-2016 09:19 AM
Super User
Posts: 10,521

Re: Insert 2 images in a title in proc report

Did you try PostImage for the second?

I don't do much with the image insertions but I would thing that Preimage is in one "location" and Postimage in another.

 

Also you might want to consider some justification code to justify the first into left and the second as right.

New Contributor
Posts: 3

Re: Insert 2 images in a title in proc report

Thanks.  This worked.

Super User
Posts: 9,687

Re: Insert 2 images in a title in proc report

You should post it at ODS Report forum. 



ods pdf file='/folders/myfolders/x.pdf' style=sasweb;
ods escapechar='~';
title j=l '~S={preimage="/folders/myfolders/x.png" color=white} x'
      j=r '~S={postimage="/folders/myfolders/x.png" color=white} y';
proc print data=sashelp.class;run;
ods pdf close;

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 643 views
  • 0 likes
  • 3 in conversation