File Menu Entry Point from VC

Hi,
I am trying to execute a File Menu entrypoint from VC++ code.
can anyone please suggest how to do the same.
I have used below piece of code in my project to execyte the entrypoint.
Here, "Select Model" is one of the File menu item from my process model.
i wanted to execute "Select Model" menu item from VC++ code. but the below piece of code is executing operation failed message
I have doubt at my seqFile ptr. can you please suggest how to give process model seq file reference to seqFile ptr here.
        ExecutionPtr            newExecution = NULL;
        TS:equenceFilePtr        seqFile =GetSequenceFile()    ;
        TS:equenceFilePtr        processModel =     NULL;
        TS::EditArgsPtr            editArgs = NULL;
        TS::EditArgsPtr            seqArgs = NULL;
        _bstr_t                    entryPointName ="Select Model";
        TS::IEnginePtr engine = mApplicationMgr->GetEngine();
        processModel = engine->GetStationModelSequenceFile(NULL);
        editArgs = engine->NewEditArgs();
        editArgs->SetSelectedSequenceFile(seqFile);
        TS:ropertyObjectPtr container = engine->NewPropertyObject(PropValType_Container, FALSE, "", 0);
        container->SetValString("sequence", 0x1, "MainSequence");
        _variant_t vtEditArguments((LPDISPATCH)editArgs, TRUE);
        _variant_t vtSeqArguments((LPDISPATCH)container, TRUE);
        newExecution = engine->NewExecution(seqFile, entryPointName, processModel, 0,
                                            TS::ExecTypeMask_InitiallyHidden, vtSeqArguments, vtEditArguments, vtMissing);
        engine = NULL;
SequenceFilePtr CTestExecDlg::GetSequenceFile(void)
    RuntimeTrace(" TRACE---------CTestExecDlg::GetSequenceFile(void)        \n");//trace
    return mFile;

I'm assuming you have a process model configuration entry point placed in the File menu via a menu hint and that it works fine from the File menu. If so, the following code will execute it:
    long numInserted;
    TSUI::CommandsPtr commands = mApplicationMgr->NewCommands();
    commands->InsertKind(CommandKind_ConfigurationEntryPoints_Set, mSequenceFileViewMgr, -1, "File", "File, Edit, Execute, Debug, Configure, Tools, Help", &numInserted);
    commands->GetItem(0)->Execute(VARIANT_TRUE);

