Java Code formatting

G

GCampolo

Hi All!

I developed a Java project, consisting of about 20 classes. Now I need
to append the Java source of that project to MS Word document. I did
not try to do that until, but I could imagine that it could be quite a
mess. Has anyone already did that and may have some tipps & tricks to
do it in a quick and proper way?

Thanks
Gino
 
H

Howard Kaikow

Compile the java code into an activex dll.
Add a reference to the dll in the word project.
instantiate the class in the Word vba code.
use the class as you would use any other class in VB/VBA.

For more info on Word VBA see the list of WordVBA books at
http://www.standards.com/index.html?WordVBABooks.
I'd suggest Steve Roman's Writing Word Macros.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top