![]() |
webbrowser onnavigatecomplete
Hallo
Ich habe ein Beispiel in MSDN gefunden, den ich nicht in Delphi einsetzen kann. Ich würd mich freuen wenn jemand den richtiegen Weg beschreiben könnte. ![]() Über die Variable e ist es scheindbar möglich, ein direkten Zugrif auf eine Instanz von Word zu haben. Das gleiche möchte ich in Delphi realisieren nur hier ist der Procedure-Kopf anders: OnNavigateComplete(Sender: TObject; const pDisp: IDispatch; var URL: OleVariant); Kommt man über pDisp an die gestartete Applikation dran? Wenn ja dann wie?
Delphi-Quellcode:
Private Sub AxWebBrowser1_NavigateComplete2(ByVal sender As Object, _
ByVal e As AxSHDocVw.DWebBrowserEvents2_NavigateComplete2Event) _ Handles AxWebBrowser1.NavigateComplete2 On Error Resume Next oDocument = e.pDisp.Document 'Note: You can use the reference to the document object to ' automate the document server. MsgBox("File opened by: " & oDocument.Application.Name) End Sub |
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:39 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz