Registriert seit: 2. Mär 2004
5.508 Beiträge
Delphi 5 Professional
|
AW: Excel.Interop OLE -> Problem beim Hyperlink lesen
13. Jul 2010, 10:09
Leider weiß ich nicht genau, welchen Datentyp ich für AHypLink definieren muss.
Delphi-Quellcode:
var
AHypLink : OleVariant;
Mit AHypLink.Address müsstest du an den Link als String kommen.
Hier noch das Interface dazu:
Code:
interface IHyperlink : IDispatch {
[propget, helpcontext(0x00010094)]
HRESULT _stdcall Application([out, retval] Application** RHS);
[propget, helpcontext(0x00010095)]
HRESULT _stdcall Creator([out, retval] XlCreator* RHS);
[propget, helpcontext(0x00010096)]
HRESULT _stdcall Parent([out, retval] IDispatch** RHS);
[propget, helpcontext(0x0001006e)]
HRESULT _stdcall Name([out, retval] BSTR* RHS);
[propget, helpcontext(0x000100c5)]
HRESULT _stdcall Range([out, retval] Range** RHS);
[propget, helpcontext(0x0001062e)]
HRESULT _stdcall Shape([out, retval] Shape** RHS);
[propget, helpcontext(0x000105bf)]
HRESULT _stdcall SubAddress([out, retval] BSTR* RHS);
[propput, helpcontext(0x000105bf)]
HRESULT _stdcall SubAddress([in] BSTR RHS);
[propget, helpcontext(0x000100ec)]
HRESULT _stdcall Address([out, retval] BSTR* RHS);
[propput, helpcontext(0x000100ec)]
HRESULT _stdcall Address([in] BSTR RHS);
[propget, helpcontext(0x0001006c)]
HRESULT _stdcall Type([out, retval] long* RHS);
[helpcontext(0x000105c4)]
HRESULT _stdcall AddToFavorites();
[helpcontext(0x00010075)]
HRESULT _stdcall Delete();
[helpcontext(0x00010650)]
HRESULT _stdcall Follow(
[in, optional] VARIANT NewWindow,
[in, optional] VARIANT AddHistory,
[in, optional] VARIANT ExtraInfo,
[in, optional] VARIANT Method,
[in, optional] VARIANT HeaderInfo);
[propget, helpcontext(0x0001075b)]
HRESULT _stdcall EmailSubject([out, retval] BSTR* RHS);
[propput, helpcontext(0x0001075b)]
HRESULT _stdcall EmailSubject([in] BSTR RHS);
[propget, helpcontext(0x00010759)]
HRESULT _stdcall ScreenTip([out, retval] BSTR* RHS);
[propput, helpcontext(0x00010759)]
HRESULT _stdcall ScreenTip([in] BSTR RHS);
[propget, helpcontext(0x0001075a)]
HRESULT _stdcall TextToDisplay([out, retval] BSTR* RHS);
[propput, helpcontext(0x0001075a)]
HRESULT _stdcall TextToDisplay([in] BSTR RHS);
[helpcontext(0x0001075c)]
HRESULT _stdcall CreateNewDocument(
[in] BSTR Filename,
[in] VARIANT_BOOL EditNow,
[in] VARIANT_BOOL Overwrite);
};
Andreas
|