We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Using asposewords for.net can i get the character under the mouse without selecting it

I want to

1.load a word doc into a vb.net app and

2.lock it from editing

3.when the user clicks on a word I want to know what word he clicked on

thanks for any help

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your interest in Aspose.Words.

1. You can open existing document using Aspose.Words. See the following code.

Dim doc As Document = New Document("in.doc")

Also see the following link.


2. You can protect/unprotect document using Aspose.Words. See the following links for more information.



3. I think that this task you should achieve in some application logic.

Please feel free to ask if you have any question about using Aspose.Words. I will be happy to help you.

Best regards.

Thanx for your response I am very interested in purchasing but I can only do so if I can get the word under the mouse in a formated MSWord doc

1. without selecting it

2. the doc is locked

I was told the following vb dot net code can get the character under the mouse in a text box

Private Sub txtTestText_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles txtTestText.MouseMove

txtCurrentValue.Text = txtTestText.GetCharFromPosition(e.Location)

End Sub
can I do this using yor words component

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. Aspose.Words is not visual component. But maybe you can achieve this using Aspose.Editor. See the following link for more information.


Please ask this question in Aspose.Editor forum.


Best regards.