[Lazarus] New Excel Interface Component
Luiz Americo Pereira Camara
luizmed at oi.com.br
Sun Nov 9 16:29:41 CET 2008
Thierry Coq escreveu:
> Yes, definitively,
>
> I've checked, this code seems to be currently geared to use DISPID
> interfaces. This works in Delphi, but not in FPC for the time being.
>
> For example, the following code:
> fDocument := fDesktop.loadComponentFromURL('file:///'+
> StringReplace(FileName, '\', '/', [rfIgnoreCase, rfReplaceAll]) ,
> '_blank', 0, wProperties);
>
> declares fDocument as an OleVariant. The author hopefully expects FPC to
> understand how to go and fetch "loadComponentFromURL". It ain't gonna
> work ;-).
>
> It should be done this way:
> var fDocument : IDispatch;
> ...
> fDocument.InvokeDispatch( DISPID_LOADCOMPONENTFROMURL, ...);
>
> Thierry Coq
>
I tried to download your component to see the implementation but i'm
getting "Page not found" message for both packages (binary and src)
Can you take a look at it?
Luiz
More information about the Lazarus
mailing list