BookmarkSubscribeRSS Feed
mdavidson
Quartz | Level 8
Is it possible to insert a logo into an excel file that is created via SAS?

I know you can insert a logo with proc report and ODS PDF with preimage=*, but I have not had any success with logos and excel files.

If it is not possible to insert a logo into an excel file, what is the generally accecpted workaround?
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
If you are using ODS TAGSETS.EXCELXP it is not possible to insert a logo into a SAS-created file. For TAGSETS.EXCELXP it is because, by Microsoft design, Spreadsheet Markup Language does not support the inclusion of graphic images. For the TAGSETS.EXCELXP created file, you probably can insert an image after you open the file, but only if you save it as some file type other than XML.

With ODS methods, like ODS CSV, or ODS HTML or ODS TAGSETS.EXCELXP, you are just creating text files that Excel knows how to open and render.Your other alternative (to CSV or ExcelXP) is to use ODS HTML or ODS MSOFFICE2K and create an HTML file that Excel knows how to render. Excel may be more accepting of graphic images that are defined HTML <IMG> tags.

It really depends on how you are creating your file. The only part of SAS that creates a "true binary" .XLS file is PROC EXPORT (I'm not counting DDE methods here). Again, with a PROC EXPORT-created file, SAS would not even have the syntax to put an image into the Excel file because PROC EXPORT is all about getting the SAS data into Excel format.

cynthia

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1 reply
  • 1418 views
  • 0 likes
  • 2 in conversation