BookmarkSubscribeRSS Feed
optimus
Fluorite | Level 6

Hello,

In ODS Excel the borders of the title are not displayed properly across the entire merged cells:

ods_excel.PNG

 

In ODS Tagset.ExcelXP it works without problems:ods_tagset.PNG


Sample Code:

proc template;
	define style title_test;
		parent=styles.HTMLBlue;
		class SystemTitle /
			background=pink 
			bordercolor = black
			borderstyle = solid 
			borderbottomcolor=aquamarine 
			borderbottomwidth=4
		;
	end;
run;

ods tagsets.excelxp(i) file="test_tagset_excelxp.xls" 
	style=title_test
options(
		sheet_interval = 'none'
		sheet_name='test'
		sheet_label = ' '
		embedded_titles = 'yes'
		suppress_bylines = 'yes'
		Merge_Titles_Footnotes='yes'
	);

title "Title in ODS Tagset ExcelXP Output";

proc print data=sashelp.cars(obs= 20); run;

ods _all_ close;

ods excel file='test_ods_excel.xlsx'
	style=title_test
	options(
		sheet_interval = 'none'
		sheet_name='test'
		sheet_label = ' '
		embedded_titles = 'yes'
		suppress_bylines = 'yes'
	);
ods escapechar='^';

title1 "Title in ODS Excel Output";

proc print data=sashelp.cars(obs= 20); run;

ods _all_ close;

 

Why? Is this a known issue? Any solutions?


Many thanks!

4 REPLIES 4
Reeza
Super User

What is your SAS version?

optimus
Fluorite | Level 6

SAS Enterprise Guide: 7.11 HF5 (7.100.1.2856) (32-Bit)

 

SAS Server: 9.04.01  / Linux

Cynthia_sas
Diamond | Level 26
Since you have code that produces different results for each destination, this is the kind of issue you should report to Tech Support -- they can tell you whether this is a known issue or refer the question to the developers.

cynthia
Cynthia_sas
Diamond | Level 26

Hi:

  Posting an updated example. From SAS Tech Support, there is a known defect about this behavior. The workaround is shown below, in a STYLE template change.

cynthia

workaround_title_border_ods_excel.png

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 2308 views
  • 0 likes
  • 3 in conversation