• Post Reply Bookmark Topic Watch Topic
  • New Topic

Automating Mail Merge  RSS feed

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i just posted a similar message on the intermidate level, I don't really know whether this is right place to put it, so if I am wrong sorry. But I was wondering if it was possible to automate the mail merge process in MS Word using java? The datasource would be from a MS Access database. I know its possible using VB but I would rather use java instead. Thanks everyone.
 
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you can do this in VB then you could make calls to the native dlls through Java - just find out which dll the VB sode uses and start reading up on JNI.
However, if you can do it with VB and you are using all MS products, I'd have to you ask why you would want to do it in Java in the first place?
 
bob burns
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll probably just stick to using VB. Thanks for your reply.
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I've already done this with a Java-Com bridge. There are some solutions available, and one nice free one is JACOB, wich you can find at http://danadler.com/jacob/
It's not difficult to use, and on the forum you can find much usefull info.
regards,
Frederico Melo
www.vettatech.com
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is indeed another way Frederico, however Bob if you want to try this route I think you need to be aware (and someone please correct me if I'm wrong) that JACOB was built to use MS's soon-to-be-discontinued "Java"(sic) implementation, and as such is only really compatible with pretty old JSDKs (pre-Java2 anyway).
A Java-COM bridge would do it - but in my experience, the only really good Java-COM bridges are commercial. Again though, since you have an all-MS environment, Java would seem like an over complication.
 
Frederico Melo
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, It's not. Actually, i use Jacob in an enterprise system running under Sun's JDK 1.4.2 to do Mail Merge. So, It's not related to Microsoft's VM. It only uses a DLL and communicates by JNI.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!