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