BookmarkSubscribeRSS Feed
snoopy369
Barite | Level 11

I know that prior to 9.4, it was not possible to ask Proc Report to automatically determine page breaks AND to do something with that (such as placing "Continued..." after each page break before the last page).

I'm curious if there's a way to do that now, using CSS styles and some combination of nth-child or similar type references, to identify that some style should be applied either to the last page only or to every other page (for example, footnotes having white background black text for all pages except the last, white text for last page's footnotes).  I can't think of a good way to do it, but imagine it might be possible.  (However, given that I don't think last-child is supported in SAS/CSS, perhaps that's not true.)

Or, if there's another way to get what I want, please let me know (for now I'm doing the clunky guessing how many rows fit on a page method).  In this case, I have a report that has some lines wrapping, so it's fairly difficult to determine exactly how many lines work per page - and on top of that, it's not very future-proof if things like page size, margins, font size, etc. change in my report.

Thanks!

2 REPLIES 2
Cynthia_sas
SAS Super FREQ

Hi:

  Starting a few versions ago, PDF does support CSS style sheets through the use of the CSSSTYLE= option (yes, there are 3 "S" in the option).

  But I do not know enough about CSS and the @MEDIA for PRINT vs SCREEN to know whether you can apply a style like that to the PDF output pages. That would be a question for Tech Support.

  For a general introduction to the use of CSSSTYLE, this paper may offer some insight -- http://support.sas.com/resources/papers/proceedings09/014-2009.pdf -- but not to the level of detail you describe. There is a very, very simple example of the @MEDIA rule usage in the paper.

cynthia

snoopy369
Barite | Level 11

Thanks, Cynthia.  I ended up doing it the hard way, deciding where to break pages on my own and breaking on those variables, but if I have time in the future I'll talk to tech support.  I was indeed using CSSSTYLE in the ODS PDF, and am a big fan of such.

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
  • 2 replies
  • 1249 views
  • 3 likes
  • 2 in conversation