Date: Tue, 5 Sep 2006 16:07:05 -0700
Reply-To: Paul OldenKamp <paulo@SCHARP.ORG>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Paul OldenKamp <paulo@SCHARP.ORG>
Subject: Re: ODS PDF insert logo with style option
In-Reply-To: <200609052154.k85K6WbM024425@mailgw.cc.uga.edu>
Content-Type: text/plain; charset=ISO-8859-1
Hi Kristi,
I believe that you are being hit with the same bug that I encountered last week.
I was creating a modified style template but the source of the problem was
combining the !{lastpage} and graphics. Here's the note SAS tech support sent me:
"The following SAS Note may explain the problem you are seeing in the PDF file:
PAGEOF information can cause errors in ODS PRINTER
If the experimental inline style command {LASTPAGE} is used in a style
template applied to a file created by ODS PRINTER (PCL/PDF/PS), and a
title or footnote contains an image, or if SAS/GRAPH is used to generate
images, the code may generate errors like the following:
ERROR: Read Access Violation In Task [ PROC here )
Exception occurred at (nnnnnnn)
Task Traceback
Currently the best workaround is to remove the image(s), or to remove
the {LASTPAGE} command from the style definition."
I got my logo to appear inbetween a couple of title lines but I'm going to need
to use ods layout I think to get it the right size and position.
Paul
Quoting Kristi Mahadocon <kmahadocon@SUNESIS.COM>:
> I'm trying to insert a logo, followed by some company information onto the
> 1st and 2nd title lines in a report. I have a standard macro that I call
> to set up the titles:
>
> ods escapechar='!';
>
> %macro hfLand_ODS;
> title1 j=l height=10pt font="Lucida Sans Unicode, Verdana, Arial,
> Helvetica" '!S=
> {preimage="\\Atlas\shares\Biometrics\Globals\sunesis_swirl.jpg"} Sunesis
> Pharmaceuticals, Inc';
>
> title2 height=10pt font="Lucida Sans Unicode, Verdana, Arial, Helvetica"
> j=l 'Protocol: SNS-595/SPO-0004' j=r '!{thispage} of !{lastpage}';
>
> footnote2 j=l "&analinit: &tpath\&work\&pgm..sas (&sysdate &systime)";
>
> %mend hfLand_ODS;
>
> When I comment out the title2 statement, the logo and wording come out
> perfectly. When I try to add in either title2, or try to add some right
> justified wording to title1, my logo disappears. It looks like there is
> some space reserved for it, but it's not printing. I just get white
> space. Can anyone offer help on what is going wrong or how to get around
> this?
>
> Thanks,
> Kristi
>
|