The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Export Ascii
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

amohammed6175

USA
4 Posts

Posted - 08/27/2015 :  11:59:09 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:windows 7

i just start working with origin Pro. Lab is they need to create a custom button to be able to save a specific sheet in a workbook to csv with no long name and the name of the file has to be the same of the imported file to the same file location was imported

i was able to create the button, but still missing the code to be attached to it

when i used this code, of course the name always still static

expASC type:=csv path:="C:\Users\amohammed6175\Desktop\sFile" overwrite:=replace longname:=0

if you can help


Ahmed Mohamed

cpyang

USA
1406 Posts

Posted - 08/27/2015 :  7:45:59 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Not sure if I understand you completely but if you are asking how to export into the original data file that was imported into the sheet, then you can use the following code, assuming that there was only one import in that book

%A=page.info.system.import.filepath$;
expASC type:=csv path:="%A" overwrite:=replace longname:=0;


CP
Go to Top of Page

amohammed6175

USA
4 Posts

Posted - 09/03/2015 :  08:00:24 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thanks a lot for the help, All working now

Ahmed Mohamed
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000