Article View: borland.public.delphi.com.activex.using
Article #14Re: Bug
From: Craig Farrell
Date: Mon, 09 Jul 2007 23:56
Date: Mon, 09 Jul 2007 23:56
43 lines
2321 bytes
2321 bytes
Hi,
> I've detailed a small bug.
>
> http://olivier.pons.free.fr/delphi/delphi.php
Yes, I think this is a bug and you should submit
a QC report so it can be fixed. This problem will
show up in Word2003 and later as MS introduced
a new interface in the Microsoft.Office.Interop.Word
namespace.
The importer could avoid this in the same
way that it avoids other known name clashes.
For example, if you look at the top of your
imported Word_TLB.pas you will see comments
generated with hints for all of the aliasing
that the importer has done, e.g.
//Hint: Parameter 'To' of _Application.PrintOutOld changed to 'To_'
As a workaround for 'break', you can add your
own aliasing to the importer by editing
the file ..\bin\tlibimp.sym
Close the IDE and edit tlibimp.sym as follows:
;;==============================================;;
;; Map WinWord CoClasses to better names ;;
;;==============================================;;
[{00020905-0000-0000-C000-000000000046}:TypeNames]
Application=WordApplication
Document=WordDocument
Font=WordFont
ParagraphFormat=WordParagraphFormat
OLEControl=WordOLEControl
LetterContent=WordLetterContent
Global=WordGlobal
Selection=WordSelection
Range=WordRange
Break=WordBreak
Then, when you re-import Word2003, 'Break' will
be changed in the imported generated code to 'WordBreak'.
--Craig
Technical Details
Message-ID:
<4692cb16$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<468caebe$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 123df9,b4c29e251a1195b0 X-Google-Attributes: gid123df9,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 09 Jul 2007 16:56:28 -0700 From: Craig Farrell <cNO_SPAM.please.farrell@insprise.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.delphi.com.activex.using Subject: Re: Bug References: <468caebe$1@newsgroups.borland.com> In-Reply-To: <468caebe$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 10.143.19.35 Message-ID: <4692cb16$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1184025366 10.143.19.35 (9 Jul 2007 16:56:06 -0700) Lines: 44 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail