Date: Tue, 5 Jul 2005 09:38:49 +0200
Reply-To: Andre Wielki <wielki@INED.FR>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Andre Wielki <wielki@INED.FR>
Subject: Re: page break between 2 Procs in the ods HTML output
In-Reply-To: <050a01c580c7$59dfe5e0$6401a8c0@AVI>
Content-Type: text/plain; charset=UTF-8; format=flowed
Une petite recherche dans les archives vous donnerait les résultats
Et en plus il ne faut pas tout mélanger.
Ods pfc has no line of separation and can easily
accept a graph and a proc output on one page
if there is place for it.
For the line separation in ods html destination
you need a modification of the template
THIS was mentionned in the TOC of template on line!
goptions reset=all dev=pdfc ftext="Helvetica";
/* Sample data */
data sample;
do Year=1 to 5;
Value1=ranuni(0)*10;output;
Value2=ranuni(0)*10;output;
end;
/* Close the listing destination; no output will be created using the PDFC
device driver */
ods listing close;
/* Open the ODS PDF destination, set the filename, and set STARTPAGE=NEVER
so all the graphs will be written to the same page */
ods pdf file='c:\temp\output.pdf' startpage=never;
/* Create the common title using the full page */
title1 h=0.5 cm "Common Title";
goptions vorigin=13 cm vsize=7 cm hsize=12 cm;
proc gchart data=sample;
vbar year / sumvar=value1 discrete;
run;
run;
quit;
* means results will go at the top of the fixed page;
proc means data=sample;
var value1 value2;
run;
ods pdf startpage=yes;
proc freq data=sample;table year;run;
ods pdf close;
proc template;
define style bidon;parent=styles.default;
style body from body/
pagebreakhtml=_undef_;
end;run;
ods html file="c:\temp\lignesep.html" style=bidon;
proc print data=sample;run;
proc freq data=sample;table year;run;
ods html close;
ods listing;
HTH
Andre
Avi wrote:
> Merci Andre
>
> je voudrais que le graphe et la table apparaissent sur une meme page
> sans la ligne de separation, tel que si je convertis a PDF, ils
> apparaissent sur une meme page
>
> Avi
>
>
>
> Avi BenitaAvi Benita 054-4660641 www.avibenita.com
> ----- Original Message ----- From: "Andre Wielki" <wielki@INED.FR>
> Newsgroups: comp.soft-sys.sas
> Sent: Monday, July 04, 2005 4:57 PM
> Subject: Re: page break between 2 Procs in the ods HTML output
>
>
>> Avi wrote:
>>
>>> Hi
>>>
>>> Could i suppress the page break between 2 procs (Gchart and proc
>>> tabulate)
>>> in the ods HTML output?
>>>
>>> Thanks a lot
>>> Avi
>>>
>> page break ou line separation?
>>
>> --
>> Andre Wielki
>> INED (Institut National d'Etudes Dיmographiques)
>> 133 Boulevard Davout 75980 Paris Cedex 20
>> 33 (0) 1 56 06 21 54 FRANCE
>
>
>
--
Andre Wielki
INED (Institut National d'Etudes Démographiques)
133 Boulevard Davout 75980 Paris Cedex 20
33 (0) 1 56 06 21 54 FRANCE