XamlXporter COMException Fix

Posted Friday, August 03, 2007 12:51 PM by cromwellryan

There is a pretty cool, but curiously quiet, CodePlex project called XamlXporter that allows you to export Adobe Illustrator files/resources to WPF files.  This is a great thing since WPF is young and there are a lot of free resources and tutorials for Adobe Illustrator out there, as well as, you will probably find that design firms are going to use Illustrator before Blend for quite while. 

The current version of Illustrator is C3, but the current/latest version of XamlXporter is built for C2.  Apparently Adobe has updated the GUID for Illustrator's COM Type Library, so the XamlXporter won't work with C3.  Here's how I fixed it:

  1. Install Illustrator.  There is a 30-day trial version here.
  2. Download XamlXporter (0.2 Alpha is here).
  3. Open Visual Studio 2005 (you can probably use 2008/Orcas, but I didn't).
  4. Create a new project (I used C# Console), but I'm sure VB WinForms, etc will work just as well.
  5. Add a COM Reference to Adobe Illustrator C3 Type Library.
  6. Browse to the <project>\bin\Debug|Release directory and copy the Interop.Illustrator.dll to the XamlXporter binary directory.
  7. Start up the XamlXporter according to the instructions and Voila!

If you're lazy, you can download the Interop assembly I created here

Filed under: ,

Comments

# Exporting Adobe Illustrator resources to WPF

Friday, August 03, 2007 7:52 AM by Ryan Cromwell

There are a lot of sites out there with great vector resources provided in Adobe Illustrator files. A

Leave a Comment

(required) 
(required) 
(optional)
(required)