Page 1 of 1

CadViewX StRg() method not working

Posted: 02 Feb 2016, 06:44
by clho40
Hello,

I run the code below

Code: Select all

public Register()
        {
            AxCADViewLib.AxCADViewX cadviewx1 = new AxCADViewLib.AxCADViewX();
            cadviewx1.CreateControl();
            cadviewx1.StRg("my name", "myemail@email.com", "my_key");
        }
However, I can't get my product registered. Every time I run CadViewX it still prompt me for the registration. I've used the same name,email and key in my developer PC so I'm sure my product keys are working.

Please advise how to register the product programatically. Thank you.

Re: CadViewX StRg() method not working

Posted: 02 Feb 2016, 10:54
by support
Hello,

At first look, your code is correct. Could you try to enter the registration data in CADViewX Pro Registration Dialog window?


Mikhail

Re: CadViewX StRg() method not working

Posted: 02 Feb 2016, 13:08
by clho40
Hello,

Yes I've tried to enter the registration data in CADViewX Pro Registration Dialog window. It worked. But I couldn't do this to every user PC.

Thanks

Re: CadViewX StRg() method not working

Posted: 26 Dec 2019, 17:36
by 敏峰.张
I think it's not a good way to expose the register key to users, especially projects using HTML and Javascript to call the control. I suggest a popup dialog while the control is unregistered.

Re: CadViewX StRg() method not working

Posted: 26 Dec 2019, 20:48
by support
敏峰.张 wrote:
26 Dec 2019, 17:36
I suggest a popup dialog while the control is unregistered.
There is a trial text which is displayed on top of the loaded drawing if the control (CADViewX Lite) is unregistered:

CADViewX - Evaluation version,
purchase CADViewX on cadsofttools.com


Mikhail

Re: CadViewX StRg() method not working

Posted: 27 Dec 2019, 04:03
by 敏峰.张
support wrote:
26 Dec 2019, 20:48
敏峰.张 wrote:
26 Dec 2019, 17:36
I suggest a popup dialog while the control is unregistered.
There is a trial text which is displayed on top of the loaded drawing if the control (CADViewX Lite) is unregistered:

CADViewX - Evaluation version,
purchase CADViewX on cadsofttools.com


Mikhail
But is there a link or button users can click to call the register dialog when they see the text? I know there is parameter [SelfPopupMenu] can hide the "right-click" menu include register option, in this case, system admin could not register the control easily.

Re: CadViewX StRg() method not working

Posted: 27 Dec 2019, 12:10
by support
Hello,

It is possible to call the Registration Dialog programmatically:

Code: Select all

cadviewx1.DoToolButtonClick(CADViewLib.TxToolButton.tbRegister);
Mikhail