locked
Office viewer for reading word by word RRS feed

  • Question

  • Hi,
    I am using DSOFramer control to viewing the word file in .net window form. I need the to get the I-beam position which is in the word file when open in the viewer. When user click with mouse in document at any point then i want to get that position and the I-beam will be placed there. And from there to onward it will read word by word and read word will be highlighted by some color. How can i do this?
    Any guidance.
    Actually i want to create a reader which will read the text and highlighted the read text. The user can read from anywhere in the document.
    • Moved by Tao Liang Thursday, April 9, 2009 6:11 AM
    • Moved by Bruce.Zhou Tuesday, April 14, 2009 1:35 PM Not supported
    Wednesday, April 8, 2009 2:44 PM

Answers

  • Hi Yasir Miraj,

    You're welcome, there are few documents on DSOFramer control. The above KB article is one of them. Personally, I think to take a look at some sample code project may help you. Some sample project even contains the exact functionality you need sometimes.

    Here are some articles I collected which might help you achieve the goal.

    http://www.codeproject.com/KB/office/WordInDotnet.aspx?display=PrintAll&fid=220608&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=51&select=1246292

    http://blog.csdn.net/greatplain/archive/2004/11/13/180784.aspx


    Best regards,
    Bruce Zhou
    Please mark the replies as answers if they help and unmark if they don't.
    • Marked as answer by Yasir Miraj Tuesday, May 11, 2010 6:42 AM
    Friday, April 10, 2009 10:44 AM

All replies

  • I think this question is not about WPF but WinForm.

    In the WPF world, you can refer to DocumentViewer or FlowDocumentReader.

    http://msdn.microsoft.com/en-us/library/ms748388.aspx
    Thursday, April 9, 2009 6:09 AM
  • Hi Yasir Miraj,

    Actually DSOFramer control is not supported here as can be seen from this Support KB article . However, in .NET Windows Forms you can aslo use WebBrowser to view the word document files and automate the operation.

    In addition, I think you'd better have a clear picture of the Word Object Model in mind.  You can see there are five important object: Document, Application, Paragraph, Selection and Range in the model. You can click into the links for the methods they provide in the document. In your case, you probably should pay more attention to Selection object. As when there is no selection in the document, the selection will return the "Insert Point" which you called "I-beam".

    Hope it helps.

    Best regards,
    Bruce Zhou
    Please mark the replies as answers if they help and unmark if they don't.
    Friday, April 10, 2009 2:59 AM
  • Thanks Bruce Zhou,

    You show me some light that i can develop this kind of functionality. Can i got the DSOFramer Documentation? Is there any source where i can find the DSOFramer documentation?

    Regards,
    Yasir Miraj
    Friday, April 10, 2009 10:26 AM
  • Hi Yasir Miraj,

    You're welcome, there are few documents on DSOFramer control. The above KB article is one of them. Personally, I think to take a look at some sample code project may help you. Some sample project even contains the exact functionality you need sometimes.

    Here are some articles I collected which might help you achieve the goal.

    http://www.codeproject.com/KB/office/WordInDotnet.aspx?display=PrintAll&fid=220608&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=51&select=1246292

    http://blog.csdn.net/greatplain/archive/2004/11/13/180784.aspx


    Best regards,
    Bruce Zhou
    Please mark the replies as answers if they help and unmark if they don't.
    • Marked as answer by Yasir Miraj Tuesday, May 11, 2010 6:42 AM
    Friday, April 10, 2009 10:44 AM