Need EG styled HTML reports throgh ds HTML

Reply
N/A
Posts: 1

Need EG styled HTML reports throgh ds HTML

I need EG styled html reports through ods html.The reults should have a set of html links on top(toc) for all the reports that are embedded in the html document below.

Please suggest
Attached is the desired report template

Attachment
SAS Super FREQ
Posts: 8,868

Re: Need EG styled HTML reports throgh ds HTML

Hi:

  How did you create that output using EG? I am not sure what you mean by "EG styled" you could mean something as simple as using STYLE=EGDEFAULT? The word "style" generally refers to the STYLE= option for specifying colors and fonts. Generally, the word "style" does not refer to a table of contents, such as you show. The way to generate an HTML table of contents is through the use of a CONTENTS= option, but without seeing your code (or the code generated by your project), it is impossible to do more than guess how you originally got the contents created in this fashion. But since you have the code that generated this output in EG, have you tried running the code with ODS HTML?

  Seeing the output is useful, but understanding how you created the output (did you run a whole project? did you use the report layout builder? did you run several projects? did you write code? did you code CONTENTS= in your program? Did you run custom code?)

  Usually, when you code CONTENTS=, you can generate a Table of Contents using HTML Frame tags. If you run the attached code, you will see the default behavior. I'm not sure how you generated the output that you attached, but it does not look like the default behavior. So, understanding your submitted code will be the only way to help you.

  If you cannot post your code (because it is too lengthy or because it is inside a stored process or inside a macro call), then you can work with Tech Support for more detailed help. To open a track with Tech Support, fill out the form at this link:

http://support.sas.com/ctx/supportform/createForm

cynthia


** After you run the job, ;

** open the rep_fr.html file in a browser;

  

ods _all_ close;

ods html path='c:\temp' (url=none)

         file='rep_body.html'

         contents='rep_toc.html'

         frame='rep_fr.html' style=egdefault;

title;

proc print data=sashelp.class(obs=3);

run;

  

proc print data=sashelp.shoes(obs=3);

run;

 

proc print data=sashelp.cars(obs=3);

run;

ods _all_ close;

Ask a Question
Discussion stats
  • 1 reply
  • 133 views
  • 0 likes
  • 2 in conversation