Origin Version (Select Help-->About Origin): 6.1 Operating System: Windows2000
Hi,
i try to save data with the following code: [export] wks.export.cntrl=0; wks.export.separator$=","; wks.export.c1=1; wks.export.c2=2; wks.export.r1=1; wks.export.r2=964; save -WH %H %X%H.xy;
The file is created, but the data file contains no data. The file has a size of 0! My worksheet is big enough, if I export manually everything is fine.
Your script works perfectly in Origin 7.5... file is written with the specified data. The only reason I can imagine that it would fail (other than a bug in Origin 6.1) is if the wks you want to export is not active when you run the script.
...Script would also fail if you haven't saved the project because %X would be empty. However, if a 0 byte file was created that's probably not the case.