Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Displaying an Excel spreadsheet

Reply
Thread Tools

Displaying an Excel spreadsheet

 
 
Brooke
Guest
Posts: n/a
 
      02-24-2006
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


 
Reply With Quote
 
 
 
 
sloan
Guest
Posts: n/a
 
      02-24-2006
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" <> wrote in message
news:...
> 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
>
>



 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      02-25-2006
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" <> wrote in message
news:...
> 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
>



 
Reply With Quote
 
=?Utf-8?B?RWx0b24gVw==?=
Guest
Posts: n/a
 
      02-26-2006
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
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
selling an Excel spreadsheet Jim Microsoft Certification 2 07-25-2011 09:54 PM
Problem with Excel reports ::::Excel 2003 Migration To Excel 2007 =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?= ASP .Net 15 10-24-2007 01:34 PM
Writing to an Excel Spreadsheet FSD Perl 0 02-19-2005 12:49 AM
Displaying an Excel spreadsheet in ASP page? Horhayson ASP General 3 02-02-2005 10:48 PM
Displaying an Excel spreadsheet Tim Marsden ASP .Net 5 02-20-2004 03:20 PM



Advertisments