Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-10

Issue with IDispatch.Invoke: Can't set Word.Application.Visible to false?

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Thierry Coq

Hello,

I've trying to connect to a Word or Excel application with Lazarus 0.9.26. The IDispatch does not work,
I've tried going to the "Invoke" API, and it still doesn't work. I'm able to create a Word.Application objet, I'm even able to get the pointer to the "Visible" property.
I just can't set the Visible property to true: I get the error message:

// -2147352572 = DISP_E_PARAMNOTFOUND: parameter not found

Please see attached code.

Does somebody know how to call "Invoke" on IDispatch or better still, how to call directly methods and properties of Word or Excel objects in Lazarus?

BR
Thierry

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed... Name: FMainTestWord.lfm
Url: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20081023/23d91983/attachment.pl -------------- next part --------------
An embedded and charset-unspecified text was scrubbed... Name: FMainTestWord.lrs
Url: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20081023/23d91983/attachment-0001.pl -------------- next part --------------
A non-text attachment was scrubbed...
Name: FMainTestWord.pas
Type: text/x-pascal
Size: 2781 bytes
Desc: not available
Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20081023/23d91983/attachment.bin

Reply by email

Guadagnini David
to Thierry Coq

In Last SVN if I call About dialog some time Lazarus crash immediatly, otherwhise after press exit button or after 5-8 seconds

Version 0.9.27 (SVN 17125)
FPC 2.2.2
Computer Windows XP Professional
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sw_dept.vcf
Type: text/x-vcard
Size: 257 bytes
Desc: not available
Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20081024/21ea8b3b/attachment-0001.vcf

Reply by email

Gerard N/A
to Guadagnini David

Hi David,

Already reported.
http://bugs.freepascal.org/view.php?id=12468

2008/10/24 Guadagnini David :

Show quoted text 13 lines
In Last SVN if I call About dialog some time Lazarus crash immediatly, otherwhise after press exit button or after 5-8 seconds Version 0.9.27 (SVN 17125) FPC 2.2.2 Computer Windows XP Professional _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email