473,728 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Displaying an Excel spreadsheet

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, programmaticall y 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
3 2285
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....putti ng 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.Sele ct("securitylev el=123 and userid=333", "dateof DESC");

...

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


"Brooke" <tb******@hotma il.com> wrote in message
news:uQ******** ******@TK2MSFTN GP10.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, programmaticall y 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
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******@hotma il.com> wrote in message
news:uQ******** ******@TK2MSFTN GP10.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, programmaticall y 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
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, programmaticall y 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
8560
by: Phil Powell | last post by:
What would one best recommend to parse an existing Excel spreadsheet (was done in Excel 97 or 2000 not sure to be honest)? I am looking for the most practical way of parsing an existing spreadsheet to place contents into a mySQL db. Thanx, Phil PS: can you use fopen() to read the contents and parse? The spreadsheet is on a remote site.
13
35559
by: Allison Bailey | last post by:
Hi Folks, I'm a brand new Python programmer, so please point me in the right direction if this is not the best forum for this question.... I would like to open an existing MS Excel spreadsheet and extract information from specific worksheets and cells. I'm not really sure how to get started with this process. I ran the COM Makepy utility from my PythonWin (IDE from ActiveSTate),
2
2117
by: quadric | last post by:
Hi, I have an application that requires that Python initiate and mediate a live and iterative conversation between an external application (in which Python is embedded) and an external Excel spreadsheet. Python will have to pass info to the spreadsheet, spreadsheet will make calculations, Python will obtain results and pass back to application, application will evaluate results of spreadsheet calculations and create new set of data and
3
1353
by: Horhayson | last post by:
What would be involved with having an Excel spreadsheet displayed in an ASP page? The additional problem is that the file name changes on a monthly basis. For example, this month's file name is 'Feb 2005.xls'. Any help would be appreciated. -Regards
5
584
by: Tim Marsden | last post by:
Hi I am a complete ASP novice. Is it possible to display an Excel spreadsheet in a web page? Can any input to the sheet be captured and sent back to the server? Regards Tim
6
6371
by: syvman | last post by:
Hi everyone... I am pulling my hair out trying to do this, and was wondering if someone could give me some assistance... I have an Excel spreadsheet containing several worksheets. I'd like to be able to take all of the data from the second column (B) of each worksheet and append that raw data to an access table. The columns in the spreadsheet do not have headers for use as field names (it's my assumption that my table should have a...
3
11686
by: Scott M. Lyon | last post by:
I'm trying to figure out a way to export data (actually the result of a Stored Procedure call from SQL Server) into a specified Excel spreadsheet format. Currently, I have the data read into a DataSet that consists of one DataTable. That DataTable has a specific name (for arguments purposes, let's say it's called "DataGrid"), that I need to use as the tab name in the exported Excel
0
3235
by: ssrirao | last post by:
There is an Excel Spreadsheet containing data, residing in an internet site. Its very easy to Import data from a local Excel Spreadsheet into SQL Server Database Table using DTS. But in my case the Excel spreadsheet resides an internet site which has a static name (Example xyz.xls) but varying data inside it. The spreadsheet contains three columns a, b, c and data below it. Only data get updated weekly So basically I have to automate...
1
3122
by: Bill Atkins | last post by:
I'd like to embed an Excel spreadsheet in my C# application. The information I've found on the Web suggests placing a Web Browser control on the form and navigating it to an Excel spreadsheet. When I try this, I get a dialog asking if I'd like to open or save the spreadsheet - the spreadsheet never appears embedded in the application. Has anyone else had issues with this?
1
3041
by: Sport Girl | last post by:
Hi everybody , i have the task of developing in Perl a script that retrieves data from 3 tables ( bugs, profiles, products) from a MySQL database called bugs and display them in an excel sheet report. I always get when trying to test it " 500 Internal Server Error - The server encountered an internal error or misconfiguration and was unable to complete your request." Can somebody help me please.
0
8904
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8759
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9277
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8133
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6718
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6013
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4793
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3236
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.