camste
11th April 2013, 14:33
Hello,
We have a report which is mainly used for exporting to Excel. The problem is now that we're running out of space on the row (we've reached the limit of 255), and we want to add some fields. But since it's used in Excel we don't care about keeping the report width narrow enough to fit on one page, and want to add more columns to the same row so that it's not split when exporting. I've read that if using a script with spooling you can get a width up to 512 characters. But where do you put this spooling? In the session script or the report script? And how can you do this with the report layout? Can you actually use one? But then I guess you would have to distribute the information over two lines and somehow merge it into one since the layouts can have maximum 255 characters? Or do you have to enter the row manually into a string variable and then feed that one to the spool.buf function?
Thank you
Camilla
We have a report which is mainly used for exporting to Excel. The problem is now that we're running out of space on the row (we've reached the limit of 255), and we want to add some fields. But since it's used in Excel we don't care about keeping the report width narrow enough to fit on one page, and want to add more columns to the same row so that it's not split when exporting. I've read that if using a script with spooling you can get a width up to 512 characters. But where do you put this spooling? In the session script or the report script? And how can you do this with the report layout? Can you actually use one? But then I guess you would have to distribute the information over two lines and somehow merge it into one since the layouts can have maximum 255 characters? Or do you have to enter the row manually into a string variable and then feed that one to the spool.buf function?
Thank you
Camilla