The SAS Output Delivery System and reporting techniques

ODS PDF Image on Title1 Line for Proc Gchart not showing Logo only Text

Accepted Solution Solved
Reply
Highlighted
Occasional Contributor
Posts: 7
Accepted Solution

ODS PDF Image on Title1 Line for Proc Gchart not showing Logo only Text

I submitted the following code below and the result was title1 always resolves to: 

 

^S={preimage="U:\Graphics and Templates\Logo Files\White PNGs (Use These!)\main-logo-v2-white-200x95.png"} 

 

Instead of the logo file located at: U:\Graphics and Templates\Logo Files\White PNGs (Use These!)\main-logo-v2-white-200x95.png

 

Here is submitted code:

 

goptions reset=all border cback=white htitle=12pt;

options nodate nonumber;
ods listing close;
ods escapechar="^";
ods noproctitle;

ods pdf file="E:\Demographics_201708.pdf" startpage=never gtitle;

 

/* Assign a color to each type */
pattern1 V=S c=vibg;
pattern2 v=s c=gray;
pattern3 v=s c=green;
pattern4 v=s c=day;
pattern5 v=s c=deoy;

 

title1 just=l '^S={preimage="U:\Graphics and Templates\Logo Files\White PNGs (Use These!)\main-logo-v2-white-200x95.png"}';
title2 j=c 'August 2017 Data' ;


proc gchart data=agepct;


format num comma12.0;
vbar agecat_c / discrete sumvar=num
subgroup=actcat
g100 nozero
type=percent inside=subpct width=20
outside=sum;
run;


quit;

ods pdf close;

 

I've looked at this several times and cannot see the issue.  I am using SAS 9.4 Windows TS Level 1M4.


Accepted Solutions
Solution
2 weeks ago
Super User
Posts: 11,114

Re: ODS PDF Image on Title1 Line for Proc Gchart not showing Logo only Text

j=left j=l justify=left justify=l not just=l

View solution in original post


All Replies
SAS Super FREQ
Posts: 8,818

Re: ODS PDF Image on Title1 Line for Proc Gchart not showing Logo only Text

Hi: I believe that if you want to use an image in the title you need for ODS to handle the title using the NOGTITLE option. The GTITLE option tells SAS/GRAPH to control the title and ODS ESCAPECHAR is not typically used by SAS/GRAPH for titles. With NOGTITLE, you tell ODS PDF (or your destination) to control the titles. That should work better for you.

cynthia
Occasional Contributor
Posts: 7

Re: ODS PDF Image on Title1 Line for Proc Gchart not showing Logo only Text

That gets me closer.  Now the text just=l is showing up on title1 instead of the image.  Any other thoughts?

Occasional Contributor
Posts: 7

Re: ODS PDF Image on Title1 Line for Proc Gchart not showing Logo only Text

This is the error message in the log for the title statement:

WARNING: The TITLE statement is ambiguous due to invalid options or unquoted text.

Super User
Posts: 11,114

Re: ODS PDF Image on Title1 Line for Proc Gchart not showing Logo only Text


Bildog1 wrote:

This is the error message in the log for the title statement:

WARNING: The TITLE statement is ambiguous due to invalid options or unquoted text.


 

It wouldn't hurt to show the title statement from the log with that message. We can't be sure what was actually submitted without it.

Occasional Contributor
Posts: 7

Re: ODS PDF Image on Title1 Line for Proc Gchart not showing Logo only Text

In the first post the same title1 statement was submitted, the only difference was changing the line:

 

ods pdf file="E:\Demographics_201708.pdf" startpage=never gtitle; TO:

 

ods pdf file="E:\Demographics_201708.pdf" startpage=never nogtitle;

Occasional Contributor
Posts: 7

Re: ODS PDF Image on Title1 Line for Proc Gchart not showing Logo only Text

If this helps

 

 title1 just=l '^S={preimage="U:\AHP\Graphics and Templates\Logo Files\White PNGs (Use
2779! These!)\main-logo-v2-white-200x95.png"}';
WARNING: The TITLE statement is ambiguous due to invalid options or unquoted text.

 

2779 is the line in the log

Solution
2 weeks ago
Super User
Posts: 11,114

Re: ODS PDF Image on Title1 Line for Proc Gchart not showing Logo only Text

j=left j=l justify=left justify=l not just=l

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 7 replies
  • 169 views
  • 0 likes
  • 3 in conversation