muheeb
23rd July 2002, 10:50
Hi,

Is the predifened variable "spool.pg.length" is R/W?

i.e. can I change the content of this varibale manually in

script before running the report??

cause I tried that and still the report will be printed

in the "Page Length" specified in "Device Data", like

it seems that "spool.pg.length" is readonly variable.

Thanks.

NPRao
23rd July 2002, 10:58
Hi Muheeb,

I never tried this but checking the help document will give you more info -

http://www.baanboard.com/programmers_manual_baanerp_help_functions_spooling_spool_open


If you specify a device name in the device argument, it is stored in the predefined variable spool.device. The settings for the predefined variables spool.paper.type, spool.left.mrg, spool.fileout, and spool.pg.length are taken from the default settings for the specified device.

If both reportname and device are specified, the defaults for the predefined variables are taken from the default settings for the specified report. The device name is stored in spool.device.

If both reportname and device are empty (""), the predefined variables retain their values from the previous spool action

~Vamsi
23rd July 2002, 18:35
In which section are you changing it Muheeb. The variable will be overwritten once a rprt_open is done. So you will have to set it after the report is opened for Baan to take your value.