Hi
I want to use the CentimetersToPoints-Method of the WordApplication-Object:
CREATE(wdApp);
wdApp.Visible := TRUE;
theWidth := wdApp.CentimetersToPoints(7.5);
Unfortunately it doesn't work. The following error is thrown:
Could not invoike the mbmber CentimetersToPoints. The ole control or automation server returned an unknown error.
Navision 3.7, WordLibrary 9.0
Any ideas? Thanks in advance
Thomas
Answers
Thanks in advance
But I wouldn't know what I would have to do to get this in VBA :-k .
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
In VB, it works the expected way, in Navision it doesn't.
Anyway, I have found a workaround (manual compute the points).
Thanks
Thomas
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
The approx formula is as fw:
theWidth := centimeters * 28.35