Hi
I have a question which was in parts discussed in
http://www.mibuso.com/forum/viewtopic.php?t=7980
There is a COM object which returns a long text (bstr). When using
myStr := myCom.TextData the ffw error occurs:
"The length of the text string exceeds the size of the string buffer."
This is in Navision 4.0, so I thought I could work around with a bigtext variable, but the same problem there.
myBigText.ADDTEXT.. does not work for the same reason and
myBigTxt.READ needs a Stream as input.
BTW, changing the COM object is not an option.

Any comments or workaround on this will be appreciated.
Thanks
Thomas
Comments
Do you have a code sample for this?
Btw: In the meantime I developed a kind of a helper dll, which first receives the whole automation object from navision (by a method a) and then returns chunks of the long text back to navision (by a method b). This works quite ok, but is IMHO too complex to use on a regular basis.
I traded my sanity for a railgun
Thank you very much for your feedback.
Thomas
I traded my sanity for a railgun
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
http://home.casema.nl/mvandermeij
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n