Hi
I have registered a dll to Navision. One of dll's function is returning the text more than 1024 length.
How to handle this situation.
Here is the code which I tried
Var Name Type subtype
AutomationVar Automation which will point to my new registered dll
BigTextVar BigText
Code :
BigTextVar.AddText(AutomationVar.GetText());
//AutomationVar.GetText() getting text more than 1024 characters.
here I am getting the error "length of the text string is exceeds size of the bugger.
is there any way to handle this situation
Ajay
0
Comments
XMLDom.loadXML(AutomationVar.GetText());
Where XMLDom is of type 'Microsoft XML, v3.0'.DOMDocument'
still getting the same error "length of the text string is exceeds size of the buffer"
any idea on this
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
while i'm not in office this time i post the code later
Regards,
Markus
I don't think it's possible unless you use 2009 RTL with variant type. But I would like to see it.
The last line above will still error out.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
XlRange := XlWrkSht.Range('A1').SpecialCells(11);
Maxi := XlRange.Row;
Maxj := XlRange.Column;
i := FirstRowNo;
REPEAT
j := 1;
xlRowID := FORMAT(i);
REPEAT
xlColID := GetExcelColumn(j);
CASE xlColID OF
'K' : BEGIN
CREATE(bcon);
y := 1;
x := 0;
bcon.BSTR(XlWrkSht.Range(xlColID + xlRowID).Value);
WHILE x < bcon.GetBSTRLength DO BEGIN
bcon.GetNextStringPortion(ImpExtText[y],1024);
x += 1024;
y +=1;
END;
CLEAR(bcon);
END;
we use excel to import nonstock item text. this works.
Maybe you need to import the value of a single field of the xml
would error if the cell has more than 1024 characters.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
works fine - no error
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n