| View previous topic :: View next topic |
| Author |
Message |
Martin Guest
|
Posted: Tue Sep 12, 2006 6:30 pm Post subject: VBIDE_TLB .Application? |
|
|
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
|
Posted: Tue Sep 12, 2006 6:55 pm Post subject: Re: VBIDE_TLB .Application? |
|
|
"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
|
Posted: Tue Sep 12, 2006 9:39 pm Post subject: Re: VBIDE_TLB .Application? |
|
|
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
|
Posted: Tue Sep 12, 2006 10:44 pm Post subject: Re: VBIDE_TLB .Application? |
|
|
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
|
Posted: Wed Sep 13, 2006 8:12 am Post subject: Re: VBIDE_TLB .Application? |
|
|
| 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
|
|
| Back to top |
|
 |
Martin Guest
|
Posted: Wed Sep 13, 2006 6:14 pm Post subject: Re: VBIDE_TLB .Application? |
|
|
"Dennis Passmore" <dennisp (AT) nospam_dpassmore (DOT) com> wrote
| Quote: | http://www.dpassmore.com/wdata/COMAddinWizard.zip
|
Got it! Thanks! |
|
| Back to top |
|
 |
|