ltannous
8th March 2004, 17:03
I have created a report session, but I need report to export as a specif file to a specific directory on our server. I dont want the user to select a device, just send this file out.

en@frrom
8th March 2004, 17:13
Before opening the report, you can use the predefine variable
- spool.fileout - to set the file-path

When you open the report with function brp.open(rep.name, device, mode) you set the device as second argument, and the mode is 0. Then the user will not get to select a device.

Good luck!

En.

ltannous
8th March 2004, 23:04
The device window still displays with the values I entered in the spool.filout and brp.open.

Not sure what is the error:



choice.cont.process:
before.choice:
spool.fileout=("/home/ltannous/ediout.txt")

on.choice:

brp.open("rwtedi042011000","ASCIF", 0)
if rprt_open() then

read.main.table()
rprt_close()
else
choice.again()
endif

lbencic
8th March 2004, 23:43
The rprt_open() is a function call that calls brp.open with just simple defaults, don't call them both. All the rprt_* commands can be replaced by brp commands. Check the help for brp.open and the spooler commands:

You can use something like:

brp.id = brp.open("rwtedi042011000","ASCIF", 0)
|* to replace the rprt_open()

if brp.id > 0
|* to replace the check for successful open

brp.ready(brp.id)
|* to replace to rprt_send

brp.close(brp.id)
|* to replace rprt_close

ltannous
9th March 2004, 21:00
Thanks for your help. It worked.