03-18-2015 11:55 AM
I would like to know your suggestions on converting the RTF file into PNG file. I am unable to attach teh rtf file, so i am sharing the screenshot of the rtf file.
I tried the conversion using proc gprint procedure, however a graphic file is generated with the RTF code but not the image.
Please let me know if there is any way to achieve this, i am working on sas 9.3. Appreciate your responses.
03-18-2015 12:35 PM
I doubt you can use the same code to switch your process from RTF to PNG, most likely it will be a redesign.
You'd have to show what type of code you're using, but I'm guessing that you're using something like in this paper:
You may want to look into export the RTF file into PDF or PNG from Word via DDE if you want to avoid the redesign process.
03-18-2015 01:05 PM
Yes Reeza you guessed it right, i referred to the same article and generated the RTF file, however i want the output in image file. would you like to share any articles which have this information.
I will try exporting of RTF to PNG. The only way this is making it difficult is that i am unable to use any graphic options as i am not using any graph procedures to generate the output.
03-18-2015 02:40 PM
I took a quick look into the converting Word into PNG and it didn't seem to be straightforward either - it seems to be that you would have to convert it to PDF then PNG
Why the need for PNG?
Unfortunately I have no idea how to do this via SAS using Graph Procedures.
In any case this may be a situation of not using the right tool for the right job, i.e. SAS may not be the right tool. The way I've done it historically was to generate the templates in Excel, export to excel and then convert to PDF. I've never had the need to generate a PNG though....
08-30-2016 03:12 PM
Sanjay, do you have an example of using a POLYGON plot to generate a consort diagram (or something vaguely similar)? I have just started working on the topic of how to generate consort diagrams using SGPLOT and any leg up you could give me would be much appreciated. Thanks!
10-20-2016 01:29 PM
Hi Shane. As I recall you were attempting to use the feedback "Outfile" option of the TEXT plot to get the size of the text box to determine the layout. That is quite a sophisticated approach.
I posted a simpler solution today. Hope that can help too.