BookmarkSubscribeRSS Feed
deleted_user
Not applicable
When using the following syntax in my proc report code, the output window displays the logo but not the excel spreadsheet specified in the ods tagsets.excelxp options:


style(report)={preimage="X:\Company_Logo.jpg"}

I also tried invoking the image through a title statement (since I'd like the logo at the top of the worksheet) but that did not work either.

Remedy?
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
By Microsoft design, graphic images are not supported in Excel 2003 XML Spreadsheet Markup Language. Since this is the form of the output written by ODS TAGSETS.EXCELXP (Excel 2003 XML), that means that other ODS destinations, like ODS HTML, ODS RTF, ODS PDF will show preimage graphics, but ODS TAGSETS.EXCELXP output will not use the PREIMAGE file. In fact, if you had tried PROC GPLOT, inside your TAGSETS.EXCELXP "sandwich", then you would have seen this note in the SAS log:
[pre]

Excel XML does not support output from Proc:Gplot
Output will not be created.

[/pre]

cynthia
deleted_user
Not applicable
Perhaps in the next sas release the preimage syntax can generate a similar warning so I don't waste 4 hours scouring around google for an answer.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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