BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
xxformat_com
Barite | Level 11

Hi,

The following code generates a Table of Contents inserted in the first page of the PDF.

However the term "Table of Contents" on this page is in English. Changing the local language doesn't change it to "Table des matières". Do you have any suggestion to fix it?

 

option locale=fr_FR;

ods pdf file ="&xxtest./reporting/test.pdf" contents;
   
proc print data=sashelp.class;
run;

ods pdf close;

toc.JPG

 

Regards,

1 ACCEPTED SOLUTION

Accepted Solutions
xxformat_com
Barite | Level 11

Thanks. Sending me the link made me realized that I hadn't considered the template. Here is the solution:

 

proc template;
    define style styles.test;
    parent=styles.pearl;
    class text /  'Content Title' = "Table des matières";
    end;
run;

ods pdf file ="&xxtest./reporting/test.pdf" contents style=test;
   
proc print data=sashelp.class;
run;

ods pdf close;

Text style element is defined in the default style template used by printer and therefore by pearl for PDF destinations.

View solution in original post

4 REPLIES 4
Ksharp
Super User

Start a brand-new sas session with France version .

 

Ksharp_0-1628771164834.png

 

xxformat_com
Barite | Level 11

Hi,

I tried with the french Windowing Editor but it didn't change the title of the table of contents.

french.JPG

procprint_french.JPG

xxformat_com
Barite | Level 11

Thanks. Sending me the link made me realized that I hadn't considered the template. Here is the solution:

 

proc template;
    define style styles.test;
    parent=styles.pearl;
    class text /  'Content Title' = "Table des matières";
    end;
run;

ods pdf file ="&xxtest./reporting/test.pdf" contents style=test;
   
proc print data=sashelp.class;
run;

ods pdf close;

Text style element is defined in the default style template used by printer and therefore by pearl for PDF destinations.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 4 replies
  • 605 views
  • 3 likes
  • 3 in conversation