Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.sharepoint.portalserver.development,microsoft.public.excel.programming,microsoft.public.office.developer.com.add_ins,microsoft.public.sharepoint.windowsservices.development
external usenet poster
 
Posts: 6
Default VSTO-Detecting Read Only status of workbook opened from Sharepoint

I am maintaining an VSTO3 Excel Add-in.
The Excel workbooks are loaded from SharePoint.
When you click on a workbook on the SharePoint site you get the option for
"Read Only" or "Edit".
When "Read Only" is selected you:
a) get the "[Read-Only]" in the Excel caption for the workbook
b) get a Save As dialog box when clicking the Save button
c) the workbook ReadOnly property (in VSTO) is false

In the Add-in, how can I check whether the workbook is supposed to be read
only?
--
Many thanks,
Gary Varga

Re-posted as I had no valid responses (sorry PeterT - yours didn't count)
and had logged in via an inactive MSDN account.
  #2   Report Post  
Posted to microsoft.public.sharepoint.portalserver.development,microsoft.public.excel.programming,microsoft.public.office.developer.com.add_ins,microsoft.public.sharepoint.windowsservices.development
external usenet poster
 
Posts: 75
Default VSTO-Detecting Read Only status of workbook opened from Sharepoint

"In the Add-in, how can I check whether the workbook is supposed to be read
only?"

Do you mean that you want to try and determine when someone has attempted to
open the workbook in Edit mode, but has ended up in Read-Only mode? I don't
think that this is possible to do. You might like to read up on the
ReadOnlyRecommended property of the Workbook object, but I don't think that
it quite fits your situation.

--
Alan Moseley IT Consultancy
http://www.amitc.co.uk

If I have solved your problem, please click Yes below. Thanks.


"Gary Varga" wrote:

I am maintaining an VSTO3 Excel Add-in.
The Excel workbooks are loaded from SharePoint.
When you click on a workbook on the SharePoint site you get the option for
"Read Only" or "Edit".
When "Read Only" is selected you:
a) get the "[Read-Only]" in the Excel caption for the workbook
b) get a Save As dialog box when clicking the Save button
c) the workbook ReadOnly property (in VSTO) is false

In the Add-in, how can I check whether the workbook is supposed to be read
only?
--
Many thanks,
Gary Varga

Re-posted as I had no valid responses (sorry PeterT - yours didn't count)
and had logged in via an inactive MSDN account.

  #3   Report Post  
Posted to microsoft.public.sharepoint.portalserver.development,microsoft.public.excel.programming,microsoft.public.office.developer.com.add_ins,microsoft.public.sharepoint.windowsservices.development
external usenet poster
 
Posts: 6
Default VSTO-Detecting Read Only status of workbook opened from Sharep

No. Someone has opened it in read only mode and I would, programatically,
like to know this i.e. have they opened it read only???

"Alan Moseley" wrote:

"In the Add-in, how can I check whether the workbook is supposed to be read
only?"

Do you mean that you want to try and determine when someone has attempted to
open the workbook in Edit mode, but has ended up in Read-Only mode? I don't
think that this is possible to do. You might like to read up on the
ReadOnlyRecommended property of the Workbook object, but I don't think that
it quite fits your situation.

--
Alan Moseley IT Consultancy
http://www.amitc.co.uk

If I have solved your problem, please click Yes below. Thanks.


"Gary Varga" wrote:

I am maintaining an VSTO3 Excel Add-in.
The Excel workbooks are loaded from SharePoint.
When you click on a workbook on the SharePoint site you get the option for
"Read Only" or "Edit".
When "Read Only" is selected you:
a) get the "[Read-Only]" in the Excel caption for the workbook
b) get a Save As dialog box when clicking the Save button
c) the workbook ReadOnly property (in VSTO) is false

In the Add-in, how can I check whether the workbook is supposed to be read
only?
--
Many thanks,
Gary Varga

Re-posted as I had no valid responses (sorry PeterT - yours didn't count)
and had logged in via an inactive MSDN account.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VSTO: Detecting Read Only status of workbook opened from Sharepoin Gary Varga Excel Programming 3 July 14th 09 12:54 PM
Programmatically determining if workbook is opened as Read Only Barb Reinhardt Excel Programming 5 July 10th 08 06:21 PM
Not Detecting Open Workbook Status - Odd?? Jenny B. Excel Discussion (Misc queries) 4 January 16th 08 12:47 AM
How do I clear read-only status on a workbook file? Karin Excel Discussion (Misc queries) 1 March 2nd 07 04:55 PM
How to read sheet of currently opened workbook Jedi[_2_] Excel Programming 1 September 11th 03 11:00 AM


All times are GMT +1. The time now is 07:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"