The SAS Output Delivery System and reporting techniques

ods rtf output

Reply
Contributor
Posts: 60

ods rtf output

Hi All,

I created RTF file with graph created from proc gchart and using the ODS RTF destination.

When I open the file, I`m able to see the graph in my system but when I send it to others, they were able to open the file but do not see the graph.

I tested it by sending the file to my colleagues who have SAS installed and who do not. Ones with SAS installed is able to open the RTF file and see its contents but the colleagues without SAS, just see a blank page.

I have no idea what`s going on here.

Any help is much appreciated.

Thanks,

Saravanan

Grand Advisor
Posts: 10,262

Re: ods rtf output

Try saving the RTF was a Doc or Docx extension Word document. I've had a variety of issues with RTF and that often helps.

For what it may be worth, I've had fewer of these kinds of issues with the SG procs.

Contributor
Posts: 60

Re: ods rtf output

Thank you for the reply. I considered that option and user were able to see the charts.

But resaving it as .doc or .docx actually saves it as an uneditable image file. When SAS outputs it as RTF file, when I right click on the chart, I`m able to edit it.

This is the functionality I`m losing by resaving it as .doc or .docx. Is there any workaround where I can retain the editable functionality?

Thanks.

Grand Advisor
Posts: 17,481

Re: ods rtf output

What type of graphic are you generating? Does SASEMF or EMF in RTF work for you, I can't recall if those are allowed options.

Contributor
Posts: 60

Re: ods rtf output

I`m generating basic vertical bar chart. I did not specify any device= option. I just let SAS select the device appropriately. I believe SAS chooses SASEMF as default device for RTF output.

SAS Super FREQ
Posts: 8,721

Re: ods rtf output

Hi:

  Partly, the creation of graphs will depend on whether you are using SAS/GRAPH and/or ODS GRAPHICS or whether you are using EG to generate SAS/GRAPH code and whether EG is choosing the default ACTIVEX device for graph output. For example, if you are in the scenario with EG and using the default ACTIVEX device, then you MUST have the ACTIVEX controls installed -before- you open the graph. So the behavior you describe (where you can open the graph, makes sense, because you probably have the ACTIVEX controls installed, but when you send the output to other folks, they might not have the ACTIVEX controls installed. Anyone without the ACTIVEX controls would not be able to see anything in the output file.

  However, both SAS/GRAPH and ODS GRAPHICS have ways to change the default device -- SAS/GRAPH through a GOPTIONS statement (or in EG, through a drop down menu choice) and ODS GRAPHICS uses the IMAGEFMT= option on the ODS GRAPHICS statement. Without a more concrete description of how you are building the code, and WHAT the code is (SAS/GRAPH or ODS GRAPHICS) and what output format (PNG, ACTIVEX, GIF, JPEG, TIF, etc) you are choosing, it is hard to make more concrete suggestions.

  Of course, one option for an immediate coding issue is to work with SAS Tech Support to help you figure out exactly how your code has to change so it produces the output you want.

cynthia

Ask a Question
Discussion stats
  • 5 replies
  • 652 views
  • 1 like
  • 4 in conversation