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
 Forum for Origin C
 Excel-file import
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

hajo_old

Germany
141 Posts

Posted - 01/24/2003 :  08:22:30 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello, all

here's my next problem I don't com along with ...

I want to read in an excel file by the following code (which works so far ...)

void openXlsWorksheet()
{
string strPath;
StringArray saFiletypes;
saFiletypes.SetSize( 3 );
saFiletypes[0]="[Excel (*.xls)] *.xls";
strPath = GetOpenBox( saFiletypes );

Worksheet wks;
wks.Open(strPath);
}


BUT ....
when I open the excel file by calling wks.Open() a dialog pops up, to choose whether the file should be imported as native excel-worksheet or converted to Origin-Worksheet.

Is there a possibility to give the option how to open the file e.g. OPEN_AS_XLS_WORKBOOK or OPEN_AS_ORIGIN_WORKBOOK
within the function call

Or is there an other sollution suppressing the dialog and read the excel file in as origin workbook?

Thanks for your hints an probably sollutions...

HJ Koch
SVDO_Origin1

Edited by - SVDO_Origin1 on 01/29/2003 09:41:16 AM
  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