Hi Remi,
Thanks for your posting!
Based on the KB below,
NOTE: This sample is provided "AS IS" with no warranty or support from
Microsoft. It is a demonstration, provided for informational purposes only,
and has not been rigorously tested with all environments and ActiveX
document servers. It is up to you to make it "production ready" if you use
it in any development solution.
Visual C++ ActiveX Control for hosting Office documents in Visual Basic or
HTML
http://support.microsoft.com/?id=311765
Anyway based on my experience, this depends on if the Office Document have
exposed such event.
e.g.
The code below will handle the event of the Word Document and Application.
Dim WithEvents doc As Word.Document
Dim WithEvents wdApp As Word.Application
Private Sub Command1_Click()
Set wdApp = doc.Application
End Sub
Private Sub Form_Load()
FramerControl1.Open "C:\test.doc"
Set doc = FramerControl1.ActiveDocument
End Sub
Private Sub wdApp_WindowBeforeRightClick(ByVal Sel As Word.Selection,
Cancel As Boolean)
Debug.Print "Event fired"
End Sub
Best regards,
Peter Huang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.