By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,024 Members | 2,027 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,024 IT Pros & Developers. It's quick & easy.

Displaying an Excel spreadsheet

P: n/a
I am new to ASP.NET, but have been programming for about 14 years (C#
about 2 years). My manager asked me to develop a web application that would
allow employees to view a spreadsheet that is used to manage resources
(projects, employees, hours, dates, etc). The employee should only be able
to view data that pertains to them, and not be able to modify it (read only
view). My thought is to allow my manager to upload the spreadsheet to a
location in the virtual directory, programmatically parse through the
spreadsheet and filter out the data based on the windows authentication, and
then build a html table and display the data.

Is this the correct approach? Can the spreadsheet be located in a
completely different directory that is not in the virtual directory, but
located on a server somewhere. Could I access my manager's personal
directory using his windows logon information?

The other thought is just to develop a Windows form application, but
then it would require that everyone have .NET 2.0 installed and it was tough
enough getting MIS to install the 1.1 framework.

Any help or suggestions would be greatly appreciated.

Thanks
Feb 24 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
You can use impersontation to allow
asp.net to pull resources (excel files).

I have an application.. that stores images on a fileServer. (big big
datastorage)
my web app....using impersonation.... pulls the files across the
network..copies them to a local
directory (one where IIS has access), and the aspx page gives the url to the
image...as it is now located in a IIS folder.

(I have a windows service that runs every 1/2 hour, which clears out images
that haven't been accessed in over 30 minutes).

Also check this post I made a while back:
http://groups.google.com/group/micro...214c3bcca94224

(or search
http://groups.google.com/?hl=en for "xml to xml transformation" and
"spaces.msn.com"
)

I think since you have to filter....putting it into a strongly typed dataset
would be much much cleaner and easier than trying to manipulate excel data
as an OleDb datastore.

Using the trick at that other post..and my blog you could:

Convert the excel file to Xml.
Convert the xml to dataset friendly xml, using xsl.
Now that the data is in a strongly typed DataSet, you'll have a

MyStrongDS.Select("securitylevel=123 and userid=333", "dateof DESC");

...

Good luck.. if you use the xml to xml then please post a followup post.


"Brooke" <tb******@hotmail.com> wrote in message
news:uQ**************@TK2MSFTNGP10.phx.gbl...
I am new to ASP.NET, but have been programming for about 14 years (C#
about 2 years). My manager asked me to develop a web application that would allow employees to view a spreadsheet that is used to manage resources
(projects, employees, hours, dates, etc). The employee should only be able to view data that pertains to them, and not be able to modify it (read only view). My thought is to allow my manager to upload the spreadsheet to a
location in the virtual directory, programmatically parse through the
spreadsheet and filter out the data based on the windows authentication, and then build a html table and display the data.

Is this the correct approach? Can the spreadsheet be located in a
completely different directory that is not in the virtual directory, but
located on a server somewhere. Could I access my manager's personal
directory using his windows logon information?

The other thought is just to develop a Windows form application, but
then it would require that everyone have .NET 2.0 installed and it was tough enough getting MIS to install the 1.1 framework.

Any help or suggestions would be greatly appreciated.

Thanks

Feb 24 '06 #2

P: n/a
You could generate the Excel reports dynamically.
Here is some guidance:
http://SteveOrr.net/articles/ExcelExport.aspx
http://SteveOrr.net/articles/ExportPanel.aspx
http://SteveOrr.net/reviews/AsposeExcel.aspx
http://SteveOrr.net/reviews/OfficeWriter.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"Brooke" <tb******@hotmail.com> wrote in message
news:uQ**************@TK2MSFTNGP10.phx.gbl...
I am new to ASP.NET, but have been programming for about 14 years (C#
about 2 years). My manager asked me to develop a web application that
would allow employees to view a spreadsheet that is used to manage
resources (projects, employees, hours, dates, etc). The employee should
only be able to view data that pertains to them, and not be able to modify
it (read only view). My thought is to allow my manager to upload the
spreadsheet to a location in the virtual directory, programmatically parse
through the spreadsheet and filter out the data based on the windows
authentication, and then build a html table and display the data.

Is this the correct approach? Can the spreadsheet be located in a
completely different directory that is not in the virtual directory, but
located on a server somewhere. Could I access my manager's personal
directory using his windows logon information?

The other thought is just to develop a Windows form application, but
then it would require that everyone have .NET 2.0 installed and it was
tough enough getting MIS to install the 1.1 framework.

Any help or suggestions would be greatly appreciated.

Thanks

Feb 25 '06 #3

P: n/a
Hi Brooke,

My suggestion is

1. Put the spreadsheet in file server. And set its access permission to
certain role(s) (by networking) so some people can modify the spreadsheet.
Actually the spreadsheet works as database. (If possible, use database rather
than excel)

2. Build a web page to show data in the ‘Database’. It’s very easy to use
GridView web control to show data (or export to spreadsheet). If it’s in
Intranet, you can use Windows authentication to get automatically login
user’s credential. Hence based on user’s role filter data. Proper
configuration setting can allow the web application to access the spreadsheet
in any place of LAN.

HTH

Elton Wang
"Brooke" wrote:
I am new to ASP.NET, but have been programming for about 14 years (C#
about 2 years). My manager asked me to develop a web application that would
allow employees to view a spreadsheet that is used to manage resources
(projects, employees, hours, dates, etc). The employee should only be able
to view data that pertains to them, and not be able to modify it (read only
view). My thought is to allow my manager to upload the spreadsheet to a
location in the virtual directory, programmatically parse through the
spreadsheet and filter out the data based on the windows authentication, and
then build a html table and display the data.

Is this the correct approach? Can the spreadsheet be located in a
completely different directory that is not in the virtual directory, but
located on a server somewhere. Could I access my manager's personal
directory using his windows logon information?

The other thought is just to develop a Windows form application, but
then it would require that everyone have .NET 2.0 installed and it was tough
enough getting MIS to install the 1.1 framework.

Any help or suggestions would be greatly appreciated.

Thanks

Feb 26 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.