Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
regal
Posted - 03/28/2007 : 9:49:08 PM Origin Version (Select Help-->About Origin): 7 Operating System: XP
I am just starting to use Origin c and am trying to import ascii with via "ascimp". I try a code like the one below, and get the following erorr message when compiling: "Error, Member function Worksheet::ImportASCII not defined or does not have matching prototype". I don't know how to fix this error. It would also be useful for me to know where the full documentation is on the ImportASCII() function. I can't find much other than what is on the forum and a brief reference in the programming help associated with Origin 7.
Worksheet wks; wks.Create("EL.OTW"); ASCIMP ascimp; wks.GetASCIMP(ascimp); // you can change any settings here if necessary BOOL bRet = wks.ImportASCII(strFile, ascimp); if( !bRet ) { out_str("Failed to import file!"); // Destroy newly created worksheet wks.Destroy(); return; } }
1 L A T E S T R E P L I E S (Newest First)
Mike Buess
Posted - 03/28/2007 : 10:06:38 PM Your function compiles fine in 7.0SR4 so you just need to update. Run Help > Check for Updates and download/install whatever is found. Repeat until no updates are found. Alternatively, download the patch(es) directly from OriginLab's web site. http://www.originlab.com/index.aspx?s=9&lm=76
Besides the Classes > Internal Objects > Worksheet > ImportASCII topic in programming guide the only material I know of is about the ASCIMP structure in OC_types.h. A couple examples also exist in the Import/Export category here. http://www.originlab.com/index.aspx?s=8&lm=243