Page 1 of 1

Running personal extensions in AddIn

PostPosted: Mon Apr 15, 2019 4:24 am
by StreetScooby
Can I run my own java code in the AddIn?

Re: Running personal extensions in AddIn

PostPosted: Mon Apr 15, 2019 7:38 am
by jason
Interesting idea.

The AddIn is a VSTO for Word .NET addin. The Java code has been converted to a DLL using IKVM.

So: if there is a framework/project/easy way of adding a "personal extension" DLL to a VSTO addin, then in principle you could use IKVM to convert your Java code to a DLL and just add it.

Maybe helpful:
- ... te-folders
- ... at-runtime

If I was re-writing the AddIn today, instead of converting the Java code to a DLL, I might look to use graalvm to run it as native code (if/when graalvm runs on Windows).

Re: Running personal extensions in AddIn

PostPosted: Wed Apr 17, 2019 2:43 am
by StreetScooby
Here's what I'm trying to do...

I have read S.J. Scott's To-Do List Makeover: ... 299&sr=8-3

I have found the philosophy he describes in that book to be very good, and have been using it now for several years. The philosophy describes the use of several different lists, two of which are your Weekly List and your collection of Project Lists. Within each document, I keep bulleted items that define a Task. I cut/paste these bulleted paragraphs from Project Lists to Weekly Lists. In the process, there are times where I forget which Project List a given bulleted Task came from.

So, what I would like to do is add additional "hidden" information to a bulleted Task to aid in remembering the Project List a bulleted Task came from. This additional information is held as further-indented child bullets. Here's what's in my minds eye:

    * A Project Task
      * Paragraph Data
        * Filename: a_filename; CopyDate: the_copy_date

Where Paragraph Data is literal, and its sub-items represent movements of that Project Task across documents. This information is hidden until needed.

Is this something I can do using docx4j? Or, should I pursue VBA instead? I really like what I'm seeing in docx4j.