Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Viking

Pages: 1 [2] 3 4 ... 17
Hi together,

in I read, that for Scripting "Microsoft Scripting Engine" (or "Mozilla SpiderMonkey") is necessary. My questions are:

(1) Is MS Script Debugger not needed anymore? If yes, from when on?
(2) Do Microsoft Scripting Engine and Mozilla SpiderMonkey support different features?
(3) Is the MS Script Debugger always needed for scripting or only in special cases (e.g. ActiveX)?

I cannot answer these questions on my own because I cannot install the deprecated MS Script Debugger.

Many thanks in advance, V.

Hi experts,

I am trying to create a report with Virtual Document. The “Master Document” has several “Model Documents” assigned to it. Every “Model Document” knows its own template. I have several questions:

(1) Is there a possibility to retrieve the tagged value of a “Model Document”? I am only able to retrieve the tagged values of a “Master Document”.

(2) Sometimes the “Model Documents” do not use their templates. Instead they use the system Template “Model Report”. Sometimes they use the right template. Is there a rule behind it, when a “Master Document” or “Model Document” uses which rtf template?

(3) I stored the parameters of “Generate Documentation” as a “Defined Document” in Resources. Can I put this element (or a representative) on the diagram of the “Master Document” or any diagram?

(4) Is it possible that a “Filter” retrieves the search value from somewhere, e.g. from the tagged value of “Master Document”?

Many thanks in advance, V.

I found the solution in "We don't use Report Specification element, but we store specific options into Resource Document. Use Resource Document button on Generate Documentation dialog. This specification is stored in the Resources Window under Document Generation.

Hi experts,

I am trying to create a report with Virtual Document. This is a high-sophisticated feature (at the moment more confusing than high sophisticated) of EA. I am using Master Document > Right Click > Documentation > Generate Documentation to generate the report. When I use this feature somewhere else the parameters for the Master Document get overwritten. Very strange. I have this high sophisticated feature Virtual Document and cannot safe these parameters.

O.K. I tried the element “Report Specification”. But then I read: Q: “Can you link the report specification with Virtual Documents (Master and Model Documents)?” A: “Not yet. We are investigating this feature request”. It would have been a good idea, but it is still under investigation...

Or am I wrong? Does there exist a possibility to save the parameters of Generate Documentation or Virtual Document, respectively?

Many thanks in advance, V.

Hi Viking
If you need to insert images to word (without memory stream )then you can try using below codes

Code: [Select]
Selection.InlineShapes.AddPicture FileName:= _"fullPathOftheImage", LinkToFile:=False, _SaveWithDocument:=True

Code: [Select]
objShapes.AddPicture (fullPathOftheImage)   

Thank you, Arshad. That worked.


Could somebody tell me, why it is better to use PutDiagramImageOnClipboard instead of PutDiagramImageToFile? Is it just because of working memory?

I got the half of Geerts example to work in VBA. I do not find an equivalent in VBA for the code below (see also Simons comment). Does anybody know the solution?

MemoryStream imageStream = new MemoryStream(File.ReadAllBytes(filename));
Image diagramImage = Image.FromStream(imageStream);

Many thanks in advance, V.

I identified it. I had to reference mscorlib.dll. Many thanks.


I am trying to use the script above in Word resp. in VBA.

I am new to VBA. I cannot find MemoryStream.

Can somebofy tell me, how I can link MemoryStream to my code resp. which library I have to reference?

Many thanks in advance, V.

Automation Interface, Add-Ins and Tools / Re: Document Bookmarks
« on: January 11, 2018, 09:12:57 pm »
As I understood it this procedure will replace the bookmark in Work by the contents of a generated RTF report.
Is that what you are looking for?

Many thanks, Geert. I am afraid that I did not to see the wood for the trees. I saw something different in the description... :(

Automation Interface, Add-Ins and Tools / Re: Document Bookmarks
« on: January 11, 2018, 07:24:04 pm »
Does anybody have an idea?

Automation Interface, Add-Ins and Tools / Document Bookmarks
« on: December 14, 2017, 06:16:55 am »
Hello together,

I am still working on my small project creating a report with word by replacing GUIDs with artifacts out of EA (see,38932.0.html).

I identified a potential solution called "Document Bookmarks" decribed in

I followed the instructions and got an exception: "Bookmark undefined".

I did not think about the concept behind it before testing the example. Because the example did not work, I wondered, how Word can know that I mean a diagram in EA with this bookmark. Do I have to prepare Word? Do I have to use a special template (the one which I have to insert with "document file to insert")?

Many thanks in advance, V.

Automation Interface, Add-Ins and Tools / Re: GUID of a diagram
« on: December 11, 2017, 08:59:27 pm »
Thank you very much !!! Thanks also to the learners. I am also here to learn  :)

Automation Interface, Add-Ins and Tools / GUID of a diagram
« on: December 09, 2017, 05:15:24 am »
Hello together,

I thought that finding out the GUID of a diagram without using a script is simple. But it is not. The property field is empty. The question has already been asked, but no answer was given:

Could someody give me the answer, please? Many thanks in advance, V.

Do you want to

(1) retrieve a diagram image from EA and use it in Word, or
(2) get an image from Word and put it in EA?

For the first one you can use EA.Repository.PutDiagramImageToFile ()


I want to do (1). Thank you very much for your help.

I wonder if it possible to retrieve a diagram (as a picture) from Word using the Sparx Object Model. I did not find anything but an addin using the clipboard.

It would be could if no installation would be required.

Pages: 1 [2] 3 4 ... 17