BookmarkSubscribeRSS Feed
bilardi
Calcite | Level 5

    I am using the EXCEL tagsets and I have this piece of code in my proc report;

call define(_row_, 'style', 'style = [background=gray]'

I know this change the background color to gray.

How can I modify that to change the TOP BORDERS only

1 REPLY 1
Cynthia_sas
SAS Super FREQ

Hi:

  If you wanted RTF, you could just use bordertopstyle, bordertopwidth, bordertopcolor attributes in the PROC REPORT code. But for TAGSETS.EXCELXP, Excel doesn't always use those overrides. Information in the STYLE template gets written to the correct place in the XML generated by the tagset template.

  There's a paper by Eric Gebhart that shows altering the interior table lines and rules and borders for TAGSETS.EXCELXP. Here's the link:

http://www2.sas.com/proceedings/forum2008/036-2008.pdf  look at the last example on page 19 and then work to there from the beginning and try to understand each example.

 

cynthia

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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