Discuss and ask questions about CADViewX (Lite and Pro versions).
Moderators: SDS, support, admin
-
clho40
- Posts: 7
- Joined: 25 Jan 2016, 04:39
Post
by clho40 » 02 Feb 2016, 06:44
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.
-
support
- Posts: 3272
- Joined: 30 Mar 2005, 11:36
-
Contact:
Post
by support » 02 Feb 2016, 10:54
Hello,
At first look, your code is correct. Could you try to enter the registration data in CADViewX Pro Registration Dialog window?
Mikhail
-
clho40
- Posts: 7
- Joined: 25 Jan 2016, 04:39
Post
by clho40 » 02 Feb 2016, 13:08
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
-
敏峰.张
- Posts: 16
- Joined: 26 Dec 2019, 04:49
Post
by 敏峰.张 » 26 Dec 2019, 17:36
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.
-
support
- Posts: 3272
- Joined: 30 Mar 2005, 11:36
-
Contact:
Post
by support » 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
-
敏峰.张
- Posts: 16
- Joined: 26 Dec 2019, 04:49
Post
by 敏峰.张 » 27 Dec 2019, 04:03
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.
-
support
- Posts: 3272
- Joined: 30 Mar 2005, 11:36
-
Contact:
Post
by support » 27 Dec 2019, 12:10
Hello,
It is possible to call the Registration Dialog programmatically:
Code: Select all
cadviewx1.DoToolButtonClick(CADViewLib.TxToolButton.tbRegister);
Mikhail