473,395 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Q: Excel files

Hi All

I'm using the Microsoft Office Spreadsheet component to view an Excel file
in an application that I've written. However, there are two things that are
puzzling me:

(1) I don't seem to be able to set it so it isn't re-sizeable. Using the
"locked" property doesn't do anything.

(2) The spreadsheet is not read-only. How can I do this?

Hope somebody can help. Otherwise, can anybody suggest another way for me to
simply view an Excel file from within a VB.net application?
Sep 3 '06 #1
3 1282
1. The locked property does not determine if a row or column is resizable,
for that you want to protect the worksheet.
2. The locked property doese dertermine if a cell can be altered BUT in
order for the locked property to work (all cells in a worksheet are locked
by default), you must also protect the worksheet.


"G .Net" <no********@email.comwrote in message
news:Nr********************@pipex.net...
Hi All

I'm using the Microsoft Office Spreadsheet component to view an Excel file
in an application that I've written. However, there are two things that
are puzzling me:

(1) I don't seem to be able to set it so it isn't re-sizeable. Using the
"locked" property doesn't do anything.

(2) The spreadsheet is not read-only. How can I do this?

Hope somebody can help. Otherwise, can anybody suggest another way for me
to simply view an Excel file from within a VB.net application?

Sep 3 '06 #2
Hi Scott

Sorry, I didn't explain myself clearly regarding the size change. What I
actually meant was the size of the actual spreadsheet itself i.e. there is
always a re-size "shape" >in the bottom right of the control. I want to
prevent the user from being able to re-size the spreadsheet.
"Scott M." <s-***@nospam.nospamwrote in message
news:e7**************@TK2MSFTNGP04.phx.gbl...
1. The locked property does not determine if a row or column is resizable,
for that you want to protect the worksheet.
2. The locked property doese dertermine if a cell can be altered BUT in
order for the locked property to work (all cells in a worksheet are locked
by default), you must also protect the worksheet.


"G .Net" <no********@email.comwrote in message
news:Nr********************@pipex.net...
>Hi All

I'm using the Microsoft Office Spreadsheet component to view an Excel
file in an application that I've written. However, there are two things
that are puzzling me:

(1) I don't seem to be able to set it so it isn't re-sizeable. Using the
"locked" property doesn't do anything.

(2) The spreadsheet is not read-only. How can I do this?

Hope somebody can help. Otherwise, can anybody suggest another way for me
to simply view an Excel file from within a VB.net application?


Sep 3 '06 #3
What control are you using?
"G .Net" <no********@email.comwrote in message
news:yd******************************@pipex.net...
Hi Scott

Sorry, I didn't explain myself clearly regarding the size change. What I
actually meant was the size of the actual spreadsheet itself i.e. there is
always a re-size "shape" >in the bottom right of the control. I want to
prevent the user from being able to re-size the spreadsheet.
"Scott M." <s-***@nospam.nospamwrote in message
news:e7**************@TK2MSFTNGP04.phx.gbl...
>1. The locked property does not determine if a row or column is
resizable, for that you want to protect the worksheet.
2. The locked property doese dertermine if a cell can be altered BUT in
order for the locked property to work (all cells in a worksheet are
locked by default), you must also protect the worksheet.


"G .Net" <no********@email.comwrote in message
news:Nr********************@pipex.net...
>>Hi All

I'm using the Microsoft Office Spreadsheet component to view an Excel
file in an application that I've written. However, there are two things
that are puzzling me:

(1) I don't seem to be able to set it so it isn't re-sizeable. Using the
"locked" property doesn't do anything.

(2) The spreadsheet is not read-only. How can I do this?

Hope somebody can help. Otherwise, can anybody suggest another way for
me to simply view an Excel file from within a VB.net application?



Sep 4 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Rich | last post by:
Hi, I have a bunch of Excel reports that I would like to display on my company's intranet. The reports contain priviledged information, however. My plan was to have a page with a dropdown box...
0
by: Oci-One Kanubi | last post by:
Everything works fine in Access, but when I double-click on the resultant Excel files the first one opens correctly, but subsequent ones, and any other Excel files I try to open, fail to display at...
0
by: Jack | last post by:
Windows 2K Pro Access/Excel 2003 Hi there, I have a large number of password protected Excel Workbooks. The files are protected by code that runs when the workbook opens. The code asks the...
1
by: richard | last post by:
Hi, I am trying to manipulate data to and from Excel S'sheets from Asp.Net pages. I saw an article using - Imports Excel = Microsoft.Office.Interop.Excel Does anyone know what I need to...
3
by: Boris Condarco | last post by:
Hi gurus, I'm using excel 2000 to show data that comes from datagrid. The problem is that for any reason the asp.net application maintains the excel open, even though, i do close it. Besides,...
0
by: Rich Wallace | last post by:
Hello all, Looking for suggestions and tips if possible. I have an application running on a file server that utilizes the FileSystemWatcher to trap when any Excel files are saved by a user. I...
18
by: gonzlobo | last post by:
No, I don't want to destroy them (funny how the word 'decimate' has changed definition over the years) :). We have a data acquisition program that saves its output to Excel's ..xls format....
1
by: chrspta | last post by:
I am new to Visual basic. I need a program using VB6 that converts txt files to excel file.Description is in the below: The form should have the Drive list, Dir list, file list and cmdConvert...
0
by: Jon Delano | last post by:
Hello All I am working a on web application created in Visual Studio 2005 VB. It has to do some work with Excel files, so I created a DLL in VS2005. My development machine is XP SP3. When my...
5
by: Doogie | last post by:
Can anoyne tell me why this VBScript will create the file to Excel just fine, but the Excel file will not open up? I am saving it as a xlsx file instead of an xls one and I have the new version of...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.