Hello, can't get ColumnWidth from Excel. (NAV 2016)
Have this error:
Result (decimal) := XlRange.ColumnWidth;
Microsoft Dynamics NAV
A DotNet variable has not been instantiated. Attempting to call Microsoft.Office.Interop.Excel.Range.ColumnWidth in CodeUnit Excel Management: CopyColumnWidth
OK
Also this code:
XlRange2.ColumnWidth := XlRange.ColumnWidth;
Crushed NAV at all.
How Can I get this ColumnWidth to operate with it as Decimal?
Answers
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
See MSDN for details.
Thank you, I have multiple columns with different size.