despetits
27th March 2003, 16:42
Hello,
What is the max number of caracter we can put on a line of the report ?
We've tried to put more a Page width > 256; Baan send an error message if we try to put 300 for example.
We want to see the result on the screen, not in a file.
Cheers
mark_h
27th March 2003, 16:53
The limit is 255. I usually use mutliple detail layouts for those that are greater than 255.
Mark
NPRao
27th March 2003, 20:33
The only alternative I found was to use the spool functions -
string temp(257)
temp = string.set$("x", 257)
temp(256;1) = "y"
if spool.open("","D", 0) then
spool.pr.line = temp
spool.line()
spool.close()
endif
But we loose the options which reports provide - sort, conditional printing, header, footer etc.
mark_h
27th March 2003, 20:41
I use these commands also, but your display will only cover 255 correct? Wouldn't you miss those over 255 when sending to the screen.
Mark
NPRao
27th March 2003, 20:54
No, or you can also redirect to other device options like - notepad, word etc.
mark_h
27th March 2003, 22:16
Darn! Forgot about that. When I use spool commands it is almost always for Excel reports and that would certainly qualify as a display device. :)
Mark
baanfans
10th December 2004, 00:03
Hello all
I need developpe one session that allow to print to a text file but the witdh of the text file must be greater than 255, I mean, lines in text file have a witdh greater than 255 and is necessary to show completely the line.
I don't know if is possible to do something in report layout in order to allow more fields for text line.
I prefer don't work with seq file functions...
Best regards and thanks in advance,
mark_h
10th December 2004, 00:29
As stated above the only other option is the spool functions like NPR suggested. I do not know of any method that will extend a report layout. Depending on what you are attempting to put in the file and how you want this file. Then mutliple detail layouts may work. Is there something specific you are looking for?Others may have different solutions.
Also please do not post duplicate threads. I will delete the other thread.
Mark
baanfans
10th December 2004, 00:56
Hello,
I need a function that allow one way to extend layout report and by example, in two or more lines of layout can view in text file only one line...
Sorry for post twice the same thread...
Thanks in advance,
p.cole
10th December 2004, 02:08
I do it by using one layout with multiple lines but make the last line of the script a backslash "\". The report is then parsed through a script to merge all lines ending with a backslash into one line. This works great for exporting to Excel, but I don't think it will help if you're wanting to display it to screen within ttstpdisplay.
baanfans
10th December 2004, 16:18
Hello,
This way is very useful for me, but I don't understand very well:
"but make the last line of the script a backslash "\"
I remember that in the last position of the line must be one character ... but I tried with backslash and it doesn't work, is for Baan V.
Thanks,
p.cole
10th December 2004, 16:20
There's nothing in standard Baan that will join two lines ending with a backslash, you need to write a custom script to join them as part of the post-processing script once the report has been run.