BookmarkSubscribeRSS Feed
wcp_fnfg
Obsidian | Level 7

I am looking for a way to tell excel "put a page break at this row" using an output with excelxp and proc report.

Thanks!

1 REPLY 1
Cynthia_sas
Diamond | Level 26

Hi:

  As far as I know, there is no way for SAS or ODS to operate the menu choices that are on the Excel ribbon, such as highlighting a row and then selecting Page Layout --> Breaks --> Insert Page Break. You can influence printing to some extent with the suboptions for FitToPage and/or Pages_FitWidth or Pages_FitHeight, but that is not the same as setting the Print Area or inserting Page Breaks using Excel menu options. To reveal the suboptions available to use in your version of TAGSETS.EXCELXP, add the doc='HELP' suboption to your invocation:

  

ods tagsets.excelxp file='c:\temp\showcars.xml'

    options(doc='Help') style=sasweb;

  

Also, this paper talks in a lot of detail about suboptions and how to use them (http://www.nesug.org/proceedings/nesug08/ap/ap06.pdf), look at page 5, for example.

cynthia

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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