HTML & WEB-Design

Moderators: Jonathan
Number of threads: 1253
Number of posts: 3360

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How To: Display .xls in html??? Posted by Psightoplazm on 22 Oct 2005 at 9:31 AM
I need to make a page for an active desktop that just simply displays a saved .xls file as is. It does not need to be interacted with, just displayed as the wall paper. So far I have had to do a screen shot every time I update it and then post it to desktops as an image. I am looking for a way to just have this automated every time the file is updated.

Can anyone assist me with this please? Much appreciated!



></\/~Psightoplasm`~
Report
Re: How To: Display .xls in html??? Posted by treshr on 25 Oct 2005 at 6:29 AM
I don't think there is a way you can do this automated. And if somebody made it, it'll cost you soem money.

After some searching on google I only found companies who sell that kind of software.

What you could do is something with csv file and php like this.
<?php
// starting excel 
$excel = new COM("excel.application") or die("Unable to instanciate excel"); 
print "Loaded excel, version {$excel->Version}\n"; 

//bring it to front 
#$excel->Visible = 1;//NOT
//dont want alerts ... run silent 
$excel->DisplayAlerts = 0; 

//open  document 
$excel->Workbooks->Open("C:\\mydir\\myfile.xls"); 
//XlFileFormat.xlcsv file format is 6
//saveas command (file,format ......)
$excel->Workbooks[1]->SaveAs("c:\\mydir\\myfile.csv",6); 

//closing excel 
$excel->Quit(); 

//free the object 
$excel->Release(); 
$excel = null; 
?> 


This converts your xls file to csv and maybe you can create your table out of that using the file options in php (http://nl3.php.net/manual/nl/function.file.php).

Hope this gives you some of a lead.

Good luck,

--=][tReShR][=--




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.