dunvince
22nd June 2011, 00:20
I am using the text.to.buf function to print text on a report. The problem is when I have more than 98 lines of text. I get the out of dims error. Has anyone else ever run into this? What are the other options for printing text on
a report?

extern domain tcmcs.str300m text.buf(500)

text.lines = text.to.buf("tirou900.txta","2",500,text.buf)

For now, I added code to warn the user of the large text & print nothing if the number of lines is > 98.

mark_h
22nd June 2011, 03:07
Why are you using text.to.buf? Why not just print the text straight onto the report?

dunvince
22nd June 2011, 04:18
Just stupid I guess. I didn't read here enough and thought that when I printed the text field, the text number would print.
Thanks for your help.

mark_h
22nd June 2011, 05:33
Glad to be of service. Everybody was a beginner at one time or other. It is also kind of tough to search this board if you are not sure what to look for - heck I even find it hard sometimes when I know exactly what I am looking for. :)