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

Hi,

This morning I managed to have a background without duplicates but now the image repeats although backgroundrepeat is set to no_repeat.

I'm not sure what I changed that would lead to this unexpected result.

 

proc template; 
    define style styles.xxlogo;
    parent=styles.excel;
        class body / backgroundcolor =_undef_ 
                     backgroundimage ="&xxtraining./images/bear.png"
                     backgroundrepeat=no_repeat;
    end;
run;

ods excel file="&xxtraining./reporting/test.xlsx"
          style=styles.xxlogo
          options(start_at='2,2');

proc print data=sashelp.class;
run;

ods excel close;

repeat.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ
Hi:
I am not sure about the BACKGROUNDREPEAT option and whether it works in ODS EXCEL. According to the documentation, https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p1pt77toue3iyun0z4l9gth5as9f.htm -- the BACKGROUNDIMAGE option is supported by ODS EXCEL, but BACKGROUNDREPEAT is only supported by Markup destinations and PowerPoint destinations. So this may be a question for Tech Support.
Cynthia

View solution in original post

2 REPLIES 2
Ksharp
Super User

No you can't . But you can make a white picture as big as enough and at north-west corner put your LOGO in .

Or @Cynthia_sas  know the solution.

Cynthia_sas
SAS Super FREQ
Hi:
I am not sure about the BACKGROUNDREPEAT option and whether it works in ODS EXCEL. According to the documentation, https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p1pt77toue3iyun0z4l9gth5as9f.htm -- the BACKGROUNDIMAGE option is supported by ODS EXCEL, but BACKGROUNDREPEAT is only supported by Markup destinations and PowerPoint destinations. So this may be a question for Tech Support.
Cynthia

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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