BookmarkSubscribeRSS Feed
SørenJessen
Calcite | Level 5

Hi

I'm changing from ODS MARKUP to ODS EXCEL because I need to produce a native XLSX file.

 

I'm now trying to insert an image and a title on the right side of the image in my report, but I can only get the title directly on the image or below the image.

 

Does anyone have an alternative solution to insert an image (and the title on the right side of the image) when you use ODS EXCEL?

 

Best regards Søren (using SAS 9.4 M3)

goptions reset=all device=PNG;

ods _all_ close;

ods excel file='c:\temp\ODS EXCEL and images.xlsx'

options(sheet_interval='none'

embedded_titles="yes");

goptions imagestyle=fit

iback='http://www.sas.com/content/sascom/en_us/events/premier-business-leadership-series/premier-business-l...'

xmax=5in ymax=1.5in name='text';

proc gslide;

title 'Title from proc gslide';

run; quit;

title 'Title after proc gslide';

proc print data=sashelp.class;

run;

ods _all_ close;

3 REPLIES 3
Amazigh
Fluorite | Level 6

Hi,

 

According to Chevel Parker, you cannot insert an image directly with ODS EXCEL. You have to post process.

 

" Currently, the destination enables you to add an image only to the background of the
worksheet. It does not support images on a per cell basis (as is possible using the PREIMAGE= and
POSTIMAGE= attributes in other ODS destinations). "
 
 
 
Amazigh.
rogerjdeangelis
Barite | Level 11

OT: Off topic because it uses a combination of R and SAS and requires 'full' SAS(SAS command pipe)

 

see

https://listserv.uga.edu/cgi-bin/wa?A2=SAS-L;d17d6f92.1608a

RJB_NZ
Obsidian | Level 7

 I would like to see the combination of R and SAS solution, but the link doesn't work, and there's not enough information about how to find it on the Georgia University website (if it's still there...) 

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
  • 3 replies
  • 6440 views
  • 1 like
  • 4 in conversation