[Openroad-users] Embedding MS Word in an OR application

Tulloch, Alex ATulloch at aviagen.com
Tue Apr 1 18:40:21 EST 2008


Andrew, 

I too found many issues trying to use active-X with OpenRoad.

How I do this is to actually control the merge from the word document,
and simply use active-x to call a word document and open it.

It is restrictive in that the format of your word doc has to be fixed,
but as I was doing Invoices that was not a problem, and most mail-merges
are of a pre-determined format, so in practice it doesn't matter.

We have been using this method to produce invoices for over 4 years now
and haven't yet hit a problem with any versions of office from office97
onwards yet - I haven't tried office2007, but XP and 2003 are definitely
OK with it, so Im hoping Microsoft haven't changed anything in 2007 that
will affect this.

Alex.

-----Original Message-----
From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com] On Behalf Of Andrew
Sent: 31 March 2008 23:13
To: International OpenROAD Users
Subject: Re: [Openroad-users] Embedding MS Word in an OR application

Hi Danny,

Do your users have only one version of Word?

If they have different versions, then, this is hard work using
activex...

I use an external vb6 app (on WinXP) to perform late binding to get the 
users version and start it and run merges, spell checking, etc...

Have not looked at any Word 2007 issues yet and I know that there are 
gigantic issues with vb6 apps on Vista.

Let me know if you would like some of the coding.

Other programmers out there may have similar solutions using something 
other than vb6 and I would be interested to know what people are using, 
like maybe VB 2008 Express (which I think is free)?

Andrew.


Laverty, Danny wrote:
>
> My users have a need to kick off MS Word from OpenROAD 4.1 (probably 
> opening a new document from a template or opening a known document 
> that has a merge incorporated in it then going on to print the merged 
> document).
>
> I know others have done this or something similar (E.G. Pete's 
> "ActiveX Word - hanging" submission earlier this month). The OpenROAD 
> documentation shows me how to create and register External Class 
> Libraries but I could not tell from the list available to me what I 
> should be using or how to use it. I tried a "suck it and see" approach

> but didn't get anywhere.
>
> I thought it would be easy to search the web and find documentation on

> the ActiveX component I should be using and how to use it. So far I 
> have had a fruitless, frustrating search that has yielded almost 
> nothing. I can't even tell if I need to purchase ActiveX components 
> (for my developer PC or for runtime PCs as well) or if there are free 
> ActiveX components I can use.
>
> To get me kick-started, can anyone give me any pointers and/or sample 
> code?
>
> Danny
>
________________________________________________________________
OpenROAD-Users mailing list

You can maintain your subscription here:
http://www.peerlessit.com/mailman/listinfo/openroad-users

To unsubscribe click on this link
mailto:openroad-users-unsubscribe at peerlessit.com&subject=unsubscribe

To subscribe click on this link
mailto:openroad-users-subscribe at peerlessit.com&subject=subscribe 


*****************************************************************************
This e-mail contains confidential information and is intended solely for use by the individual named or entity to whom it is addressed.  Please notify the sender and postmaster at aviagen.com immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.  If you are not the named addressee, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.  Aviagen accepts no liability for the content of this e-mail and any consequences of actions taken in reliance on the contents, unless that information is subsequently confirmed in writing.  Any views, opinions or actions presented in this e-mail are solely the author's and have not been approved by Aviagen.  Any defamatory statements or infringing communication is contrary to Aviagen policy and outside the scope of the employment of the individual concerned.  No employee or agent is authorized to conclude any binding agreement on behalf of Aviagen with another party by e-mail. Aviagen has taken reasonable precautions to ensure no viruses are present in this e-mail, but cannot accept responsibility for any loss or damage arising from the use of this e-mail or attachments.
*****************************************************************************



More information about the Openroad-users mailing list