SomeoneE1se Posted April 20, 2007 Share Posted April 20, 2007 I'm creating a PHP script and would REALLY REALLY like to print some excel sheets from the script anyone know a way to print excel sheets... I can even convert them into pdf if needed. Quote Link to comment Share on other sites More sharing options...
Shaun Posted April 20, 2007 Share Posted April 20, 2007 Print them to screen or to a printer? Quote Link to comment Share on other sites More sharing options...
Sparda Posted April 20, 2007 Share Posted April 20, 2007 Print them to screen or to a printer? Additionally: Print them from the server to a printer, or from the client to a printer/screen? Quote Link to comment Share on other sites More sharing options...
Shaun Posted April 20, 2007 Share Posted April 20, 2007 That's assuming this is on a web page or in another client-server situation, PHP can be used just an a normal scripting language as well. Quote Link to comment Share on other sites More sharing options...
psychoaliendog Posted April 21, 2007 Share Posted April 21, 2007 well the php manual has this to say about pdf http://www.php.net/manual/en/ref.pdf.php and a google search returned this http://www.phpfreaks.com/tutorials/114/0.php Quote Link to comment Share on other sites More sharing options...
Shaun Posted April 21, 2007 Share Posted April 21, 2007 well the php manual has this to say about pdf http://www.php.net/manual/en/ref.pdf.phpand a google search returned this http://www.phpfreaks.com/tutorials/114/0.php Well PDF is easy, it's Excel which is trickier, especially if it's not a Windows server since then you can't use COM. The second link isn't really what he wants to do I don't think, there's a big difference between generating a very simple XLS file and interpreting one (if you actually look at the contents of an XLS file you'll see a pretty big difference between what that script produces and what Excel does). Anyway this might do the right thing, it's a bit old but it can probably be modified/updated. Quote Link to comment Share on other sites More sharing options...
SomeoneE1se Posted April 21, 2007 Author Share Posted April 21, 2007 The server has a printer attached and I want to print it off onto paper.. If anyone cares I'm just going to copy off the RSS news paper because doc2pdf does in fact convert .xls to pdf so it's all good Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.