BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

VBIDE_TLB .Application?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Martin
Guest





PostPosted: Tue Sep 12, 2006 6:30 pm    Post subject: VBIDE_TLB .Application? Reply with quote



Dear Sirs,

I am using Delphi 7
I am trying to use some typelibs, and TWordApplication. since it should be
easier then using OLEVariants.
Now that I thought I had everything included, the compiler thinks that my
Application is a VBIDE_TLB .Application or something.

How can I use TWordApplication in Delphi7 ?

This is what I tried:

program Project1;

uses
Forms,
Unit1 in 'Unit1.pas' {Form1},
MergeUnt in 'C:\Running\Dev\Prj\Src\DocumentArtus\MergeUnt.pas',
Word_TLB in 'C:\Running\Dev\Prj\lib\Imports\Word_TLB.pas' ,
Office_TLB in 'C:\Running\Dev\Prj\lib\Imports\Office_TLB.pas' ,
VBIDE_TLB in 'C:\Running\Dev\Prj\lib\Imports\VBIDE_TLB.pas'
;

{$R *.res}

begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
Back to top
Martin
Guest





PostPosted: Tue Sep 12, 2006 6:55 pm    Post subject: Re: VBIDE_TLB .Application? Reply with quote



"Martin" <m.devries (AT) ingcarlease (DOT) nl> wrote

Quote:
I am using Delphi 7

This seens to help.....

Forms.Application.Initialize;
Forms.Application.CreateForm(TForm1, Form1);
Forms.Application.Run;

But is this all necesarry? I hoped to just use a standard Delphi object. As
I said I am using D7.
Back to top
Dennis Passmore
Guest





PostPosted: Tue Sep 12, 2006 9:39 pm    Post subject: Re: VBIDE_TLB .Application? Reply with quote



It seems to me that the MyWordAddin1 demo provided with Delphi 7 is clear enough.

Look in "..\Delphi70\Demos\COMAddinWizard\Word Addin" for the Unit1.pas
which shows how it is to be done.
Back to top
Craig Farrell
Guest





PostPosted: Tue Sep 12, 2006 10:44 pm    Post subject: Re: VBIDE_TLB .Application? Reply with quote

Hi,

Quote:
Now that I thought I had everything included, the compiler thinks that my
Application is a VBIDE_TLB .Application or something.

VBIDE is a dependency of the MS Word type library.
For example, do this:
-Launch Delphi
-File | Open and change "Files of Type" to Type Library
-Browse to and open, (e.g. for Word2K)
C:\program files\Microsoft Office\Office10\MSWORD.OLB
-In the Type Library editor, click on the 'Uses' tab
There you should see the VB dependency and any others
like stdole.

--Craig
Back to top
Martin
Guest





PostPosted: Wed Sep 13, 2006 8:12 am    Post subject: Re: VBIDE_TLB .Application? Reply with quote

Quote:
Look in "..\Delphi70\Demos\COMAddinWizard\Word Addin" for the Unit1.pas
which shows how it is to be done.

I cannot find it, is it in a upgrade package? Extra files to be downloaded
somewhere?


Ok I got:

C:\Program Files\Borland\Delphi7\Demos

and then I got:


C:\Program Files\Borland\Delphi7\Demos>dir C*
Volume in drive C has no label.
Volume Serial Number is 9033-6224

Directory of C:\Program Files\Borland\Delphi7\Demos

04-09-2006 10:26 <DIR> Clx
04-09-2006 10:26 <DIR> ConvertIt
04-09-2006 10:26 <DIR> CoolStuf
04-09-2006 10:25 <DIR> Corba
04-09-2006 10:26 <DIR> Cpl
04-09-2006 10:26 <DIR> CustomDraw
0 File(s) 0 bytes
6 Dir(s) 14.931.070.976 bytes free

C:\Program Files\Borland\Delphi7\Demos>

No COMAddinWizard.

And as you see "04-09-2006", I am working with Delphi for a week now, so
sorry for my novice questions.
Back to top
Dennis Passmore
Guest





PostPosted: Wed Sep 13, 2006 5:16 pm    Post subject: Re: VBIDE_TLB .Application? Reply with quote

I do not know where I got it from since it is over
3 years old but you can get it from here:

http://www.dpassmore.com/wdata/COMAddinWizard.zip
Back to top
Martin
Guest





PostPosted: Wed Sep 13, 2006 6:14 pm    Post subject: Re: VBIDE_TLB .Application? Reply with quote

"Dennis Passmore" <dennisp (AT) nospam_dpassmore (DOT) com> wrote

Quote:
http://www.dpassmore.com/wdata/COMAddinWizard.zip

Got it! Thanks!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.