hello everyone,
we are generating an ods pdf with tables. the tables have been generated with proc report and proc tabulate. we need this only for some tables, for others it is not necessary.
We need to rotate the column headers as follows:
now it is appearing like this:
How could it be done?
Thank you very much and greetings
Hi:
I do not know whether it is possible to use ODS Excel or ODS Word techniques to get rotated headers in a PDF output file. You may not be able to do this directly with ODS PDF, but may have to create your document and then use a different tool, such as print to PDF functionality to make it work. For example, with SAS out of the picture, if I generate THIS file in Microsoft Word (with rotated headers):
And then from inside Word, I do a Save AS PDF:
Then when I open the PDF file, I see that the rotated headers were retained in the PDF format:
So I would think that it might be possible to create an Excel or Word document using ODS and then from inside Excel or Word, do a SAVE AS PDF. In order to rotate the headers, you'd have to refer to the link that was posted or work with Tech Support.
Over time, I have stopped using rotated headers because reading software will not always read the headers correctly when they are rotated.
Cynthia
Here is for Excel file,NOT pdf.
While mayb @Cynthia_sas knew the solution.
https://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html
Hi:
I do not know whether it is possible to use ODS Excel or ODS Word techniques to get rotated headers in a PDF output file. You may not be able to do this directly with ODS PDF, but may have to create your document and then use a different tool, such as print to PDF functionality to make it work. For example, with SAS out of the picture, if I generate THIS file in Microsoft Word (with rotated headers):
And then from inside Word, I do a Save AS PDF:
Then when I open the PDF file, I see that the rotated headers were retained in the PDF format:
So I would think that it might be possible to create an Excel or Word document using ODS and then from inside Excel or Word, do a SAVE AS PDF. In order to rotate the headers, you'd have to refer to the link that was posted or work with Tech Support.
Over time, I have stopped using rotated headers because reading software will not always read the headers correctly when they are rotated.
Cynthia
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!
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.