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.

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/opening-or-creating-documents.html

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

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/protecting-a-document.html

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/aspose.words.protectiontype.html

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.

http://www.aspose.com/categories/visual-components/aspose.editor-for-.net/default.aspx

Please ask this question in Aspose.Editor forum.

http://www.aspose.com/community/forums/aspose.editor/263/showforum.aspx

Best regards.