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
 OriginC Open Excel as Read Only
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

rmfleming

USA
Posts

Posted - 10/07/2015 :  7:30:44 PM  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: Origin 2015 (64 bit) Sr2

I want to open (not import) an Excel file as an Orgin workbook. The following works fine, it opens the "DataLog" worksheet of a given Excel file.

WorksheetPage wpg;

BOOL bOK = wpg.OpenExcel(strWorkbookPathname, "DataLog");

The problem comes if the Excel workbook (which is on a remote machine) is already open. Then Excel pops a window saying the file is in use & asks if I want to open a read-only copy. I click yes in Excel, then I have to go back and run the Origin openexcel code again.

Is there a way to indicate in the Origin call that I want to open Excel as read-only?


Robert

SeanMao

China
288 Posts

Posted - 10/08/2015 :  01:32:06 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

The mode for opening Excel as Read-Only has not been implemented yet. Right now you can only click on the button in appeared prompt to open it as Origin book. I have reported your request to our problem tracking base with ID ORG-12053.

Regards!

Sean

OriginLab Tech. Service
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