none
Editing word document using C# RRS feed

  • Question

  • Hi,

      I need to load my word document in the top half of the aspx page and there will be a button in the bottom of the aspx page.When i click on button the word document should be scrolled to a book mark. Iam loading word document in an iframe and the code i am using for jumping to book mark is:

    oWordApplic.ActiveWindow.ActivePane.View.SeekView = Word.

    WdSeekView.wdSeekCurrentPageHeader;

     

    object missing = System.Reflection.Missing.Value;

     

    object Bookmark = (int)Word.WdGoToItem.wdGoToBookmark;

     

    object NameBookMark = strBookMarkName;

    oWordApplic.Selection.GoTo(

    ref Bookmark, ref missing, ref missing,ref NameBookMark);

    How would I send the control of the document loaded in the iframe to this method?

    Can anyone please help me??

    Thanks in advance,

    Sri.

    • Moved by CoolDadTxModerator Wednesday, March 31, 2010 1:50 PM Not IDE related (From:Visual C# IDE)
    Wednesday, March 31, 2010 10:29 AM

Answers

  • Is that server side code? If so then what you are after is impossible. You cannot send a reference to a client control to a server for processing.  You would need to re-write that code in vbscript/jscript and run in on the client in the web page and see if it worked.
    HTH Ciaran http://wannabedeveloper.spaces.live.com
    • Marked as answer by Figo Fei Wednesday, April 7, 2010 3:55 AM
    Wednesday, March 31, 2010 3:59 PM