Catch link

R

Remi THOMAS

Hi,

I plan to use DSOFramer to display Office document in my app.
I need to catch the click event done in a Office document. Is it possible to
catch this event? How?

Thanks,
Remi
 
P

Peter Huang [MSFT]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top