Similar Messages

  • Add WaterMarkFrom File with 0 points from top leaving some space in the top

    Hi,
    I tried to add a water mark image from a file with 0 points from the top. But still it is having some extra space on the top.
    The issue is that I need to place a text and an image at same vertical position from the top of pdf. But image leaves some extra space.
    Can you please help me with this
    Thanks,
    VKP1

    I cannot duplicate your experience. When I add a watermark from a file, and
    the file has content that fills the page completely, I do not see any white
    space between the top or the left edge when I place it at the top left
    corner, with 0pt offset.
    How are you placing the watermark?
    Karl Heinz Kremer
    PDF Acrobatics Without a Net
    [email protected]
    http://www.khkonsulting.com

  • Calling a Configuration Entry Point from a C# code module

    Hi,
    Is it possible to call a configuration entry point from a C# code module?
    I have a custom process model which creates some configuration entry points.
    One of the entry points, calls a C# method in a code module to display a Startup screen for the operator.
    In an Editor User Interface, I have added a toolbar, now I want to execute the previous entry point initiated from my C# code to get the Startup screen again when a button is clicked on the toolbar.
    Best regards

    Hi James,
    Thanks for your suggestion, but unfortunely the code hangs after executing the entrypoint, if have tried it in two ways, but both have the same result. Do you have any idea how to fix this.
    Trial 1:
      Engine engine = new Engine(); ApplicationMgr applicationMgr = (ApplicationMgr)engine.GetInternalOption(InternalOptions.InternalOption_ApplicationManager);EntryPoints entryPoints = applicationMgr.ConfigurationEntryPoints; int intIndex = 0;foreach (EntryPoint entryPoint in entryPoints) {    switch (entryPoint.Name.ToUpper())    {        case "TOGGLE ONLINE <-> OFFLINE":            object objEditArgs = System.Type.Missing;           entryPoint.Run(objEditArgs); // Application hangs after executing this command, the entrypoint does not execute!             break;        default:            break;     }
         intIndex++;
    Trial 2:
      Engine engine = new Engine(); ApplicationMgr applicationMgr = (ApplicationMgr)engine.GetInternalOption(InternalOptions.InternalOption_ApplicationManager);EntryPoints entryPoints = applicationMgr.ConfigurationEntryPoints; int intIndex = 0;foreach (EntryPoint entryPoint in entryPoints) {    switch (entryPoint.Name.ToUpper())    {
            case "TOGGLE ONLINE <-> OFFLINE":           // Application hangs after executing next command, the entrypoint does not execute!           applicationMgr.GetCommand(CommandKinds.CommandKind_ConfigurationEntryPoints_Set, intIndex).Execute(true);              break;        default:            break;     }
         intIndex++;
    Best regards

  • KM Entry Points from Java

    Hi friends.
    I want to access KM Entry Points from Wbbdynpro Java.Is it Possible??.Please help.

    Set your top level RID as /entrypoints
    Iterate through its child (resources) and store their link RID's in a List.
    Check if the following code works
    List folders= null;
    try
         ep5User = WPUMFactory.getUserFactory().getEP5User(user);
         IResourceContext context = new ResourceContext(ep5User);
         RID pathRID = RID.getRID("/entrypoints");
         com.sapportals.wcm.repository.IResource resource = com.sapportals.wcm.repository.ResourceFactory.getInstance().getResource(pathRID,context);
         if(resource.isCollection())
              folders = new ArrayList();
              ICollection collection = (ICollection)resource;
              IResourceListIterator it = collection.getChildren().listIterator();
              while(it.hasNext())
                   IResource res = (IResource)it.next();
                   if(!res.isCollection())
                        folders.add(res.getAccessRID());     
         } catch (Exception e)  {
               e.printStackTrace();
         finally
                          //do something
    return folders;

  • Programmatically selecting Test UUT as entry point from LabVIEW

    Hi,
    Anne here. I am currently develping a user interface in LabVIEW that call the TestStand sequence. Is there a way for me to programaticallys set the entry point to be Test UUT? I used the Run method from the IseequenceFileViewMgr class but it says there that it runs the sequence without a process model entry point. My sequence will always run as Test UUT mode. Is there a way for me to do this? I saw in the help files that there is a EntryPoint Class in Teststand with a Run Method, but I can't seem to find this method in LabVIEW. 
    How can I automatically execute my sequence to run in Test UUT once I call and run the sequence in LabVIEW? 
    Thanks for the help!
    Cheers! 
    Anne
    Solved!
    Go to Solution.

    Hi Roderic,
    Thanks so much for the help! It worked.
    Cheers!
    Anne

  • I want to export windows files, especially power point from a pc with windows7 to a mac pro bought new desember 2012 with OS X 10.8.3. What do i need?

    Kan somebody give me a hint?

    You can put the files on a USB flash drive and copy them over. You will need to get Office 2011 for the Mac.

  • Why does debugger menu entry not exist in Acrobat 7.1.0

    Today I decided to start using the JavaScript functionality of my Acrobat 7.1.0 (updated a few days ago from 7.0.x). First I searched for some documentation and found the original "Acrobat JavaScript Scripting Guide" for Acrobat 7.0, document release date July 19, 2005. What made me doubt about the quality of my environment is that there are always some features mentioned that do not at all exist in my Acrobat, such as menu entries like "Debugger" under "Advanced - Javascript". The only thing I find there is "define document actions" (menu entry translated from German). Reading other posts in this forum concerning Javascript I searched other places like acrobatusers.com and, checking the tutorials, I saw screenshots of preference screens containing more items than my ones, especially more items in the "debugger" panel of the "Javascript" entry. When searching places on my drive where Acrobat should expect JavaScript files like "Program Files\Adobe\Acrobat 7.0\Acrobat\Javascripts" I remember having read that there should be more files than just "Websearch.js" and "JSByteCodeWin.bin" (as it is in my case; but I'm not sure what actually should be there further).
    So far the only thing I can do to open the console is defining some action related with files (but only unhandy ones like "when closed" or "when saved"). The only way I know to open the JS debugger is defining invalid JS code for some file action and perform this action, then the debugger shows up along with the console, complaining.
    Strolling arround in my Acrobat program subdirectories I found documentation and a runnable named "ExtendedScript Toolkit" that seemed to work well (though I could not try it out seriously as it obviously is quite complicated because it relies on the InDesign object model). Did ExtendedScripting coming along with InDesign spoil my normal JavaScript environment in Acrobat? Or was it the update from Acrobat 7.0.0 to 7.1.0? How can it be that menu entries everybody else is talking about are not at all visible in my installation though I desparately enabled almost everything in my Acrobat preference settings? Are there some paranoid web security defaults making entries disappear in my installation?
    Any suggestions will be greatly appreciated!
    Richard

    Bernd,
    the matrix is for Acrobat 9 only and thus not totally liable. However, as for V9 the topic of scripting or debugging is not even touched in the whole matrix, one might suggest that V7 would also make no differences in that area.
    I am only guessing, but the fact that I do not find any hint about a problem similar to my one might have to do something with the "ExtendedScript Toolkit" I mentioned above. If the behavior of my Acrobat installation had been changed due to installing ExtendedScript, this would be a kind of (intended) bug most users would not complain about, because: ExtendedScript comes along with software like InDesign, and the typical ID user is not the one developing JavaScript under Acrobat.
    Searching Google for ExtendedScript I found the Adobe download area and clicking on the item it says:
    The ExtendScript Toolkit (ESTK) 1.0.3 is a scripting utility included with Adobe® Creative Suite 2 and other Adobe applications. The ESTK is used for creating, editing, and debugging JavaScript to be used for scripting Adobe applications.
    Looking up documentation on ExtendedScript (which was not very easy to find) I noticed some examples about adding a document to the target application by executing the line:
    app.document.add();
    As I am starting the ES toolkit as an own main program, I am getting the error message that this call is not executable for the target application "main", which I can accept. Maybe there is a way connecting Acrobat to ExtendedScript, maybe there is even a way to reanimate "normal" scripting, maybe normal scripting is not even unconscious but only sleeping and can be woken up easily ...
    Maybe the best way to find out is searching for a forum about scripting (albeit extended or normal). Funny, though, that my Acrobat does not at all match the original scripting documentation of Adobe concerning such elementary things like menu entries being present (especially see second attachment: "Erweitert" translates to "Advanced", "Dokument-Aktionen festlegen" to "Define document actions". Where is the "Debugger" entry???).
    If I believe others here in this forum saying that the "Debugger" entry normally is appearing in the Javascript menu. Obviously the Acrobat software contains program code to hide or remove this entry permanently. Furthermore, somebody else, also a member of the Adobe stuff, has written the documentation that does not at all contain any applying description of conditions about hiding the menu entry. What I would appreciate is if Adobe would make those two persons talk to each other about what they are doing. By that, other people like me could save a lot of time.

  • Entry Point Drop Site Key (to 9 chars) = LOCY11740 has no effect

    We have the following entry in two places within our .PST file.
    Entry Point Drop Site Key (to 9 chars) = LOCY11740
    I am expecting to see "LOCY11740" in position 52 of the .CSM mail.dat file.  Instead I see "ORIGIN". 
    We are testing using Presort rel 8.00c.09.00 and generating vers 11-2 Mail.Dat files. 
    1.  Am I using the correct parameter in the PST file?
    2.  Is there another PST field that is causing "ORIGIN" to appear?
    Postal 1 TEM will flag CSM entries with "ORIGIN" as warnings.  One for each CSM record!

    Hi Paul,
    Kendra is correct, according to latest mail.dat spec 12-0 (and also in 11-2) the description of the field Entry Point - Actual / Delivery - Locale Key says
    US = LOCA12345 (LOC plus 6 bytes of the Locale key from the drop ship product); u2018ORIGINu2019 for origin entered mail; CAN =A1A 9Z9; u2018FORu2019 for International mail. The field can have a Locale key for origin entered mail when USPS Pick Up is equal to N. See Scenarios and Definitions Sections for alternatives for populating this field. Use value of u2018ORIGINu2019 for Origin/DMU Entered mail OR for US Drop Ship, Zone Skipped, and BMEU entered Mail use the Locale Key ("LOC" in the first 3 bytes, balance is the 6-byte of the USPS dropsite key, also known as the Locale Key); For Canadian mail, use 6 digit Canadian code of Entry facility e.g., A1A9Z9.
    According to PostalOne! tech guide available at https://ribbs.usps.gov/intelligentmail_guides/documents/tech_guides/datspec/PostalOneMailDatTechSpec.pdf says the same thing.
    0673
    Alphanumeric Data Type Error: Entry Point u2013 Actual/Delivery Locale Key must be an alphanumeric value, must contain 'ORIGIN' when the Entry Point for Entry Discount Facility is set to O or H, and must precede with "LOC" plus 6 alphanumeric characters when the Entry Point for Entry Discount Facility is set to B, R, S, D, A, C, K, J, E, L, T, or Q in the .csm file.
    Presort is correct in populating this field with ORIGIN in case of Entry Point Type ="O-Origin".
    Thanks
    Anita S.

  • GetCommand does not return my configuration entry points?

    If I'm in a client sequence file and I want to dynamically execute my own configuration entry point in the process model what is the best way to accomplish that?
    I am trying to get the application manager through an activex step using Engine.GetInternalOption(InternalOption_ApplicationmManager) and then I choose the GetCommand method with CommandKind_ConfigurationEntryPoints_Set.  It will only use an index for one of the 3 default configuration entry points (Report Options, Model Options or Database Options).  It throws an index out of range if I try to get my own.  This is from James Grey's post here: http://forums.ni.com/t5/NI-TestStand/Calling-a-Configuration-Entry-Point-from-a-C-code-module/td-p/1... (I'm not in .NET though.  I just want to use activex steps in TS).  The 3 default ones work perfectly.  It's only when I try my own that I've added.
    Any thoughts?
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~
    Solved!
    Go to Solution.

    I can call it directly as well but it doesn't exhibit the behavior I want.
    Basically we have a process model with a Configuration Entry point called About Test.  This calls a sub sequence which has 2 steps in it. The first step is a callback and the second is a VI call.  The VI displays a splash screen with our company logo, disclosure and the text (usually a software part number) returned by the callback.
    What I want to do is put the SequenceFileLoad callback in our clients and have a step in there that will invoke the About Test entry point upon sequence load.
    The series would look like this:
    SequenceFileLoad(client)>>About Test Configuration Entry Point(model)>>SubSequence(model)>>About Test Model Callback (client)>>VI Splash Screen(model)
    All of this would be a lot easier with a (ProcessModelFileLoad): http://forums.ni.com/t5/NI-TestStand-Idea-Exchange/ProcessModelFileLoad-Engine-Callback/idi-p/225016...
    So back to my point about it not working correctly.  It doesn't seem to be invoking the model callback when I use New Execution or call the sequence directly.
    Also, what is the explanation for my config entry points not showing up at all in the list?  it seems that function should grab all config entry points in the model..... 
    Thanks a bunch,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • "Save for web and devices" missing in File menu

    In Illustrator CS5, Win 7, "Save for Web and devices" is missing, ever since recently installed. A reinstall with all defaults does not fix it. Nor does deleting the Adobe "Illustrator CS5.1 Settings" folder. The File menu entry is not grayed out. It is missing. The applicaiton is up to date.
    (A) A clue is when opening Illustrator this error dialog appears: "Error loading plugins. DxfDwg.aip PNGFileFormat.aip". However, both files exist in the "Plug-ins\Illustrator Formats" folder.
    (B) Closing Illustrator and restarting gives a different error message: "Some plug-ins have been updated. You will need to relauch Illustrator for the changes to take effect."
    (C) Closing and restarting takes me back to (A).
    Web searches reveal this to be a perennial problem. There is, however, nothing in Adobe support about it I could find. This is a showstopper.
    Thanks!
    Puzzled in Atlanta

    Larry,
    Thanks!
    No. I did a support call this morning. Reinstalls from a DVD and a
    download both failed to solve the problem. He did not suggest the
    cleaner step.
    I did check to see that Program Files (x86)/Adobe/Adobe Illustrator
    CS5.1 was empty after uninstalling AI 5. Then I deleted it.
    So what I've done is uninstalled AI CS5 again. Then I downloaded the
    cleaner. Here's what it says:
        "List of products installed on this machine:
        1. Adobe Premiere Pro CS5 Family
        2. Adobe Photoshop CS5
        3. Adobe Dreamweaver CS5.5
        4. Clean All."
    It thus appears there is no way to clean just AI. So I quit the cleaner.
    I will report to the forum on how Adobe support fixes this problem. I'm
    now awaiting their reply on the case.
    Thanks so much. Wish I could help you!
    Jack

  • DYLIB entry point

    Hello guys, I am new in Mac, I was trying to find answers for my questions in official Mac docs,... but I could not...
    1. Does DYLIB file contain entry point like DLL's WinMain?
    2. Where can I find does about DYLIB loading into memory?
    Thanks,
    Dymytriy.

    Dymytriy wrote:
    Hello guys, I am new in Mac, I was trying to find answers for my questions in official Mac docs,... but I could not...
    1. Does DYLIB file contain entry point like DLL's WinMain?
    DllMain is what you are thinking of and yes ...
    _attribute_((constructor)) void foobar()
    2. Where can I find does about DYLIB loading into memory?
    http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/D ynamicLibraries/000-Introduction/Introduction.html#//apple_ref/doc/uid/TP4000190 8-SW1
    Thanks,
    You're welcome.

  • Test Stand File menu item entry point execution in VC++ code

    Hi,
    Can you please suggest me, how to execute a file menu item entry point pragmatically in a VC++ code.
    My process model seq inserts an item called "Select Model" into TS file menu.
    i have to programmatically execute this entrypoint from an Operator interface developed in VC++.
    Request your suggestion in this concern.

    Couln't you just use the PerformClick Method?  So basically you'll have a reference to your menu somewhere in the code.  Get the node of the item you want and then use the PerformClick method.
    From MSDN: http://msdn.microsoft.com/en-us/library/system.win​dows.forms.menuitem.performclick%28v=vs.71%29.aspx
    I recommend that vs going through the TestStand API.  It will be a lot cleaner.
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How can I remove items from the open a recent file menue.

    How can I remove items from the "Open a Recent File" menue. Many other applications allow the clearing of that file . Is this possible in Adobe Reader 10.1.2 ? If so how?

    See this previous topic: http://forums.adobe.com/message/3759596
    It is for Acrobat, but the registry entries are similar for Reader.

  • Is it possible to add a single Entry Point menu item to a LabVIEW OI menu?

    Using the "TestStand - Insert Commands in Menu (Application Manager).vi" library VI, I can add all Configure menu items to a menu with the "CommandKind_ConfigurationEntryPoints_Set" option for the "Commands" input.  But the VI is missing an "Index" input to specify a single item from the collection.  (UnlikeThe "AplicationMgr.ConnectCommand()" function, which allows you to specify a single item with an index.)
    The issue is the same for Execution Entry Points and Tools as it is for Configuration Entry Point--I can create a menu containing the entire collection, but not a single item.  I tried to delve into the VI to change it to allow specification of individual commands using an index using the Commands.Insert() function instead of the Commands.InsertKind() function, but without success.
    As an aside, even when I add all Tools to a menu (using CommandKind_Tools_Set), TestStand exits with a warning that 12 "RunTimeMenuItem" objects were not released.  I'm wondering if I should be using the Engine.GetRunTimeToolMenuItems interface instead.  But if that's the case, I think I have to build the menu myself and can't use the TestStand library VIs to automatically run commands when their corresponding menu items are selected.  Maybe this is just a bug in the TestStand VIs?
    I am using TestStand 2010 SP1 with LabVIEW 2014.
    Any advice would be appreciated.  Thanks.
    -Jeff

    I am closing the TestStand Engine, VI Refnum, Quit Application event, and Event Callback, just like in the example.  I get the TestStand unreleased reference error only if I call that VI to include the Tools menu.  The fact that the unreleased objects are "RunTimeMenuItem" objects also implies to me that the problem is specific to the Tools menu items.  Since Tools menus seem to have their own API (which involves RunTimeMenuItems), it seems to me that the VI (or the TestStand Engine?) is doing something with RunTimeMenuItems that I can't see, and is somehow losing track of them (because that VI gives me no visibility to any RunTimeMenuItem objects).  Is it possible that one should explicitly use RunTimeMenuItem objects instead of the menu VI when dealing with Tools menus?  (Maybe the error is due to my using TestStand 2010 SP1 on Windows 8.1, for which TestStand 2010 SP1 is not officially supported?)

  • I just started a free trial of the Adobe XI product that allows me to create an editable PDF. I'm done creating the form and ready to export it. When I click Export PDF from the File menu, it says Adobe encountered an unexpected error. What am I doing wro

    I just started a free trial of the Adobe XI product that allows me to create an editable PDF. I'm done creating the form and ready to export it. When I click Export PDF from the File menu, it says Adobe encountered an unexpected error. What am I doing wrong?

    Good to know  — there is no such application as "Adobe XI".
    "Adobe" is the name of the company.
    "XI" is indicative of the use of either Acrobat XI or Reader XI.
    Neither Acrobat XI Pro (for which Adobe provides a free, fully functional 30-day trial) nor Adobe Reader XI (the free to download and use PDF viewer that Adobe provides) have  an "Export PDF" entry under "File".
    "Export PDF" only is present in Adobe Reader XI over on the right on the "Tools" panel.
    The "Tools" panel provides a way for a user of Adobe Reader XI to connect to various By Subscription online services (gotta pay eh).
    Export PDF is one of these. A subscription lets you send a PDF file to the online internet service (aka "cloud" service). The service then exports to a supported file format (Word / Excel / ...) and the user selects / directs where the output file is to be saved on the user's local machine.
    Of course to use any of the online subscription services one must have an active (paid up in full) subscription to the service.
    So ---- As described the puzzle pieces don't fit eh.
    What specific Adobe (the company) applications are you using?
    Acrobat XI Pro? Adobe Reader XI? Both? 
    Be well....

Maybe you are looking for

  • Populating the database

    I have all the data in a comma-delimited text file. How do I import that text file into the database (Oracle8i)? Khurram

  • Text Wrapping issue in Long Texts in ECC 6.0

    Hi, We are migrating Tasklist data from SAP 3.1i system to SAP 6.0. So we were moving the existing Long Text in 3.1i with the same paramenters to 6.0, I am facing an issue of text Wrapping(while displaying). I am updating complete header data like -

  • SharePoint Workflow Long Date does not output day of week!

    Hi all,  We have developed a workflow that sets a time delay and notifies users after three working days have elapsed. It detects a working day by checking whether the words "Saturday" or "Sunday" occur in the long date version of "Today". This workf

  • I've lost my boot menu options.

    When i boot and hold command all I can see is my windows partition. How can I re-install OSX/recover my HD. (only had for 2 weeks and It came with no boot CD or USB). As i only have windows i need to be able to do any recovery from there. What i've t

  • Moving objects around the page

    I want to design a 'spider-gram' using objects in Pages but I find I can't drag the circle and position it in the centre of the page. What am I doing wrong?