This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - How to Open Adobe Illustrator (AI) files from Document

Sachin - Thursday, June 7, 2012 6:26 AM:

I have Document attached with file *.ai (Illustrator File).

when I click on Edit Button(Custom Button) on the form then ai file must be open.
can any body give clue how to go ahead with this?
Sachin G.


aknourenko - Friday, June 8, 2012 10:46 AM:

a) You should create in Innovator the item of type "FileType" that corresponds to Illustrator File and extension (if it does not exist yet). Make sure to specify the correct mime type (I believe for *.ai it's "application/postscript"; see, for instance: www.webmaster-toolkit.com/mime-types.shtml) as this mime type will be used when the file is downloaded from the Innovator vault.

b) You have to register the Illustrator File type in Windows and specify the Illustrator as the application that opens this type of files.

I believe it should work after that. If it will still not work I would recommend to check this article: msdn.microsoft.com/.../ms775148(v=vs.85).aspx as essentially all the vault server does when a file is requested from a client is the following: i) set the proper header based on the FileType.mime_type of the file; ii) stream the file content back to the client.