[DUG] Opening Word Document

Jeremy North jeremy.north at gmail.com
Thu Aug 19 15:11:03 NZST 2010


All versions of word are backwards compatible.

We support Word 2007 and 2010 mail merging. So it can be done.

We use late binding though, although we have used the early binding
units for Word 2007 as I was proof of concepting a new feature. I use
the Word 2000 unit for maximum compatibility.


On Thu, Aug 19, 2010 at 12:50 PM, Cameron Hart
<Cameron.Hart at flowsoftware.co.nz> wrote:
> I don’t think Delphi 6 supported Word 2007.  Even with BDS 2006 you needed
> to choose which version of Office you would support when you installed the
> application, as it could only load one set of components at the same time.
> You could choose between 2000 and 2003 versions.
>
>
>
> Regards,
>
> Cameron
>
>
>
>
>
> From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
> Behalf Of Eion McIntosh
> Sent: Thursday, 19 August 2010 9:59 a.m.
> To: NZ Borland Developers Group - Delphi List
> Subject: [DUG] Opening Word Document
>
>
>
> Hi
>
> I have an application which opens a word template document, makes a
> connection to the database file and does a mail merge. There is only one
> record for this mail merge and we have been running this successfully for
> the last 5-6 years with the app opening the document under Word 2000.
>
> We have migrated to Word 2007 and the mail merging process has changed a
> bit, so I’m trying to get the app updated for this. The app opens the
> document ok, but I can’t get it to setup the connection to the data source
> automatically. Under the Mail merge menu option it always wants to be set up
> from scratch each time. If I open the document directly from its directory,
> it makes the connection and works as I want it too, it’s only when I call to
> open the document from within my app it isn’t making the automatic
> connection.
>
> Using Delphi 6 and a TWordApplication component.
>
> Any thoughts, as I don’t want to user to have to manually make the
> connection every time.
>
> Regards
>
> Eion McIntosh | Business Systems Analyst | Silver Fern Farms Limited
> 199 - 201 Cashel St | PO Box 283, Christchurch 8041, New Zealand
> Tel +64 3 371 6725 | Fax +64 3 366 4412 | Mob +64 27 221 1438
> Email eion.mcintosh at silverfernfarms.co.nz  Web
> http://www.silverfernfarms.co.nz
>
> Silver Fern Farms - 100% Made of New Zealand
>
> This email (including any attachments) is confidential. If you have received
> it in error, please let us know immediately by return email and delete it
> from your system.
>
>
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
> unsubscribe
>



More information about the Delphi mailing list