<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Can't output .EMF images with ODS in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Can-t-output-EMF-images-with-ODS/m-p/98395#M3669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using SAS9.2, and I have some picture files of charts (not produced with sasgraph) in both .emf and .png format. I would like to drop them all into a single file to email out. I have tried ods rtf/pdf/html output all for both. PNG images are too grainy in each ODS destination to read text overlaid on the charts, and I receive the following errors for .EMF depending on the ODS destination. Any help would be much appreciated! Ultimately I am relatively indifferent to printing to pdf, html or rtf as long as I can size the images appropriately and have them be readable.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ODS PDF&lt;UL&gt;&lt;LI&gt;.emf pictures give "unable to load image" error. One of the three says "the absolute region was too small to accommodate the text supplied. output was lost"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;ODS HTML&lt;UL&gt;&lt;LI&gt;.emf pictures don't give an error in log but don't show up in the output report. &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;ODS RTF&lt;UL&gt;&lt;LI&gt;.emf pictures cause error. says image type is unsupported or file is corrupted.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------&lt;/P&gt;&lt;P&gt;I am using a dummy dataset and preimage to print the images (code snippet below):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options orientation=landscape;&lt;/P&gt;&lt;P&gt;ods html file="&amp;amp;Output\testreport.html" style=HighContrast; &lt;/P&gt;&lt;P&gt;ods layout start columns=1 column_widths=(7in);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data dummy; x='"'; run; /*dummy data file to print chart images as backgrounds to empty proc report pages*/&lt;/P&gt;&lt;P&gt;proc report data=dummy nowd; Title; column x; define x /'' style=[preimage="&amp;amp;picturespath.&amp;amp;fuelpricechart.&amp;amp;reportdate.&amp;amp;ext."]; run; &lt;/P&gt;&lt;P&gt;proc report data=dummy nowd; Title; column x; define x /'' style=[preimage="&amp;amp;picturespath.&amp;amp;stockpricechart.&amp;amp;reportdate.&amp;amp;ext."]; run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=dataset1; &lt;/P&gt;&lt;P&gt;Title "Title for Dataset1";&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods html close; &lt;/P&gt;&lt;P&gt;ods layout end; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Dec 2012 23:22:56 GMT</pubDate>
    <dc:creator>Max06</dc:creator>
    <dc:date>2012-12-12T23:22:56Z</dc:date>
    <item>
      <title>Can't output .EMF images with ODS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-t-output-EMF-images-with-ODS/m-p/98395#M3669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using SAS9.2, and I have some picture files of charts (not produced with sasgraph) in both .emf and .png format. I would like to drop them all into a single file to email out. I have tried ods rtf/pdf/html output all for both. PNG images are too grainy in each ODS destination to read text overlaid on the charts, and I receive the following errors for .EMF depending on the ODS destination. Any help would be much appreciated! Ultimately I am relatively indifferent to printing to pdf, html or rtf as long as I can size the images appropriately and have them be readable.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ODS PDF&lt;UL&gt;&lt;LI&gt;.emf pictures give "unable to load image" error. One of the three says "the absolute region was too small to accommodate the text supplied. output was lost"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;ODS HTML&lt;UL&gt;&lt;LI&gt;.emf pictures don't give an error in log but don't show up in the output report. &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;ODS RTF&lt;UL&gt;&lt;LI&gt;.emf pictures cause error. says image type is unsupported or file is corrupted.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------&lt;/P&gt;&lt;P&gt;I am using a dummy dataset and preimage to print the images (code snippet below):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options orientation=landscape;&lt;/P&gt;&lt;P&gt;ods html file="&amp;amp;Output\testreport.html" style=HighContrast; &lt;/P&gt;&lt;P&gt;ods layout start columns=1 column_widths=(7in);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data dummy; x='"'; run; /*dummy data file to print chart images as backgrounds to empty proc report pages*/&lt;/P&gt;&lt;P&gt;proc report data=dummy nowd; Title; column x; define x /'' style=[preimage="&amp;amp;picturespath.&amp;amp;fuelpricechart.&amp;amp;reportdate.&amp;amp;ext."]; run; &lt;/P&gt;&lt;P&gt;proc report data=dummy nowd; Title; column x; define x /'' style=[preimage="&amp;amp;picturespath.&amp;amp;stockpricechart.&amp;amp;reportdate.&amp;amp;ext."]; run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=dataset1; &lt;/P&gt;&lt;P&gt;Title "Title for Dataset1";&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods html close; &lt;/P&gt;&lt;P&gt;ods layout end; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 23:22:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-t-output-EMF-images-with-ODS/m-p/98395#M3669</guid>
      <dc:creator>Max06</dc:creator>
      <dc:date>2012-12-12T23:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can't output .EMF images with ODS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-t-output-EMF-images-with-ODS/m-p/98396#M3670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might try ODS TAGSETS.MSOFFICE2K but I'm guessing here.&lt;/P&gt;&lt;P&gt;I would try a very basic document with no options or layout to start.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 23:58:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-t-output-EMF-images-with-ODS/m-p/98396#M3670</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-12-12T23:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can't output .EMF images with ODS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-t-output-EMF-images-with-ODS/m-p/98397#M3671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I saw -almost- the same thing. PDF gave me an error message:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ERROR: Image file type is not supported, or corrupted file.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ERROR: Unable to load image c:\temp\kermit.emf.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ERROR: Unable to load image c:\temp\kermit.emf; default image will be used instead.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;NOTE: There were 1 observations read from the data set WORK.DUMMY.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The RTF file did not contain any images.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to get an HTML file with a valid IMG tag for both pictures. I used slightly different syntax than you did. IMAGE_DPI didn't seem to have any impact on how the pictures looked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put in the same file twice (KERMIT.EMF) -- the resolution was not good - -certainly, it didn't look as good in the HTML file as the original HTML file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code I used. You say that these pictures were created by some other process. You might try annotating them into a new image using SAS/GRAPH Annotate facility. Or you might try working with Tech Support on this question. I'm not sure that using PROC REPORT is the right approach. But if there is a way to do what you want, Tech Support will be able to point you in the right direction. And if there's not a way to do what you want, they will save you a lot of failed attempts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put my image in c:\temp\kermit.emf and wrote my output there, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;data dummy;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; x = '_';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html path='c:\temp' (url=none) file="showkermit.html" &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style=HighContrast ; &lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;Title "Title for Dataset1";&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=dummy nowd noheader&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; style(report)={outputwidth=100% rules=none frame=void&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cellspacing=0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; preimage="kermit.emf"}; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;column x; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define x /'' &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; style(column)=[background=white just=c&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreground=white &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; preimage="kermit.emf"];&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods _all_ close; &lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods rtf file='c:\temp\showkermit.rtf' ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods pdf file='c:\temp\showkermit.pdf' ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;Title "Title for Dataset1";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=dummy nowd noheader&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; style(report)={outputwidth=100%&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; preimage="c:\temp\kermit.emf"}; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;column x; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define x /'' &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; style(column)=[background=white just=c&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreground=white &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; preimage="c:\temp\kermit.emf"];&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods _all_ close; &lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10793i444888B0FF5F8E38/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="html_with_kermit.png" title="html_with_kermit.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 04:32:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-t-output-EMF-images-with-ODS/m-p/98397#M3671</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-12-13T04:32:25Z</dc:date>
    </item>
  </channel>
</rss>

