Programmatically closing a JMenu

Hi,
I am working on an speech based application using JSAPI. To add the the users ease, i have commands like "open file menu etc. which would then open (drop down) the file menu.
the following line would do this:
fileMenu.doClick();
where fileMenu is a JMenu
this opens up the file menu, however i also have commands like "close file menu".
so far i have been able to open any menu and havent figured out a way to close the menus. i have tried the doClick() method again when the menu is open to close it, but this does seems to work.
can anyone help me out with this??
ameer.

iam not sure of this but i realised that the file menu closes when it loses focus, so what you can do is when u say "Close menu" then put the focus on another component, iam sure there must be better ways to do than this but this was the best i could think of. you could use like
fileMenu.ABORT;
or
fileMenu.hide();
not sure which is the one, try it out.
asrar

Similar Messages

  • Programmatically closing a popup from a managed bean

    Hi,
    in the following blog [http://thepeninsulasedge.com/frank_nimphius/2008/02/14/adf-faces-rc-programmatically-closing-a-popup-from-a-managed-bean/|http://thepeninsulasedge.com/frank_nimphius/2008/02/14/adf-faces-rc-programmatically-closing-a-popup-from-a-managed-bean/]
    the following statement is being made at the end ...
    The JavaScript call is issued as "window.exitPopup()" because the script is called from the page root. You can easily see how the JavaScript can be modified to have "exitPopup" becoming a generic function avoiding hard coded popup ID's as in my example.
    I don't understand how to avoid hardcoded popup ID's. Could someone please explain this to me.
    Thank you
    Bodhy

    Hi,
    thank you. It is working.
    @Timo
    The closePopup function in your comment has the variable popupId. That made me wonder, if it is possible to set this variable in my jspx page.
    I made a workaround by defining a new variable called popupId with getter and setter methods and using the setActionListener to set that popupId. After that I was calling the closePopup() function. Do you know a better way doing this?
    @Frank
    I was also reading through Frank's blog about JavaScript [http://thepeninsulasedge.com/frank_nimphius/adf-faces-rich-client-javascript-programming/|http://thepeninsulasedge.com/frank_nimphius/adf-faces-rich-client-javascript-programming/] , trying to find a solution to call JavaScript functions with variables (defining these variables in my jsp page). Is this possible?
    Thank you
    Bodhy

  • Manual vs Programmatically closing

    I have a program that has internal frames. These internal frames can either be closed manually by the user, or it can be programmatically closed by itself on certain situations. How do I detect whether the closing was done manually or programmatically?
    I know about listeners. And in fact, my listener triggers in both cases (i.e. when I close the internal frame manually or when I use setClosed method).
    Do I have to "make a note" when I programmatically close the internal frame so that the internal frame listener will not trigger in such a case?

    Do I have to "make a note" when I programmatically close the internal frame Yes.
    One way is to remove the listener before closing the internal frame.

  • Illustrator CS5 crashes on programmatically closing document.

    Hi,
    I have developed a plugin in which I need to close an active document on click of a button. On clicking my plugin menu item a dialog opens with "Ok" and "Cancel" button. On clicking "Ok" button, the plugin will first close the active document and then will close the dialog and clicking on "Cancel" button will close the dialog.
    My plugin works and closes the document and dialog but after few seconds or if I shift focus from Illustrator, the Illustrator crashes with the following message:
    "Unhandled exception at 0Xbaadf00d in Illustrator.exe:0XC0000005:Access violation reading location 0Xbaadf00d".
    I am using sAIDocList->Close() function to close the active document and EndModal function to close the dialog.
    I am on windows Xp and using Illustrator Cs5 and Cs4.
    Can someone please guide me on why the crash is occuring and how can I solve this crash??
    Thanks.

    your best bet may be to try and solve the problem without finding the problem.
    uninstall illustrator cs5
    run the cleaner (http://www.adobe.com/support/contact/cscleanertool.html)
    then reinstall illustrator cs5.
    update.

  • Programmatically closing the dialog??

    Hello,
    I am using Jdev 11.1.1.2
    How to close the yesNo confirmation diaglog programmaticaly?? eg when user press 'Yes' button in confirmation dialog(popup),I want excecute some logic in DialogListener and close the dialog.
    Any pointers??
    Regards
    RB

    I hope you dialog is something like below:
                      <af:popup binding="#{backingBeanScope.backing_MyBackingBean.popup14}" id="popup14">
                        <af:dialog binding="#{backingBeanScope.backing_MyBackingBean.dialog1}" id="dialog1" title="Information" modal="true" type="yesNo"
                                   dialogListener="#{backingBeanScope.backing_MyBackingBean.dialog1_dialogListener}">
                          <af:outputText binding="#{backingBeanScope.backing_MyBackingBean.outputText112}" id="outputText112"/>
                        </af:dialog>
                      </af:popup>
        public void dialog1_dialogListener(DialogEvent dialogEvent) {
            if (dialogEvent.getOutcome().equals(DialogEvent.Outcome.yes)){
            }else{
        }to close popup...
    StringBuilder script = new StringBuilder();
            FacesContext context =  FacesContext.getCurrentInstance();
                      script.append("var popup = AdfPage.PAGE.findComponent('").append(<your popupId>).append("'); ")           
                            .append("if (popup.isPopupVisible()) { ")                
                            .append("popup.hide();}");
                      ExtendedRenderKitService erks =
                        Service.getService(context.getRenderKit(), ExtendedRenderKitService.class);
                        erks.addScript(context, script.toString());

  • Interaction between Excel and Word OLE

    I am using Office 2007 to write procedures but a problem is apparent only when run on Office 2013.
    A procedure in a workbook that records Sales information runs to transfer data to another workbook that stores Invoice information, and then opens Word to generate a mail merge document from a template (dotm) which has an event procedure (on Open) to merge
    data from the Invoice spreadsheet into a document to produce an invoice.  This procedure works without problem on the Office 2007 (Vista) machine and until recently likewise ran without problem on the Office 2013 (Windows 8.1) machine.  However,
    apparently following an automatic update to the Office 2013 machine, when the Word document is generated the procedure "hangs" at the point of reading the data from the Invoice workbook, and after a longish delay a message is generated along the
    lines of the program awaiting an OLE action.  The only way to stop the whole process is via task manager.
    After much research I have found that on the Office 2013 machine, the mail merge of data from the Invoice workbook will not now work if the Invoice workbook is open, bot works OK if it is closed.
    I have therefore programmatically closed the Invoice workbook, and the procedure now works on the Office 2013 machine (and on the Office 2007 machine).  However, I would like the Invoice workbook to be open when the Word document has been generated. 
    I therefore inserted a few seconds wait into the procedure to allow the mail merge to be completed, then tried to reopen the Invoice workbook.  I now get the message that the Invoice workbook is locked for editing, and asking if I want to open a read
    only copy (which I don't).  The Invoice workbook does not appear on the task bar, nor does it appear in task manager.  I have tried code to make it active and I then get "subscript out of range", and I have tried code to make it visible
    and I again get "subscript out of range".  However, if I close down the word documents generated with the data from the Invoice workbook, I can then open it;  presumably the merge process is treated as still being in progress while the
    documents are open, and the Invoice workbook is "released" when the documents are closed.
    Has anyone any advice to offer on how to deal with this problem of not being able to open the Invoice workbook while the mail merge documents are open.  The problem is apparent in both Office 2007 and 2013.

    Hi Caillen
    Thanks for looking at this.  I should explain that I do all my work on an Office 2007 machine for a family member who lives elsewhere, so I don't have direct access to the Office 2013 machine.  However, they are reasonably computer literate and
    report faults accurately.  To deal with your queries:
    1.  Their Office (and Windows) updates are installed automatically.  Basically, their systems are kept up to date.  It is only a guess that an update may have caused the problem, for the procedure worked as expected for some months and no
    other changes have been made.  The problem does not occur on my Office 2007 machine.
    2.  For the initial problem there was no error message initially;  the little circle just kept going round for a minute or so, then a message appeared on the Office 2013 machine saying that Excel was waiting for another program to complete an OLE
    action.  That message no longer appears because I have cured the problem by closing the workbook that is the data source for the mail merge.
    3.  I do indeed mean VBA code by procedure (Sub xxx()).  The code in the Word Template on which the procedure originally hung up was the third line below - i,e, the line starting ActiveDocument.MailMerge.OpenDataSource Name:= _
    Sub ctPrintInvoice()
        ActiveDocument.MailMerge.MainDocumentType = wdFormLetters
        ActiveDocument.MailMerge.OpenDataSource Name:= _
            ThisDocument.Path & "\ColTarInvoices.xlsm", _
            LinkToSource:=True, _
            Revert:=False, _
            Format:=wdOpenFormatAuto, Connection:="DETAILS", _
            SQLStatement:="SELECT * FROM `'Print Invoice$'`", SQLStatement1:=""
    "DETAILS" is a named range within the workbook that is the data source for the mail merge.  "Print Invoice" is the name of the worksheet that holds the data.  This code runs as an event on opening the document, which is done
    automatically within the code in the workbook.  The code in the Sales workbook to open the document is:
        Set objWord = CreateObject("Word.Application")
        If strSourceSheet = "Sales" Then
            Set objctMergeDoc = objWord.Documents.Add(ThisWorkbook.Path & "\ctInvoice1.dotm")
        ElseIf strSourceSheet = "Euro Sales" Then
            Set objctMergeDoc = objWord.Documents.Add(ThisWorkbook.Path & "\ctEuroInvoice1.dotm")
        End If
        objWord.Visible = True
        Set objWord = Nothing
        Set objctMergeDoc = Nothing
    However, the procedure also hung in the same place on the Office 2013 machine if the document was opened manually.
    4.  The code in the Sales workbook to close the Invoice workbook is:
       Workbooks("ColTarInvoices.xlsm").Close
    The code to reopen it is:
       Workbooks.Open (ThisWorkbook.Path & "\ColtarInvoices.xlsm")
    This generates the message that the workbook is locked for editing.  The same message is generated if I try to open the workbook manually while the merged documents are still open.
    (The files are all in the same folder)
    With thanks
    Andy C

  • How can I create a link to download a file in Captivate?

    So, in my Captivate file, I want people to be able to download an XML file to their machine.  If I create a hyperlink to "open a file", then when a user clicks on it, captivate attempts to open the xml file in a browser window instead of downloading it.  I can't figure out how to use the download attribute for an href in captivate and I'm not sure if javascript to do this would execute properfly.  Anybody know the best way to accomplish a force download of a file from a captivate presentation (Captivate 6)?
    TIA.

    If you want to really do this so that it is consistent for all browsers, you'll need to implement this at the server level.  I did this with the Dynamic PDF Export Widget.  Typically, a PDF will be displayed in the browser, but I added the ability to download it instead.  It does require a PHP file (or some other server side script).  In the PHP file, you'll want to set the response header for Content-Disposition to "attachment"... that's the key.
    The elbow grease part has to do with managing how the browser handles the link.  You'll want the Captivate hyperlink to open a new window so that the student does not navigate away from your course in the current window.  But since you are opening a PHP file, you can inject javascript into the document of the new window/tab to close itself.  The download will still continue eventhough the window/tab was programmatically closed.  However, most modern browsers will automatically close the window/tab for you when downloading a file.  If you want to see an example of a PHP file that implements this, go ahead and download the trial version of the Dynamic PDF Export widget.  You'll see the create.php file in the zip package.
    http://captivatedev.com/2012/07/25/adobe-captivate-6-x-widget-dynamic-pdf-export/
    If you want to go simple as TLC Media Design suggested, just zip it and let your students unzip the xml file, or just rename the xml file with a .zip extension and tell them to rename the file back to .xml after downloading.

  • Launch vi from vi

    I have been looking through the forum but havent found an answer to my question.  I have a main VI that collects input from the user and reads an angle off of an encoder and logs data.  I have a second vi for controlling the motor that the encoder is connected to.  The encoder logging program opens first and there is a bit of user interface.  After the user interface the program starts logging the encoder values.  Once the program gets this far I want it to launch the motor control vi and have the motor control vi run in parallel.  I am not sure how to accomplish this as placing the motor control as a subVI inside the main VI causes the main VI to hault and wait for a return from the motor control.  Is there a way to launch a vi using a vi reference and have it run in parallel?  Any thoughts will be appreciated.
    Cheers!
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

    I suppose I should also ask about programmatically closing this vi, as I need to have control over that as well.  I am assuing that obtaining the reference stays the same, can I use the FP.Close method to close the VI cleanly and then close the reference after that?
    Cheers!
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

  • My application while running in playback throws fault error report and it needs to be closed programmatically by killing the process.

    My application throws some fault error report and pops up a screen needing user response.
    I would like to kill that process once it is thrown. Is there a way I can do it programmatically
    this issue happens in the middle of start() and close() method

    Hi,
    Based on your description, I think that your issue and requirement is more related to programming rather than Visual Studio tests.
    Test Tools in Visual Studio 2010 and 2012 forum is used to resolve and discuss VS testing issues. I am afraid that your issue is out of the support range of this forum. I suggest consulting this issue on some development forums based on the
    type of your application.
    If you are working with Windows Forms app. please consult on Windows Forms Forum:http://social.msdn.microsoft.com/Forums/windows/en-US/home?category=windowsforms
    If you are working with WPF app, please consult on WPF forum:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wpf
    If you are working with ASP.NET Web Application, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Visual Studio Language Forums also may help you:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=vslanguages
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is there a way to use the built-in Datalogging and programmatically log the front panel while the vi is running?

    I would like to use the built-in Data Logging feature. There is the "Log at Completion" option, but is there a way to programmatically make a new log record while running? I looked around in VI server and couldn't find any methods that would do that. Currently, I am grabbing all of the front panel control references using VI Server and if there are any changes, the changed values are written to a log file along with a date/time stamp. I'm mostly dealing with buttons, which simply change from 0 to 1 or 1 to 0, so it's not too hard to visualize what was pressed. It works okay for reconstructing what happened, but it would be much nicer to use the built-in fe
    ature because you can "replay" directly onto the front panel and actually see what the changes were. However, without being able to programmatically make a new log, it won't work for me.

    Jake,
    There are several options here.
    I would suggest using your own code for datalogging. The datalogging you are referring to is primarily for debug, and one shot datalogs of front panel indicators (and controls?), not including graphs, etc.
    If you go to the file functions, you will see a menu for datalogging. These functions will allow you to save your data, as you need it, simply, and in a compact format.
    I recommend opening the datalog file, doing all your file operations, and closing the file before the program is complete. There are several examples of this in the examples database.
    Good luck

  • Why does opening and closing FPGA references increase Windows XP handles by 3?

    Hello.
    We run a test system here that uses TestStand to communicate
    to a number of Labview VI modules which in turn communicates to a
    PXI-7833R FPGA. Everything has been working fine except after a long time running Labview would get an out of memory error. I discovered
    after a particular VI was run 100,000 times, the number of handles in Windows XP Task
    Manager grew to about 370,000. The number of threads and processes remains stable and normal. Closing Labview removes all the excessive handles.
    I tried an experiment to create a standalone VI (ie: no TestStand) which simply opens the FPGA VI reference then closes the reference. This is repeated 4 times in the same VI. The number of handles in Windows XP Task
    Manager increased by 12 each time the VI was run. No errors. This indicates closing the FPGA reference might not be working.
    Why does this happen? Is there a way to avoid it? The version of Labview is 8.5.1.
    Appreciate any help here. Thanks.
    -Dave

    could be related to this known issue--
    FPGA FIFO reset behavior—When you use an FPGA target
    emulator, FPGA FIFOs reset when the VI is stopped and then started
    again. When you use an FPGA target with Interactive Front Panel
    Communication, FPGA FIFOs do not reset when the FPGA VI is stopped and
    then started again. To reset the FIFO, right-click the FPGA target in
    the Project Explorer window and select Download
    from the shortcut menu. When you control an FPGA VI using Programmatic
    FPGA Interface Communication, use the Close FPGA VI Reference function
    with the Close and Reset shortcut menu option selected or the Invoke Method with the Reset method selected to reset FPGA FIFOs
    see Knowledgebase
    Also remeber to load the FPGA Read/Write VI's dynamically from testStand and dump them after.  Thechange to the data type causes the vi to need to recompile so it can't stay in memory if you need different types of data.
    Message Edited by Jeff Bohrer on 10-27-2009 02:21 PM
    Jeff

  • Report generation, Excel isn't closed in the Task manager (LV2010)

    Hello everybody,
    I attached a simple example, to explain my problem.
    I tried (with Report generation) save data to Excel. That works fine. My problem is: in the Task Manager I can see the Excel.exe.
    Does anybody have a idea or a solution, why Excel don't closed?
    If I open and close the saved Excel file, the Excel.exe disappear in the Task manager. But this should not the way.
    many thanks in advance
    zäpfle
    LV2010
    Solved!
    Go to Solution.
    Attachments:
    Example_Forum.vi ‏19 KB
    Example.xls ‏55 KB
    Auswertung_Example.xlt ‏51 KB

    Hello zäpfle,
    This is actually a known issue and already reported to NI R&D. As you mentioned, to solve this, you have to open and close the Excel report (with Word report everything seems to be fine). Since the task is closed just after the VI closes or open-and-close Excel, it seemed that not all references would close properly. The issue though isn't with properly closing the references, but rather deeper.  However, a possible workaround would be to programmatically end the process just after closing the reference to Excel.  Here is a link to a community example that demonstrates how to do just that:
    Kill a task in Windows using System Exec.vi
    https://decibel.ni.com/content/docs/DOC-9275
    Hope this helped. I am sorry for the inconvenience!
    Kind regards,
    Ioannis Karakatsanis
    Applications Engineering
    www.ni.com/support

  • Front Panel objects do not stay in place after saving, closing, and reopening the VI.

    I have been working with a couple of versions of a main VI. The original VI was given to me so that I could add additional functionalities to it. I had been designing the front panel of the latest version of the VI on a Dell laptop running Windows 7 and LabView 2011 SP1 using a monitor with a resolution of 1920x1080. My booleans, numerics, and plots on the front panel had always stayed in place after saving, closing, and reopening the VI. Once in the field, I connected my laptop to a cRIO9073 and used my laptop screen with a resolution of 1366x768 to operate the VI. I made some changes to the VI, saved it, and reopened it. This time I noticed that the front panel objects had become overlapped, resized, and generally rearranged. I tried fixing the objects but I noticed that they reverted back to the incorrect positions after saving and reopening the VI. I was successful in keeping the objects in position a couple of times, but when I would open the VI at a later time, the objects were again rearranged. This is happening on both my monitor and laptop screen. The original version of the VI, however, does not behave this way and I have opened it on both my monitor and laptop screen. In this version, the front panel objects always stay in place. Both VI's have the same window size properties. Could I have corrupted the latest version of my VI somehow? Below are screenshots of the front panels of both VI's.
    Attachments:
    Blender Controller Original.PNG ‏140 KB
    Blender Controller.PNG ‏203 KB

    Hi Miguel,
    It is possible to programmatically set or change the position of front panel objects. (for example: http://digital.ni.com/public.nsf/allkb/4D0DA06B431​95B3F862572F3000AF2D3?OpenDocument) However, if you haven’t intentionally done that, it seems unlikely that it is the problem.
    Have you tried copying the entire block diagram in to a new VI to see if the problem persists? While it is unlikely, you are right that it is possible for VIs to become corrupted. I’ve never heard of a situation like this except in the situation where the settings Tom had you check have been changed. Here is some information about those settings:
    http://digital.ni.com/public.nsf/allkb/7567EF257B9​CFDF986256F630073228F?OpenDocument
    Since there was no rearrangement when you copied the front panel to a new VI, you might try copying the block diagram a little bit at a time to see if there is some particular part of it that creates the problem somehow.
    K. Johnson

  • Programmatically calling an FPGA vi to view over the FP vi

    Good morning. I have become stumped on this question for a bit so I thought I would post the question here.
    Q: what is the best way to programmatically call a VI running on the FPGA to the FP main VI running on a touchscreen computer, where when the FPGA VI is called it goes to the top level of the screen without interrupting the VI output of the main VI?
    I have researched using a queued message handler but couldn't get it to function properly. I have also researched dynamically calling a VI and asynchronously calling a VI but am unsure how to implement the correct one for what I are trying to accomplish.
    What I am trying to overcome here has to a lot with tab control on the front panel VI as I have discovered that apparently while a tab is open to the top of the FP the other tabs do not I/O any values to the cRIO. This is good and bad for our application. The good part is that it allows a 'locking out' of other processes while the visible tab is on top. But the bad part is that if I open another tab then what I have running on the previous tab stops. I need to be able to incorporate both of these aspects in our program.
    This example shows how I am using tabs in our program. (ATTACHMENT 1)
    So in the example above, when page 5 is opened the graph indicator starts which is what I need, and when it closes it stops which is correct to.
    But the issue is that when page 5 is open it also stops what’s happening on the other four tabs in the same tab pane which is NOT what I need to happen.
    What I have done so far to correct this is - removing the page I need to open on top and made it into its own VI.
    What this separate VI does is accept input from the FPGA resources including J1939 engine information through an NI9862 card and voltage / analog signals from sensors via an NI9207 card and reads the information on virtual indicators and gauges as seen here. So it makes sense to me to put the VI on the FPGA. (JPEG)
    The information on this VI only needs to be seen periodically via the FP by the operator as it is called via a Boolean control (button) on the FP, but it still needs to run on the FPGA when not seen in order to pass information to the RT control for alarm processing. So in that, in the case of an alarm it causes something else to happen to the unit being controlled (ie. Execute an engine shutdown over the J1939 bus)
    What this VI cannot do is interrupt the operations that are being executed by the main VI on the FP if called (to do a parameter check) but put the main VI into a ‘locked out’ mode if there is an alarm.
    So then the question becomes how to call this VI from the Front Panel VI?
    Well, I have tried to make a Queued Message Handler work which it did partially (I was able to open the VI and run it but I couldn’t work out how to close it) and unfortunately I have sub-sequentially erased that bit of programming code. Though I don’t think it would have worked anyway as I was trying to call it as a sub-vi in the main VI that was located on the computer and not on the FPGA target.
    Then I tried dynamically calling the VI and found it did the same thing as if the VI were still connected to the tab control by stopping the I/O of the main VI while it was called to the front. I erased that bit of code work too.
    So then I started looking at asynchronously calling the VI as I saw that it would allow both VI’s to run at the same time. Here I seem to have found the right answer to my own question, though, I believe that the example program I am looking at has a memory leak or is not closing out the called VI properly because within a few minutes runtime both VI’s slow to a stop. This is not good. I understand what the example code is trying to show but I don’t think it is programmatically correct and I have not been able to fix it. Here is the example code I was looking at. (ZIP FILE)
    So while I believe I am on the right path I am not sure how to impliment it with the FPGA.
    Solved!
    Go to Solution.
    Attachments:
    Ultimate Tab Control.vi ‏32 KB
    ENGINEVI.jpg ‏384 KB
    example.zip ‏26 KB

    You are correct, that is how the program is built. Each page of the tab has it's own set parameters to interact with the FPGA differently. (ie electromechanical controlling a hydraulic pump so each page has a distinct set of limitations on what the pump control does) this effectively creates a set of 'modes' for different parameter pump control to the same individual pump.
    Here is a screen of the main program. The buttons at the bottom determine which mode the pump is in (effectively changes the tab control to a different tab)
    So yes, the engine page has been removed from the tab control and made into it's own vi that I want to put on the FPGA target (as its only input and no interaction) but I want to be able to call the engine vi from the main program and not interrupt the main program if I am controlling the pump but just want to see what the engine and pressures are doing.
    I added a screen of some of the code tied to the picture above.
    Attachments:
    virun.jpg ‏226 KB
    Untitled2.png ‏148 KB

  • How to programmatically copy a OneNote page from one section to another

    How to programmatically copy a OneNote page from one section to another.
    I don't find any interface in OneNote
    2010 Developer Reference which will let me do this.
    any help?
    Regards,
    Umar
    OneNote 2010

    Hi Umarinam,
    Thank you for posting in the MSDN Forum.
    In the page OneNote 2010 Developer Reference, you can see an Application Interface which includes methods
    help retrieve, manipulate, and update OneNote information and content. 
    The below are some basic samples 
    Retrieving Section Metadata in OneNote 2010
    Programmatically Opening and Closing a Notebook in OneNote 2010
    Hope it helps. 
    Best regards,
    Quist Zhang [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Maybe you are looking for

  • Mac OS X 10.4.5 has stopped me printing to multiple Konica Minolta devices

    HI, I have recently installed the OS X 10.4.5 update from 10.4.4, since I installed the update all my printers have stopped printing. Please note that I manage a Lab of nearly 40 copiers/printers and Faxes and none will print using Either HP Jet Dire

  • Unable to permanently Hide Menu Bar

    Hello I have a WD ABAP Application from where I call a SAPGUI HTML Transaction. It works fine. Now customer wants to hide the Menu Button and OK Header Code. I tried  adding          '&~WEBGUI_SIMPLE_TOOLBAR=132' When the screen is called the first t

  • Help! iPhoto trashed by upgrade to Yosemite.

    I just got an iMac Retina 5K (with Yosemite).  I "migrated" from a late '09 iMac running Mountain Lion with iPhoto '09 version 8.1.2.  Everything migrated EXCEPT iPhoto.  Now, iPhoto won't launch.  Details below. I tried updating iPhoto to version 9

  • Can I make a chart automatically source data from different parts of a table?

    Hi! I have a chart that shows data entered into one row across several columns of a table. I want the chart to automatically display information from the next row down once data has been entered into all fields of the first row without the chart disp

  • Enabling SNMP

    Hi guys, i'm having some problems finding a way to enable SNMP agent so I can collect the alarms on another platform. I'm running Oracle Database 11gR2. I just need to know where to beggin (i've been reading alot and i'm still lost), like what agent