BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Does anyone know how I specify that RTF output is landscape rather than portrait ? Seems to always default to landscape.
2 REPLIES 2
Doc_Duke
Rhodochrosite | Level 12
Insert
OPTIONS ORIENTATION=LANDSCAPE;
at the beginning of the task. It takes effect the SECOND time you run the task. It doesn't work very well if you want to mix portrait and landscape in the same project.

If you want the entire project to be landscape, you can go to
Tools --> options --> Tasks; Insert Code
and insert the OPTIONS statement there.
StaceySyphus
SAS Employee
Best way to do it is to turn off the EG-generated ODS code and write your own. First add the following custom code to the beginning of the task. To get to custom code in a task window select Preview Code -> Insert Code:

options orientation=landscape;
ods rtf file="c:\temp\myfile.rtf";

And then add the following custom code at the very end:

ods rtf close;
options orientation=portrait;

In the Properties of the task (In EG 4.1 right-click on the task in the project and select Properties, in EG 4.2, select Properties in the task dialog), select Results and deselect all output formats. The custom code will then create the RTF file and a link to the file will be included in the project.

This method will run correctly the first and every time and will not interfere with other tasks.

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1612 views
  • 0 likes
  • 3 in conversation