Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Visio Import Image throw error

$
0
0

Hi!
I have a VisioDravingControl in WPF over WindowsFormsHost.
When i try to import any image to Page (ActivePage, etc), Visio throwing exception:

{System.Runtime.InteropServices.COMException (0x86DB0789): An error occurred. Visio is unable to complete importing.

Import code:

_ax.Window.Application.ActivePage.Import(@"D:\1.jpg");

This dont work too http://visguy.com/vgforum/index.php?topic=1629.msg14840#msg14840 (from http://social.msdn.microsoft.com/Forums/en-US/d7696904-5197-48ed-bb1b-d526da8a606c/visio-c-import-images-to-masters).

VBA Macro works fine

Sub Macro1()

   ActivePage.Import ("D:\image.jpg")

End Sub



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>