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

9.4 m5

proc report to ods tagset.excelxp

 

When using a spanned header, and freezing the top two rows, the spanned header does not print on page two to the end of the report.

 

Run this code ( it uses sashelp.shoes )

 

ods escapechar='^';

ods tagsets.excelxp
file="c:\temp\span_hdr_xp.xml"
options(autofit_height='yes'
frozen_headers='2'
gridlines='yes'
orientation='landscape'
pages_fitwidth='1'
pages_fitheight='40'
row_repeat='2'
sheet_name='Header Print Issues'
/*wraptext='no'*/);


** the header shows correctly when you download the excel doc that is produced;
** but the top row of the header will not print on pages 2-the end of document;
** see attached pdf;

proc report data=sashelp.shoes;
column ('Spanning Header will not appear on pages 2-13 when printing' region product sales returns);
define product / group;
run;

ods _all_ close;

 

header not printing.jpg

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
SuryaKiran
Meteorite | Level 14

Hello,

 

Try this options: row_repeat='1-2'

Thanks,
Suryakiran

View solution in original post

1 REPLY 1
SuryaKiran
Meteorite | Level 14

Hello,

 

Try this options: row_repeat='1-2'

Thanks,
Suryakiran

SAS Innovate 2025: Call for Content

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 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 591 views
  • 1 like
  • 2 in conversation