LupyDied
15th April 2009, 11:18
Hi,

Could you help me to print a report with >5000 chars/Columns; I need to ask the device (file/notepad/excel...).

I used the Spooling functions:

- in BaaN IV c4 I haven't problems to use the spool.pr.line;

- in LN 6.1 the line is troncated to 550 chars.

Do you know other solutions? Or why the spool.pr.line is fixed to 550 chars?

Many thanks.
LupyDied.

george7a
15th April 2009, 12:46
Hi,

There are many threads about this issue in the forum. Here is one:
http://www.baanboard.com/baanboard/showthread.php?t=30669

Please search the forum for more links. I hope it helps,

- George

LupyDied
16th April 2009, 10:32
Many thanks for your answer, but I need to use the spooling functions:

Example 2
long spooler1, spooler2

spooler1 = spool.open("", "", 1)
spooler2 = spool.open("", "1", 0)

spool.pr.line = "Hello spooler1................................"
spool.id = spooler1
spool.line()
spool.pr.line = "Hello spooler2................................"
spool.id = spooler2
spool.line()

spool.id = spooler1
spool.close() | close spooler 1
spool.id = spooler2
spool.close() | close spooler 2


I can insert more than 5000 chars in the spool.pr.line, but the spool.line() truncates to 550 chars. Could you esplain me why?

Many thanks.

LupyDied

george7a
16th April 2009, 10:37
Hi,

In the following documentation it says that the size of spool.pr.line is only 300:
http://www.baanboard.com/programmers_manual_baanerp_help_functions_spooling_overview_and_synopsis

It is a known limitation. You will have to use the workaround that is mentioned in the link above.

- George