BookmarkSubscribeRSS Feed
shengnian
Fluorite | Level 6

I wrote a report using ods rtf statement,  but when i open it by word 2013, I couldn't see the titles in the navigation pane ?

6 REPLIES 6
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Could you try posting the code, and a screenshot of you output.  Also check, Office 2013 has a very annoying habbit of opening files it does not immediately recognize as its own in temporary layout.  Ensure that you do not see a button at around the top of the screen saying Open In Edit Mode, if that's there then click the button.

Cynthia_sas
SAS Super FREQ

Hi:
Also, try viewing the Headers and Footers of the Word document. Generally anything you write with a TITLE or FOOTNOTE statement does in the Header/Footer area of the document. Usually, they appear in light gray at the top of the doc, as shown in the attached screen shot. I am using Word 2013.

cynthia


rtf_where_are_titles.png
shengnian
Fluorite | Level 6

I'm sorry, I didn't make my question clear, Let me describe it in detail now. There are many tables in my report, and I want to see  all the table names in the navigation window when opening it by word application. When i opened it by word 2013, it failed, while when opened by word 2007, i made it. I want to know the reason.无标题.png无标题2.png

Cynthia_sas
SAS Super FREQ

I think this is a question for Tech Support. I am not sure the navigation area in Word is part of the RTF specification. Although you say it used to work in  Word 2010, I am wondering whether it is at all related to the TOC_DATA option. In older versions of SAS, the field codes for the TOC were automatically put into the RTF file. But in SAS 9.3, you need to insert the field codes explicitly:

ods rtf file='xxx.rtf' toc_data;

***code;

ods rtf close;

cynthia

RW9
Diamond | Level 26 RW9
Diamond | Level 26

I agree.  Word 2013's Navigation panel is quite a new thing.  RTF specification is quite old.  There may not be provision for such things in the spec.  If you want bookmarks your probably best off going to PDF.  If you have Adobe you can select all and make PDF and bookmarks get created for each file - you may then want to update them. 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 6 replies
  • 1689 views
  • 6 likes
  • 3 in conversation