1

I have added the reference "minitab 18.0 Addin Interface" and how to get the reference of "Mtb"?

I googled many times but I could only find the code like the "Mtb.Application MtbApp = new Mtb.Application();"

I didn't know the sentence of "using Mtb = ?"

enter image description here

I know this is a newbie question but I never found any information for this.

Any help may be appreciated.

PS:Is there any doc or guide for it?

=========================================update=========================== ·

I have enter image description here

and have tried the

using MinitabAddinTLB;

or

using Mtb = MinitabAddinTLB;

but enter image description here

Sorry,still

enter image description here

张绍峰
  • 301
  • 2
  • 13

2 Answers2

1

There is another reference named "mtb 18.0 Type Library" behind,which is the correct one.

I get used to the "minitab" and didn't scroll down to "mtb"line......

I feel I am so silly and maybe I need a rest.

Thank you all.

I need to work again.

张绍峰
  • 301
  • 2
  • 13
0

Note: I don't know exactly if there is a difference between 17.0 and 18.0, but maybe this can help you.

Add Minitab Addin Interface

And then you can add a public class implementing the MinitabAddinTLB.IMinitabAddin interface.

using System.Runtime.InteropServices; 
using MinitabAddinTLB;

public class AddIn : IMinitabAddin
{
  internal static Mtb.Application mtbApp;

  public void OnConnect(Int32 iHwnd, Object pApp, ref Int32 iFlags) {/* */}
  /* */
}
Razvan Dumitru
  • 11,815
  • 5
  • 34
  • 54