Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Stenvang on September 08, 2014, 11:34:16 pm
-
As the name of the question says: Is it possibly to access the image manager from c#?
Why?
I would like to copy/paste the images into a word document through code or read them into a word document from their file path also through code.
-
You need to access t_image with a query. Use something like
Repository.SQLQuery("SELECT * FROM t_image WHERE ...");
q.
-
May this link will help you to insert the image from EA to Word document:
http://stackoverflow.com/questions/25358337/import-image-from-enterprise-arch...
-
May this link will help you to insert the image from EA to Word document:
http://stackoverflow.com/questions/25358337/import-image-from-enterprise-arch...
Thx for your reply but that link is actually my own question and solution to handling pictures in EA. The question of this topic is not how to handle the pictures, but how to access them from the image manager in EA.
-
In the referenced thread you ask about the diagram image. So what do you mean by "image manager"?
q.
-
By "Image Manager" in meant exactly what you wrote in the first reply.
Using the SQLQuery gave me everything I needed cause the images contains the base64String so I can use that to convert to an image object in c#.
Ty!
-
lol - would have been nice to recognize that in your reply above. Next time then ;)
q.