How to create a workstep with line UI just like "volume calculation" using Petrel Ocean API? - ocean

I created a workstep using Ocean API. It allows user to create new or edit an existing object in input pane. For the workstep line UI, I would like to make it display name and image of selected object. In Petrel, there are many worksteps which have the similar line UI, for example, "Volume Calculation".
I tried "DescribedArgumentsByReflection", but it always makes the line UI in workflow editor and allows user to drop item/specify value.
So, is there any way to make line UI just like "Volume calculation" in workstep using Ocean API? I searched the whole Ocean documentation/examples, unfortunately, nothing found.
Thanks.

Related

Application.ObjectChangeIcon method in MS Project

I read Edge MS documentation on the subject method and a couple of things are unclear or perhaps wrong. Supposedly the document was written or updated 01/18/22 so it should be applicable to Project 2019 Pro desktop.
1.The remarks section says, "The bitmap or drawing object must be displayed and selected" (Gantt Chart view). What exactly does that mean? I created a drawing object (polygon), placed it on the Gantt Chart and selected it. However, when I attempt to run Application.ObjectChangeIcon via the Immediate window, an error occurs saying, "The method is not available in this situation". What am I missing?
2.Further in the remarks section it talks about creating a new custom ribbon tab and group. Then it says to add the Object and Convert commands to the group. There is a Convert command but there is no "Object" command.
Project ribbon commands screen shot:
John

How put custom icon to Visio Document for custom ribbon

I am trying to put custom icon to Visio Document for custom ribbon. When I using Excel I can use utility “Custom UI Editor for Microsoft Office”. For example, I can write next xml in utility and insert some picture:
Custom UI Editor
In Excel all working excellent.
But when I trying use this way in Visio, I don’t see picture on ribbon when I opening Visio-document.
After that I opening “Custom UI Editor for Microsoft Office” for Visio-document I also don’t see inserted picture that I inserted before.
Custom UI Editor after opening Visio-document
Can anyone help me out with my problem? Thank you.
This is a known issue in Visio. Custom icons in .vsdx file simply do not work.
If you are really determined to have custom pictures, you should do it otherwise.
Like via VBA macro, by writing a callback, i.e. instead of image specifying getImage pointing to some callback function to get the custom image. Or even by creating a full-blown extension.
Note - Microsoft-defined (idMso) images work fine.

Embedding Word Object into VB.Net Winform

I wondering if its possible to use Microsoft Word as a text editor in a VB.Net project?
My project currently uses a Rich Text Box to allow the user to right a report which is then saved and a report generated. I was wondering if i could switch to Word for better formatting and layout options, be it embedded in the actual form or in another form thats called (if that makes it easier to assign the control).
I have worked on opening Word itself via a button click but would like to have it incorporated in the project. All users that would actually use the program would have one of the more recent versions of word installed.
Any pointers to websites would be great as i'm constantly searching but not getting very far
Thanks

How to open word file in background using vb.net?

I am working on creating multiple documents from source document.
I am using:
objWordApp.Documents.Open("D:\Template\Aptletter.doc")
I modify the above document and save in another folder.
While creating documents, word files are opening and closing multiple times. So user unable to do another work on the same PC.
How to stop open file or Is there any method to modify document without above method?
So please suggest
Thanks in Advance
DEV
The visibility of a word document being controlled via interop can be set using the WordApplication.Visible attribute.
This attribute is, as you can see, at the Application level. If you've already opened a document using that WordApplication, you can't suddenly make the application invisible using the attribute.
What you can do, though, is create another instance of WordApplication. Call it InvisibleWordApplication for clarity, and set InvisibleWordApplication.Visible = false right from the start. Then open your document using that application, and you should be set.

Modify Outlook Form Code programmatically

How to programmatically get at outlook form code?
To clarify from one of the comments - Outlook form code is the VBA code that sits behind the form - it can be customised in the form design mode to do pretty much what the user needs to do.
Our product relies heavily on form code, but certain bits of it need to be customised per installation. We are looking for some way to automate this process, as we have upwards of 30 custom forms it is a tedious process to do it manually...:-)
Use a configuration file (use ReadFile etc)
Or put the configuration information in a "special" item in a public shared folder
You can also use the "Office Profile Wizard" to package it up with a custom vba module iwht the configuration information in that
You should never write out customised code, that is a big can of worms