none
Displaying page number by scrolling RRS feed

  • Question

  • Hi

    I use Ultra Office Control to view word document.

    I want to show the page numbers that change by scrolling.

    Please Help me to write in c sharp.

    • Moved by Mike Dos Zhang Monday, August 13, 2012 6:52 AM (From:Windows Forms Designer)
    Friday, August 10, 2012 6:30 PM

Answers

  • I've solved it : 
    Word.Document wddoc = (Word.Document)axFramerControl1.ActiveDocument;
    Word.Application wordApp = wddoc.Application;
    int numberScroll = wddoc.ActiveWindow.VerticalPercentScrolled;
    txtPage.Text = pageColumn + numberScroll + "";


    • Edited by _Sahar Thursday, December 5, 2013 8:04 AM
    • Marked as answer by _Sahar Thursday, December 5, 2013 8:04 AM
    Thursday, December 5, 2013 8:03 AM

All replies

  • Hi _Sahar,

    I'm afraid Ultra Office Control is a third-party control which is not supported here.

    If there are any concerns, please feel free to let me know.

    Best regards,


    Chester Hong
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, August 13, 2012 6:49 AM
  • I've solved it : 
    Word.Document wddoc = (Word.Document)axFramerControl1.ActiveDocument;
    Word.Application wordApp = wddoc.Application;
    int numberScroll = wddoc.ActiveWindow.VerticalPercentScrolled;
    txtPage.Text = pageColumn + numberScroll + "";


    • Edited by _Sahar Thursday, December 5, 2013 8:04 AM
    • Marked as answer by _Sahar Thursday, December 5, 2013 8:04 AM
    Thursday, December 5, 2013 8:03 AM