Adding Word Right-Click Function

R

Richard MSL

I have a .NET application that must have a print preview. I used the .NET
print preview but it has a limitation for my purposes. The user needs to be
able to select a portion of the text with the mouse, then right click and
select to execute that text, which results in a call to a function that makes
another report. It is like a drill-down into the data, where they can
highlight something like a code, and then click to see information about it.

I am considering using Word automation for my print preview. It works well
as a print-preview, it starts Word with my document, and the user can
highlight the text that they are interested in. But I need a way for the user
to click and have that call back into my application, sending the highlighted
text. Is there a way that I can program an additional capability into Word's
right click, to call my application?

Thanks in advance for any suggestions that you can provide.
 
W

Wei Lu [MSFT]

Hello Richard,

There is a WindowBeforeRightClick event for the application of the Word
Automation.

You could track this event.

Here are some reference.

http://msdn2.microsoft.com/en-us/library/microsoft.office.interop.word.appli
cationclass_members(VS.80).aspx

Hope this helps.

Sincerely,

Wei Lu
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.
 
R

Richard MSL

Thank you for the click. Unfortunately, when I click on it, or paste it into
my browser, it says Content Not Found. I will attempt to search for it though.
 
W

Wei Lu [MSFT]

Hello Richard,

Please pay attention to the line break. Since the url is long, the web
interface break the line.

Please attach the second line.

Otherwise, you could search the ApplicationClass Members in MSDN library.

Sincerely,

Wei Lu

Microsoft Online Community Support

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
R

Richard MSL

Thanks, I did attach the missing part of the line, I tried a few different
ways, but I must have done something incorrectly, thanks for the help though,
it was enough for me to search.
 
W

Wei Lu [MSFT]

Hello Richard,

Please let me know if you still have any questions. I am willing to help.

Thank you!



Sincerely,

Wei Lu
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