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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 OriginC Open Excel as Read Only

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
rmfleming Posted - 10/07/2015 : 7:30:44 PM
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
1   L A T E S T    R E P L I E S    (Newest First)
SeanMao Posted - 10/08/2015 : 01:32:06 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000