pgrootenhuis
22nd April 2004, 15:52
Hi,

When I use a Baan IV text in my MS-Word Doc, I see 'strange' characters in between the text, in Word these are shown as blocks.
I place my fields including the text string of a text (not the text number from tttxt010.text) in an ASCII file which I use with a merge in MS-Word. All fields are okay, except the textfield from tttxt010.text. I can see all text lines, but placed after eachother but with the 'strange'characters placed at the position where the Baan text is skipped to a new line, so not always after 80 positions.
I've tried to convert or delete these characters in my script, but that won't work (do I have the wrong chr$ ??). I assume that the characters stand for 'return' (chr$(13)) or 'end of line' or 'linefeed' (chr$(10)) or is this another character.
I'm not sure it's only a character at the end of a textline or also at the beginning of a new textline.

Does anyone know what characters these are, and if so, can you give me the chr$ code ?

Greetings,

Peter.

mark_h
23rd April 2004, 23:23
See if this link (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=9069&highlight=newline) helps.

Good Luck!

Mark

wimvg1
28th April 2004, 18:16
Hello Peter,

Tttxt010 contains compressed text, for each string there are 3 or 4 bytes indicating row-position, column position and graphical type. Anyway, it is much easier to use text.to.buf and then write the buffer to your file.

Best Regards,

Wim