I imported some tables (from text format) and when i complile I receive the following error message:
"This message is for C/AL programmers:
The OLE control or Automation Server identified by
'Microsoft Common Dialog Control 6.0 (SP3)' .CommonDialog
Requires a design time license. This license cannot be obtained.
Make sure that the OLE control or Automation server is installed correctly with an appropriate license"
The control is registered, i have no ideea about what I should do to obtain a design-time license...
I have read another post on this forum regarding the same problem, but i did not understand exactly what the sollution is.
"Simplicity is the ultimate sophistication."
Leonardo DaVinci
0
Comments
Install visual studio and it is ok (or import apropriate reg file from installaction cd for visual studio... :-)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
could this problem be caused by having Visual Studio Beta2 installed on the same computer (probably due to update of CommonDialogs library - new service pack with more restrictive licence) ?
there is no problem for example with VS2005...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
to install the licence use the VB6Controls.reg file that can be found for example on Visual Studio CDs in Extras/VBControls directory
merge the reg file into windows registry and problem is solved
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
If it's in 1 through 1000, it doesn't give you the error.
Maually recreate codeunit 412, without copying and pasting, and you'll get the license error.
But if you copy and paste the function into a new codeunit, it will compile.
Navision errors if your variable are in one million range. If you export the object to text, you'll see that every variable e.g. text@10000000023 .
if you change it text@001, and they all have to be unique, you'll be able to use the ocx.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
And yes, the OCX is registered.
I looked at the Control ID of the OCX variable and it is set at 1005.
I tried to change it to 400 by changing the properties of the variable and by exporting the object in text, changing the value and importing the text file in Navision and I got the following error both times:
"The variable ID 400 for variable CommonDialogControl is reserved for C/SIDE-defined variables only. The minimum ID number allowed is 1000."
Anything I'm missing?
I got the same issue!
someone can help plz?
OK, solved by copying 'n' pasting the variable...thanks BTW
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
0 0
/\
:shock:
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
I've a similar Problem. On my System I can compile the Codeunit where I use the comdlg32.ocx. But on the Server (Windows 7 64 bit), where the ocx is also registered the Codeunit doesn't compile. It only compiles if I import as a FOB. As txt it doesn't compile. I have to import as a txt.
Is there maybe another ocx for the 64 bit System? Or have somebody another idea?
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
Judging from http://support.microsoft.com/default.as ... -us;318597, it needs to be Visual Studio 2005 or before.
Jan Hoek
Product Developer
Mprise Products B.V.