0 Replies Latest reply on May 20, 2013 5:46 AM by jacebok

    Error when trying to use ExportOptionsTIFF in Illustrator CS6


      I am using Illustrator C6 and I am using C# and a com reference to make a windows program but I can't seem to get the export to tiff to work.  Here is the method I am using.


      public static void createTifs()


                  app = new Illustrator.Application();

                  doc = app.ActiveDocument;

                  var exTif = new Illustrator.ExportOptionsTIFF();

                   exTif.LZWCompression = true;

                  exTif.Resolution = 300;

                  exTif.SaveMultipleArtboards = true;

                  exTif.ImageColorSpace = Illustrator.AiImageColorSpace.aiImageGrayScale;

                  doc.Export(doc.FullName, Illustrator.AiExportType.aiTIFF, exTif);




      The crash happens on the 3rd line (var exTif = new Illustrator.ExportOptionsTIFF();) and I get the exception of...


      Unable to cast COM object of type 'System.__ComObject' to interface type 'Illustrator.ExportOptionsTIFF'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{2A8F3C5F-B4E3-45BB-89CB-93F062B4F9F1}' failed due to the following error: No such interface supported


      I can use some of the other ExportOptions and they work fine - is theer something I need to do different for tifs?