We have been using the MSOFFICE2K tagset to generate and stream .xls files with _WEBOUT in a stored process. Although we received the dialog box warning that the format of the file is not as expected our users were okay with responding Yes.
However, after the most recent Microsoft Office 2013 updates were applied to all of our computers this doesn't work anymore. Excel does open when we select to open the file but all we get is a blank gray screen.
We are on SAS 9.4 M2 so ODS EXCEL is not fully supported. Any suggestions as to what may be happening after this update from Microsoft?
data _null_;
rc = stpsrv_header('Content-type','application/vnd.ms-excel');
rc = stpsrv_header('Content-disposition','attachment; filename=Dept_list_courses.xls');
run;
ODS LISTING CLOSE;
ODS tagsets.msoffice2k BODY=_webout style=seaside;
-proc report code follows-
1. Check your Trust Center settings
2. Try downloading a file and opening from within Excel - this isn't workable long term but if you get a warning or note it may help diagnose the problem
1. Check your Trust Center settings
2. Try downloading a file and opening from within Excel - this isn't workable long term but if you get a warning or note it may help diagnose the problem
I compared the Trust Center settings to those on a computer that does not have the update applied and they are the same.
I am able to save the file from the web, instead of open, and then open it successfully in Excel. Some users have said that it didn't work for them, however. This solution will work temporarily until we can upgrade to SAS 9.4 M3.
Thanks so much for your suggestions.
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!
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.