BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
SuryaKiran
Meteorite | Level 14

Hi,

 

ODS Excel is becoming more commonly used destination for generating native XLSX file. Although there are some bugs, SAS team is working to improve its advantages. I was able to successfully embed image  into a sheet before my report. But I was not able to control the space between my image and report. absolute_row_height is applied after the image and not from starting row.

 

proc template; 
define style styles.background_logo;
parent=styles.Excel;
style header/ 
	fontsize=11pt
	backgroundcolor=cornflowerblue;
end;
run;

title;
footnote;
ods _all_ close;
goptions device=actximg;
ods excel file=xl_out;
ods excel options (	sheet_interval='none' 
					sheet_name="Cover Sheet" 
					start_at="2,2" 
) style=background_logo;

goptions iback="/usr/asmile.jpg"  vsize=2in hsize=2in;	;
proc gslide border;
run;
proc print data=sashelp.class;
run;
ods excel close;

 

 

image.png

 

 

I also tried couple of other options mentioned here Tips for Using the ODS Excel Destination, but this servers me well for my report except that space between.

 

 Using SAS 9.4 M4

Thanks,
Suryakiran
1 ACCEPTED SOLUTION

Accepted Solutions
SuryaKiran
Meteorite | Level 14

I opened track with SAS Technical Support and got response on this. Unfortunately this did not have solution for the current versions of SAS and hope it will be fixed in future releases. 

 

 

Thanks,
Suryakiran

View solution in original post

4 REPLIES 4
SuryaKiran
Meteorite | Level 14

@Cynthia_sas, I know your good at these, any help is appreciated. 

 

 

Thanks,
Suryakiran
Cynthia_sas
Diamond | Level 26
Hi: I'm not sure the GSLIDE approach will give you the control you want. Take a look at this paper https://support.sas.com/resources/papers/proceedings16/SAS5642-2016.pdf at the approach that starts on page 3. There is a macro program that the paper author is using that allows you to post-process the XLSX file and insert images into specific locations. That might give you the type of control you're looking for. Otherwise, I'd recommend opening a track with Tech Support.

Cynthia
SuryaKiran
Meteorite | Level 14

Thanks, Unfortunately that approach will not work for me since I'm on Linux operating system and can't run x-commands or VB Script. I will open track with SAS Tech support and see what I come up with. 

Thanks,
Suryakiran
SuryaKiran
Meteorite | Level 14

I opened track with SAS Technical Support and got response on this. Unfortunately this did not have solution for the current versions of SAS and hope it will be fixed in future releases. 

 

 

Thanks,
Suryakiran

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 2432 views
  • 0 likes
  • 2 in conversation