king1980
12th March 2010, 10:42
Hi ,
I want the seq.write in the report script.
I am able to create the file in the program script but when i am using same code in report script it's not working.
seq.open return 0 value in report script.
Regards
king1980
günther
12th March 2010, 11:09
There is nothing special about seq.open, seq.write and seq.close within reports. I guess that the filename is not set or wrong. So check your source code, compile the report with debugger or add a message before and after your seq.open call.
Günther
george7a
12th March 2010, 11:43
Gunther is right. Please post your code to get more help.
king1980
12th March 2010, 12:02
Hi George
I have written following code in my report script
declaration:
long ptr
detail.1:
before.layout:
ptr=seq.open("c:\area.txt","W+")
seq.puts("tcmcs045.dsca",ptr)
after.layout:
seq.close(ptr)
but always ptr is 0 value.
Regards
king1980
king1980
12th March 2010, 12:28
Hi All,
Now my code is working.
The problem is with file extension i have changed the file extention to .s from .txt and it's working fine.
Regards
king1980
manish_patel
12th March 2010, 13:47
I don’t think file extension could be a problem. And also, you have to use seq.*.local() functions to perform file operation on the client system.
Please correct me, if I am wrong.