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

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 save with the early bird rate—just $795!

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