dthomson
7th May 2002, 14:12
When using stpapi.set.report, is it possible to choose an ascif device & specify the filename?

Again using stpapi - when selecting a printer device is it possible to change any of the print options ( Number of copies etc.)

-------------------------

When creating a report session is it possible to set the print parameters within a program script without displaying the print option form (using the execute(print.data) command).

mark_h
7th May 2002, 17:32
Yes. Just set the spool.device to ASCIF and spool.fileout to the file name.

Mark

dthomson
7th May 2002, 18:07
Thank you for the above solution. Does this work with stpapi functions or do I have to use something else? If it does work with stpapi, how do I implement it.

Regards,

Derek

ekrishna
7th May 2002, 20:29
Use stpapi.put.field(<Session>, "spool.fileout", <File name>) to
set the ASCII filename using AFS calls

mark_h
7th May 2002, 21:34
Here is a sample of what I do:

spool.device = "ASCIF"
spool.fileout = "/home/mark/filex"
stpapi.set.report("tibom1410m000","rtibom14102000",spool.device,errmsg)

I am doing this from memory since I am out of town right now, so I am not sure of the stpapi.set.report command and format. You can do a search on this forum for "stpapi" and probably find an example or two.

Good Luck!

Mark

dthomson
8th May 2002, 13:03
:D

This is working great.

A big thank you to all who replied.

Derek