none
Office OneNote 2010 Add-In: How to call a built-in function from c# RRS feed

  • Question

  • How can I call default OneNote 2010 functions (e.g. insert screenshot) from a C# Add-In?

    Any help would be greatly appreciated.

    Monday, February 7, 2011 8:40 AM

All replies

  • I don't understand the question. Please provide more detailed information.
    Cindy Meister, VSTO/Word MVP
    Monday, February 7, 2011 5:53 PM
    Moderator
  • I'm writing a C# add-in for OneNote 2010. OneNote has a button to capture screenshots. How can i call that function programmatically?

    Monday, February 7, 2011 6:46 PM
  • OK, I understand better, now.

    As VSTO only provides the "framework" for creating the add-in, but in no way extends the application, you're not likely to find anyone in the VSTO forum with experience in OneNote. So I'm going to move your question to the General Office Development forum where it will be more on-topic.

    FWIW it looks like 2010 implements the Ribbon UI, so theoretically it should be possible. In any "core" Office application I could use ThisAddin.Application.CommandBars.ExecuteMso("ScreenCaptureInsert"), but I don't know if it will also work in OneNote.


    Cindy Meister, VSTO/Word MVP
    Monday, February 7, 2011 7:32 PM
    Moderator
  • Thanks for the help, but I just can't find the CommandBars member in the OneNote application class...

    Monday, February 7, 2011 10:01 PM
  • well, i guess it just isn't possible to use onenote programatically...
    Tuesday, February 15, 2011 12:13 PM
  • I meet the same question.Is there some body can solve it?
    Wednesday, January 9, 2013 3:52 PM
  • I meet the same question.Is there some body can solve it?
    Wednesday, January 9, 2013 3:53 PM