<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[AB4D Forum - Paste2Xaml and Ab2d.ReaderWmf]]></title>
		<link>https://forum.ab4d.com/</link>
		<description><![CDATA[AB4D Forum - https://forum.ab4d.com]]></description>
		<pubDate>Thu, 23 Apr 2026 21:35:43 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Forum closed, use Issues on GitHub instead]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=4512</link>
			<pubDate>Wed, 01 Apr 2026 13:42:10 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=1">abenedik</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=4512</guid>
			<description><![CDATA[<span style="color: #303f50;" class="mycode_color"><span style="font-family: Helvetica;" class="mycode_font">This forum is closed because of problems with sending emails.</span></span>]]></description>
			<content:encoded><![CDATA[<span style="color: #303f50;" class="mycode_color"><span style="font-family: Helvetica;" class="mycode_font">This forum is closed because of problems with sending emails.</span></span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Ellipse, spiral drawn with Inkscape are not shown.]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=4015</link>
			<pubDate>Wed, 14 Jun 2017 02:58:59 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=10927">m246246</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=4015</guid>
			<description><![CDATA[Attatchd emf (sss.emf) is made by Inkscape 0.92, in which I draw 1 ellipse and 1 spiral. You can see red ellipse and olive spiral in Paint and other applcations. However nothings are shown on screen from the rendered result from ReadGeometry().<br />
<br />
When I see the contents via GetXaml(), it look as the following:<br />
<br />
&lt;!-- Converted from metafile with Ab2d.ReaderWmf. See <a href="http://www.ab4d.com" target="_blank" rel="noopener" class="mycode_url">www.ab4d.com</a> for more WPF and Silverlight tools. --&gt;<br />
&lt;Image xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Stretch="Uniform"&gt;<br />
    &lt;Image.Resources&gt;<br />
    &lt;/Image.Resources&gt;<br />
    &lt;Image.Source&gt;<br />
        &lt;DrawingImage xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" PresentationOptions:Freeze="True"&gt;<br />
            &lt;DrawingImage.Drawing&gt;<br />
                &lt;DrawingGroup&gt;<br />
                    &lt;GeometryDrawing Geometry="F1M323,133z"&gt;<br />
                        &lt;GeometryDrawing.Pen&gt;<br />
                            &lt;Pen Brush="Red" Thickness="3" StartLineCap="Flat" EndLineCap="Flat" DashCap="Flat" LineJoin="Miter" MiterLimit="10"/&gt;<br />
                        &lt;/GeometryDrawing.Pen&gt;<br />
                    &lt;/GeometryDrawing&gt;<br />
                    &lt;GeometryDrawing Geometry="F1M508,133"&gt;<br />
                        &lt;GeometryDrawing.Pen&gt;<br />
                            &lt;Pen Brush="Olive" Thickness="3" StartLineCap="Flat" EndLineCap="Flat" DashCap="Flat" LineJoin="Miter" MiterLimit="10"/&gt;<br />
                        &lt;/GeometryDrawing.Pen&gt;<br />
                    &lt;/GeometryDrawing&gt;<br />
                &lt;/DrawingGroup&gt;<br />
            &lt;/DrawingImage.Drawing&gt;<br />
        &lt;/DrawingImage&gt;<br />
    &lt;/Image.Source&gt;<br />
&lt;/Image&gt;<br />
<br />
I'm not sure but it looks value of the Geometry property is too short. (The version of ReaderWmf is 7.2.5960.1045.)<br />
<br />
Best Wishes,<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/" title="" border="0" alt=".emf" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=67" target="_blank" title="">sss.emf</a> (Size: 1.52 KB / Downloads: 3)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Attatchd emf (sss.emf) is made by Inkscape 0.92, in which I draw 1 ellipse and 1 spiral. You can see red ellipse and olive spiral in Paint and other applcations. However nothings are shown on screen from the rendered result from ReadGeometry().<br />
<br />
When I see the contents via GetXaml(), it look as the following:<br />
<br />
&lt;!-- Converted from metafile with Ab2d.ReaderWmf. See <a href="http://www.ab4d.com" target="_blank" rel="noopener" class="mycode_url">www.ab4d.com</a> for more WPF and Silverlight tools. --&gt;<br />
&lt;Image xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Stretch="Uniform"&gt;<br />
    &lt;Image.Resources&gt;<br />
    &lt;/Image.Resources&gt;<br />
    &lt;Image.Source&gt;<br />
        &lt;DrawingImage xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" PresentationOptions:Freeze="True"&gt;<br />
            &lt;DrawingImage.Drawing&gt;<br />
                &lt;DrawingGroup&gt;<br />
                    &lt;GeometryDrawing Geometry="F1M323,133z"&gt;<br />
                        &lt;GeometryDrawing.Pen&gt;<br />
                            &lt;Pen Brush="Red" Thickness="3" StartLineCap="Flat" EndLineCap="Flat" DashCap="Flat" LineJoin="Miter" MiterLimit="10"/&gt;<br />
                        &lt;/GeometryDrawing.Pen&gt;<br />
                    &lt;/GeometryDrawing&gt;<br />
                    &lt;GeometryDrawing Geometry="F1M508,133"&gt;<br />
                        &lt;GeometryDrawing.Pen&gt;<br />
                            &lt;Pen Brush="Olive" Thickness="3" StartLineCap="Flat" EndLineCap="Flat" DashCap="Flat" LineJoin="Miter" MiterLimit="10"/&gt;<br />
                        &lt;/GeometryDrawing.Pen&gt;<br />
                    &lt;/GeometryDrawing&gt;<br />
                &lt;/DrawingGroup&gt;<br />
            &lt;/DrawingImage.Drawing&gt;<br />
        &lt;/DrawingImage&gt;<br />
    &lt;/Image.Source&gt;<br />
&lt;/Image&gt;<br />
<br />
I'm not sure but it looks value of the Geometry property is too short. (The version of ReaderWmf is 7.2.5960.1045.)<br />
<br />
Best Wishes,<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/" title="" border="0" alt=".emf" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=67" target="_blank" title="">sss.emf</a> (Size: 1.52 KB / Downloads: 3)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Wrongly filled EMF file]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=4014</link>
			<pubDate>Tue, 13 Jun 2017 14:19:54 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=10927">m246246</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=4014</guid>
			<description><![CDATA[I tried to render some EMF files with ReadGeometry() method. File version of Ab2d.ReaderWmf.dll is 7.2.5960.1045.<br />
Attached file (yy.eml) consists from 2 overlapping drawings, both are filled in green.<br />
It is displayed in Paint, Powerpoint, Libreoffice Draw etc as expected, most inner parts are filled.<br />
However rendered result is different, some parts are not filled.<br />
<br />
So far I have tried both GeometrySettings.FullOptimization and GeometrySettings.NoOptimization but the result is same.<br />
I also attached capture image of expected result (expected.png) and rendered result (result.png).<br />
 <br />
Best Wishes,<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/" title="" border="0" alt=".emf" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=64" target="_blank" title="">yy.emf</a> (Size: 824 bytes / Downloads: 2)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=65" target="_blank" title="">expected.png</a> (Size: 8.95 KB / Downloads: 0)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=66" target="_blank" title="">result.png</a> (Size: 13.31 KB / Downloads: 0)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[I tried to render some EMF files with ReadGeometry() method. File version of Ab2d.ReaderWmf.dll is 7.2.5960.1045.<br />
Attached file (yy.eml) consists from 2 overlapping drawings, both are filled in green.<br />
It is displayed in Paint, Powerpoint, Libreoffice Draw etc as expected, most inner parts are filled.<br />
However rendered result is different, some parts are not filled.<br />
<br />
So far I have tried both GeometrySettings.FullOptimization and GeometrySettings.NoOptimization but the result is same.<br />
I also attached capture image of expected result (expected.png) and rendered result (result.png).<br />
 <br />
Best Wishes,<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/" title="" border="0" alt=".emf" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=64" target="_blank" title="">yy.emf</a> (Size: 824 bytes / Downloads: 2)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=65" target="_blank" title="">expected.png</a> (Size: 8.95 KB / Downloads: 0)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=66" target="_blank" title="">result.png</a> (Size: 13.31 KB / Downloads: 0)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[What happened to GeometrySettings.UseResources?]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=3972</link>
			<pubDate>Wed, 27 Apr 2016 08:32:01 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=201">kguetter</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=3972</guid>
			<description><![CDATA[I just tried to update ReaderWmf to version 7.2.5960.1045.<br />
Our code contains the following:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>var geometrySettings = Ab2d.Common.ReaderWmf.GeometrySettings.FullOptimization;<br />
geometrySettings.UseResources = false;<br />
geometrySettings.CombineAllSameIntoOneGeometry = false;</code></div></div><br />
But the UseResources property seems to be not available any more.<br />
<br />
Update: Setting ResourcesCountLimit to 0 seems to have the same effect. Can you confirm that this is the correct replacement?<br />
<br />
Klaus]]></description>
			<content:encoded><![CDATA[I just tried to update ReaderWmf to version 7.2.5960.1045.<br />
Our code contains the following:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>var geometrySettings = Ab2d.Common.ReaderWmf.GeometrySettings.FullOptimization;<br />
geometrySettings.UseResources = false;<br />
geometrySettings.CombineAllSameIntoOneGeometry = false;</code></div></div><br />
But the UseResources property seems to be not available any more.<br />
<br />
Update: Setting ResourcesCountLimit to 0 seems to have the same effect. Can you confirm that this is the correct replacement?<br />
<br />
Klaus]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Readerwmf, Clipboard and Visio]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=3959</link>
			<pubDate>Tue, 05 Jan 2016 11:27:24 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=9924">acaptcha2</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=3959</guid>
			<description><![CDATA[Hello,<br />
we use Ab2d.ReaderWmf.dll in 5.4.4299.36701 version, in an WPF Application, by the method GetGeometryFromHemf.<br />
When we copy an object from Visio 2010 (Airport Symbol for example), and paste into this WPF Application, this App crashes with the exception: <br />
"FileFormatException : Unknown file format! Ab2d.ReaderWmf can read only valid metafiles.<br />
	Pile d'appel : <br />
   at ?.?.?(ENHMETAHEADER ?)<br />
   at ?.?.?(IntPtr ?)<br />
   at Ab2d.ReaderWmf.GetGeometryFromHemf(IntPtr hemf, GeometrySettings settings)<br />
   at ... (our code) "<br />
Have you ever seen this problem before ? Is this problem resolved in most recent version of Readerwmf ?<br />
The code used in WPF App is : <br />
ReaderWmf metafileReader = new ReaderWmf();<br />
            Metafile metafileImage = null;<br />
<br />
            IDataObject iData = Clipboard.GetDataObject();<br />
            if (iData.GetDataPresent(DataFormats.EnhancedMetafile))<br />
            {<br />
                metafileImage = (Metafile)iData.GetData(DataFormats.EnhancedMetafile);<br />
            }<br />
<br />
            IntPtr hEmf = metafileImage.GetHenhmetafile();<br />
<br />
            Image myImage = metafileReader.GetGeometryFromHemf(hEmf, GeometrySettings.BasicOptimization);<br />
            myImage.Stretch = Stretch.Fill;<br />
<br />
            string xamlStr = string.Empty;<br />
<br />
            StringBuilder sb = new StringBuilder();<br />
            TextWriter tw = new StringWriter(sb);<br />
            XmlTextWriter xw = new XmlTextWriter(tw);<br />
            xw.Formatting = Formatting.Indented;<br />
<br />
            if (myImage != null)<br />
            {<br />
                XamlWriter.Save(myImage, xw);<br />
                xamlStr = sb.ToString();<br />
            }<br />
            xw.Close();<br />
<br />
Thanks for your responses.]]></description>
			<content:encoded><![CDATA[Hello,<br />
we use Ab2d.ReaderWmf.dll in 5.4.4299.36701 version, in an WPF Application, by the method GetGeometryFromHemf.<br />
When we copy an object from Visio 2010 (Airport Symbol for example), and paste into this WPF Application, this App crashes with the exception: <br />
"FileFormatException : Unknown file format! Ab2d.ReaderWmf can read only valid metafiles.<br />
	Pile d'appel : <br />
   at ?.?.?(ENHMETAHEADER ?)<br />
   at ?.?.?(IntPtr ?)<br />
   at Ab2d.ReaderWmf.GetGeometryFromHemf(IntPtr hemf, GeometrySettings settings)<br />
   at ... (our code) "<br />
Have you ever seen this problem before ? Is this problem resolved in most recent version of Readerwmf ?<br />
The code used in WPF App is : <br />
ReaderWmf metafileReader = new ReaderWmf();<br />
            Metafile metafileImage = null;<br />
<br />
            IDataObject iData = Clipboard.GetDataObject();<br />
            if (iData.GetDataPresent(DataFormats.EnhancedMetafile))<br />
            {<br />
                metafileImage = (Metafile)iData.GetData(DataFormats.EnhancedMetafile);<br />
            }<br />
<br />
            IntPtr hEmf = metafileImage.GetHenhmetafile();<br />
<br />
            Image myImage = metafileReader.GetGeometryFromHemf(hEmf, GeometrySettings.BasicOptimization);<br />
            myImage.Stretch = Stretch.Fill;<br />
<br />
            string xamlStr = string.Empty;<br />
<br />
            StringBuilder sb = new StringBuilder();<br />
            TextWriter tw = new StringWriter(sb);<br />
            XmlTextWriter xw = new XmlTextWriter(tw);<br />
            xw.Formatting = Formatting.Indented;<br />
<br />
            if (myImage != null)<br />
            {<br />
                XamlWriter.Save(myImage, xw);<br />
                xamlStr = sb.ToString();<br />
            }<br />
            xw.Close();<br />
<br />
Thanks for your responses.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Embedded image not converted]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=3905</link>
			<pubDate>Thu, 04 Jul 2013 12:38:45 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=201">kguetter</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=3905</guid>
			<description><![CDATA[Hello Andrej,<br />
<br />
The attached emf file has three images in the upper row, of which only two get converted.<br />
The upper left one (which has an alpha channel) does not appear in the generated xaml. Also Paste2Xaml does not show it.<br />
<br />
Is there anything I can do about it?<br />
<br />
Klaus<br />
<br />
P.S. I cannot upload any files. An error message "The file upload failed. Please choose a valid file and try again. Error details: There was a problem moving the uploaded file to its destination." appears. So I will send it to you by EMail.]]></description>
			<content:encoded><![CDATA[Hello Andrej,<br />
<br />
The attached emf file has three images in the upper row, of which only two get converted.<br />
The upper left one (which has an alpha channel) does not appear in the generated xaml. Also Paste2Xaml does not show it.<br />
<br />
Is there anything I can do about it?<br />
<br />
Klaus<br />
<br />
P.S. I cannot upload any files. An error message "The file upload failed. Please choose a valid file and try again. Error details: There was a problem moving the uploaded file to its destination." appears. So I will send it to you by EMail.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Ab2d.ReaderWmf licensing]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=3901</link>
			<pubDate>Mon, 01 Apr 2013 08:07:14 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=9826">SergeyA</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=3901</guid>
			<description><![CDATA[Hello,<br />
I am the product manager of ActiveReports product <br />
at ComponentOne company:<br />
<a href="http://www.componentone.com/SuperProducts/ActiveReports/" target="_blank" rel="noopener" class="mycode_url">http://www.componentone.com/SuperProduct...veReports/</a><br />
<br />
We are interested in using Ab2d.ReaderWmf component <br />
in our WPF report viewer component. <br />
I have a couple of question though:<br />
<br />
1. We would like to use ReaderWmf component in the <br />
code of DLL, not the .exe. Does your licensing model<br />
support this type of usage?<br />
<br />
2. We would like to embed ReaderWmf in <br />
our component DLL by using smart assembly:<br />
<a href="http://www.red-gate.com/supportcenter/content/SmartAssembly/help/6.7/SA_EmbeddingDependencies" target="_blank" rel="noopener" class="mycode_url">http://www.red-gate.com/supportcenter/co...pendencies</a><br />
Is it allowed by EULA?<br />
<br />
Thanks,<br />
Sergey]]></description>
			<content:encoded><![CDATA[Hello,<br />
I am the product manager of ActiveReports product <br />
at ComponentOne company:<br />
<a href="http://www.componentone.com/SuperProducts/ActiveReports/" target="_blank" rel="noopener" class="mycode_url">http://www.componentone.com/SuperProduct...veReports/</a><br />
<br />
We are interested in using Ab2d.ReaderWmf component <br />
in our WPF report viewer component. <br />
I have a couple of question though:<br />
<br />
1. We would like to use ReaderWmf component in the <br />
code of DLL, not the .exe. Does your licensing model<br />
support this type of usage?<br />
<br />
2. We would like to embed ReaderWmf in <br />
our component DLL by using smart assembly:<br />
<a href="http://www.red-gate.com/supportcenter/content/SmartAssembly/help/6.7/SA_EmbeddingDependencies" target="_blank" rel="noopener" class="mycode_url">http://www.red-gate.com/supportcenter/co...pendencies</a><br />
Is it allowed by EULA?<br />
<br />
Thanks,<br />
Sergey]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[ReaderWmf leaks temporary files]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=242</link>
			<pubDate>Tue, 14 Feb 2012 16:32:44 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=201">kguetter</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=242</guid>
			<description><![CDATA[I have the following code:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>using (ReaderWmf reader = new ReaderWmf())<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;Image image = reader.ReadGeometry(metaFile, geometrySettings);<br />
&nbsp;&nbsp;&nbsp;&nbsp;// ...<br />
}</code></div></div><br />
Every time this section is executed, a EMF file is created in %LOCALAPPDATA%.<br />
There is a first chance exception on the closing brace (i.e. the Dispose call) "The process cannot access the file 'C:\Users\kg\AppData\Local\9333da9f-ef9d-4fd1-ab8a-66d8b0647bc0.emf' because it is being used by another process." Here is the call stack:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&nbsp;&nbsp;&nbsp;&nbsp;mscorlib.dll!System.IO.__Error.WinIOError(int errorCode = 0x80070020, string maybeFullPath = "C:&#92;&#92;Users&#92;&#92;kg&#92;&#92;AppData&#92;&#92;Local&#92;&#92;9333da9f-ef9d-4fd1-ab8a-66d8b0647bc0.emf") + 0x321 Bytes&nbsp;&nbsp;&nbsp;&nbsp;<br />
 &nbsp;&nbsp;&nbsp;&nbsp;mscorlib.dll!System.IO.File.Delete(string path) + 0x99 Bytes&nbsp;&nbsp;&nbsp;&nbsp;<br />
 &nbsp;&nbsp;&nbsp;&nbsp;Ab2d.ReaderWmf.dll!Ab2d.ReaderWmf.ر() + 0x6c Bytes&nbsp;&nbsp;&nbsp;&nbsp;<br />
 &nbsp;&nbsp;&nbsp;&nbsp;Ab2d.ReaderWmf.dll!Ab2d.ReaderWmf.Dispose(bool disposing = true) + 0x2b Bytes&nbsp;&nbsp;&nbsp;&nbsp;<br />
 &nbsp;&nbsp;&nbsp;&nbsp;Ab2d.ReaderWmf.dll!Ab2d.ReaderWmf.Dispose() + 0x22 Bytes</code></div></div><br />
Using Sysinternals ProcessExplorer I found that there is no other process having an open handle to the file (only my program itself).<br />
<br />
Klaus<br />
<br />
Edit: Maybe this is the same problem as in the post "Problem with ReaderWmf Class in Web Service (WCF)". The metaFile variable in my code snippet is indeed a Stream.]]></description>
			<content:encoded><![CDATA[I have the following code:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>using (ReaderWmf reader = new ReaderWmf())<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;Image image = reader.ReadGeometry(metaFile, geometrySettings);<br />
&nbsp;&nbsp;&nbsp;&nbsp;// ...<br />
}</code></div></div><br />
Every time this section is executed, a EMF file is created in %LOCALAPPDATA%.<br />
There is a first chance exception on the closing brace (i.e. the Dispose call) "The process cannot access the file 'C:\Users\kg\AppData\Local\9333da9f-ef9d-4fd1-ab8a-66d8b0647bc0.emf' because it is being used by another process." Here is the call stack:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>&nbsp;&nbsp;&nbsp;&nbsp;mscorlib.dll!System.IO.__Error.WinIOError(int errorCode = 0x80070020, string maybeFullPath = "C:&#92;&#92;Users&#92;&#92;kg&#92;&#92;AppData&#92;&#92;Local&#92;&#92;9333da9f-ef9d-4fd1-ab8a-66d8b0647bc0.emf") + 0x321 Bytes&nbsp;&nbsp;&nbsp;&nbsp;<br />
 &nbsp;&nbsp;&nbsp;&nbsp;mscorlib.dll!System.IO.File.Delete(string path) + 0x99 Bytes&nbsp;&nbsp;&nbsp;&nbsp;<br />
 &nbsp;&nbsp;&nbsp;&nbsp;Ab2d.ReaderWmf.dll!Ab2d.ReaderWmf.ر() + 0x6c Bytes&nbsp;&nbsp;&nbsp;&nbsp;<br />
 &nbsp;&nbsp;&nbsp;&nbsp;Ab2d.ReaderWmf.dll!Ab2d.ReaderWmf.Dispose(bool disposing = true) + 0x2b Bytes&nbsp;&nbsp;&nbsp;&nbsp;<br />
 &nbsp;&nbsp;&nbsp;&nbsp;Ab2d.ReaderWmf.dll!Ab2d.ReaderWmf.Dispose() + 0x22 Bytes</code></div></div><br />
Using Sysinternals ProcessExplorer I found that there is no other process having an open handle to the file (only my program itself).<br />
<br />
Klaus<br />
<br />
Edit: Maybe this is the same problem as in the post "Problem with ReaderWmf Class in Web Service (WCF)". The metaFile variable in my code snippet is indeed a Stream.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Problem with ReaderWmf Class in Web Service (WCF)]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=195</link>
			<pubDate>Wed, 02 Nov 2011 14:28:35 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=870">amurciano</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=195</guid>
			<description><![CDATA[Hello.<br />
<br />
I had a problem with emf/wmf to Silverlight xaml conversion.<br />
<br />
I have a Web Service WCF in IIS, and I want do a conversion on the server side.<br />
<br />
The following code is a code example :<br />
<br />
ReaderWmf wmfReader = new ReaderWmf();<br />
MemoryStream stream = new MemoryStream(_buffer);<br />
wmfReader.Read(stream);<br />
<br />
When I use the Read(stream) method of ReaderWmf class :<br />
<br />
public Viewbox Read(Stream stream)<br />
<br />
I get the following exception (UnauthorizedAccessException):<br />
<br />
Access to the path 'c:\windows\system32\inetsrv\be156149-e1c8-4327-a8c5-ef809e05fbad.emf' is denied.<br />
<br />
I tried to give the user permissions IIUSR_USERS in this folder, but is not allowed.<br />
<br />
As I can do?<br />
<br />
Regards.]]></description>
			<content:encoded><![CDATA[Hello.<br />
<br />
I had a problem with emf/wmf to Silverlight xaml conversion.<br />
<br />
I have a Web Service WCF in IIS, and I want do a conversion on the server side.<br />
<br />
The following code is a code example :<br />
<br />
ReaderWmf wmfReader = new ReaderWmf();<br />
MemoryStream stream = new MemoryStream(_buffer);<br />
wmfReader.Read(stream);<br />
<br />
When I use the Read(stream) method of ReaderWmf class :<br />
<br />
public Viewbox Read(Stream stream)<br />
<br />
I get the following exception (UnauthorizedAccessException):<br />
<br />
Access to the path 'c:\windows\system32\inetsrv\be156149-e1c8-4327-a8c5-ef809e05fbad.emf' is denied.<br />
<br />
I tried to give the user permissions IIUSR_USERS in this folder, but is not allowed.<br />
<br />
As I can do?<br />
<br />
Regards.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[2D performance]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=125</link>
			<pubDate>Fri, 17 Jun 2011 11:19:53 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=707">dauciunas</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=125</guid>
			<description><![CDATA[Hi, <br />
<br />
I've taken a look at Your Past2Xaml sample, and it's performance is concerning me a little. I took a "Database.emf" and multiplied it 64x times. (see attached)<br />
<br />
When I zoom out to see the full diagram, Zoom and Pan functions start to demonstrate ~1 Sec Lag. <br />
<br />
Is it possible to improve the performance at this level  of detail ?<br />
or put it another way - at this count of objects ?<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=21" target="_blank" title="">Extra Large.zip</a> (Size: 1.97 MB / Downloads: 0)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Hi, <br />
<br />
I've taken a look at Your Past2Xaml sample, and it's performance is concerning me a little. I took a "Database.emf" and multiplied it 64x times. (see attached)<br />
<br />
When I zoom out to see the full diagram, Zoom and Pan functions start to demonstrate ~1 Sec Lag. <br />
<br />
Is it possible to improve the performance at this level  of detail ?<br />
or put it another way - at this count of objects ?<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=21" target="_blank" title="">Extra Large.zip</a> (Size: 1.97 MB / Downloads: 0)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Problem converting MM_HIMETRIC file to wpf]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=71</link>
			<pubDate>Mon, 14 Feb 2011 10:44:47 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=466">roarmo</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=71</guid>
			<description><![CDATA[Hello!<br />
<br />
I have some EMF files created with the MM_HIMETRIC mapping mode. The Y-coordinate is negative the longer down on the page I get. <br />
<br />
When loading the file into Paste2Xaml and displaying the xaml preview, the left and top properties are negative, but nothing displays. <br />
<br />
Is files with MM_HIMETRIC supported, or is there a workaround that could be applied?<br />
<br />
Thank you in advance for your answer.<br />
<br />
Sample file enclosed.<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=11" target="_blank" title="">testfilemftowpf.zip</a> (Size: 1.49 KB / Downloads: 2)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Hello!<br />
<br />
I have some EMF files created with the MM_HIMETRIC mapping mode. The Y-coordinate is negative the longer down on the page I get. <br />
<br />
When loading the file into Paste2Xaml and displaying the xaml preview, the left and top properties are negative, but nothing displays. <br />
<br />
Is files with MM_HIMETRIC supported, or is there a workaround that could be applied?<br />
<br />
Thank you in advance for your answer.<br />
<br />
Sample file enclosed.<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.ab4d.com/images/attachtypes/zip.gif" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=11" target="_blank" title="">testfilemftowpf.zip</a> (Size: 1.49 KB / Downloads: 2)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[ReaderWMF & Gradient]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=45</link>
			<pubDate>Wed, 30 Jun 2010 13:05:57 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=39">abody</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=45</guid>
			<description><![CDATA[Hi,<br />
<br />
I have a simple question: <br />
Does the ReaderWMF treats the gradient color?<br />
<br />
Because I have test to import an EMF file with gradient color from my favorite software Visio 2003. After transformation, the XAML string contains a drawing with many SolidColorBrush as ressources but they are never used. <br />
<br />
My image is white when I use :<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>Image myImage = metafileReader.GetGeometryFromHemf(hEmf, GeometrySettings.BasicOptimization);</code></div></div><br />
It that a normal behaviour ?<br />
<br />
Antony.]]></description>
			<content:encoded><![CDATA[Hi,<br />
<br />
I have a simple question: <br />
Does the ReaderWMF treats the gradient color?<br />
<br />
Because I have test to import an EMF file with gradient color from my favorite software Visio 2003. After transformation, the XAML string contains a drawing with many SolidColorBrush as ressources but they are never used. <br />
<br />
My image is white when I use :<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>Image myImage = metafileReader.GetGeometryFromHemf(hEmf, GeometrySettings.BasicOptimization);</code></div></div><br />
It that a normal behaviour ?<br />
<br />
Antony.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Get Metafile from Image Control]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=44</link>
			<pubDate>Wed, 30 Jun 2010 10:06:21 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=39">abody</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=44</guid>
			<description><![CDATA[Hi all,<br />
<br />
I'm trying to get a metafile that I have transform an Image with <br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>ReaderWmf metafileReader = new ReaderWmf();<br />
Metafile metafileImage = Clipboard.GetData(DataFormats.EnhancedMetafile) as Metafile;<br />
IntPtr hEmf = metafileImage.GetHenhmetafile();<br />
Image myImage = metafileReader.GetGeometryFromHemf(hEmf, GeometrySettings.BasicOptimization);<br />
string xamlStr = metafileReader.GetXaml();</code></div></div><br />
Now I have my image control but I'm stuck to get the content as metafile.<br />
I guess the ReaderWmf is not able to do that?<br />
Do you have a solution because I need to do some transformation on my metafile and serialize it as XAML.<br />
<br />
Regards,<br />
Antony.]]></description>
			<content:encoded><![CDATA[Hi all,<br />
<br />
I'm trying to get a metafile that I have transform an Image with <br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>ReaderWmf metafileReader = new ReaderWmf();<br />
Metafile metafileImage = Clipboard.GetData(DataFormats.EnhancedMetafile) as Metafile;<br />
IntPtr hEmf = metafileImage.GetHenhmetafile();<br />
Image myImage = metafileReader.GetGeometryFromHemf(hEmf, GeometrySettings.BasicOptimization);<br />
string xamlStr = metafileReader.GetXaml();</code></div></div><br />
Now I have my image control but I'm stuck to get the content as metafile.<br />
I guess the ReaderWmf is not able to do that?<br />
Do you have a solution because I need to do some transformation on my metafile and serialize it as XAML.<br />
<br />
Regards,<br />
Antony.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[ReaderWmf and Clipboard]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=43</link>
			<pubDate>Mon, 28 Jun 2010 13:52:43 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=39">abody</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=43</guid>
			<description><![CDATA[Hi,<br />
<br />
I'm trying to get a metafile from clipboard with the ReaderWmf component.<br />
But I don't know how I can do that.<br />
<br />
I can get a System.Window.Control.Image with this line:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>Image clipboardImage = Clipboard.GetData(DataFormats.MetafilePicture) as Image;</code></div></div>I'm not sure this is a good solution and I don't how to create a stream for Image to the ReaderWmf.<br />
<br />
Anyone have an idea.<br />
Antony.]]></description>
			<content:encoded><![CDATA[Hi,<br />
<br />
I'm trying to get a metafile from clipboard with the ReaderWmf component.<br />
But I don't know how I can do that.<br />
<br />
I can get a System.Window.Control.Image with this line:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>Image clipboardImage = Clipboard.GetData(DataFormats.MetafilePicture) as Image;</code></div></div>I'm not sure this is a good solution and I don't how to create a stream for Image to the ReaderWmf.<br />
<br />
Anyone have an idea.<br />
Antony.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Paste2Xaml outdated]]></title>
			<link>https://forum.ab4d.com/showthread.php?tid=39</link>
			<pubDate>Fri, 11 Jun 2010 09:55:02 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.ab4d.com/member.php?action=profile&uid=35">ab29</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.ab4d.com/showthread.php?tid=39</guid>
			<description><![CDATA[Hi, i'm working with Expression Studio, and i bought the 07/06 Paste2Xaml pro for its features<br />
<br />
In the same time, the 07 june, Microsoft released Studio 4 as free upgrade for Studio 3 owners. I was not aware of that.<br />
<br />
The only improvement into Expression Design is the ability to import Windows metafiles (wmf) and Enhanced Metafiles (emf), making useless Paste2Xaml into my workflow.<br />
<br />
I have the impression to have lost my money<br />
<br />
I was also interested in buying the ZoomPanel but this is also a new behaviour feature into Expression Blend.<br />
<br />
What is the future of WPF Graphics products ?<br />
<br />
ab29]]></description>
			<content:encoded><![CDATA[Hi, i'm working with Expression Studio, and i bought the 07/06 Paste2Xaml pro for its features<br />
<br />
In the same time, the 07 june, Microsoft released Studio 4 as free upgrade for Studio 3 owners. I was not aware of that.<br />
<br />
The only improvement into Expression Design is the ability to import Windows metafiles (wmf) and Enhanced Metafiles (emf), making useless Paste2Xaml into my workflow.<br />
<br />
I have the impression to have lost my money<br />
<br />
I was also interested in buying the ZoomPanel but this is also a new behaviour feature into Expression Blend.<br />
<br />
What is the future of WPF Graphics products ?<br />
<br />
ab29]]></content:encoded>
		</item>
	</channel>
</rss>