Solved

How can set page break using PHP + COM  Excel.

Posted on 2009-07-16
3
538 Views
Last Modified: 2013-12-13
I am working on PHP + COM  Excel.
I can create a excel , but I can not find how to deal with some  issue;
Like how to set page brake, how to set row height...
Thanks
0
Comment
Question by:Tim
  • 2
3 Comments
 
LVL 34

Expert Comment

by:gr8gonzo
ID: 24875316
Not sure about this, but I do know that using Office COM objects has never been very stable (even using different programming languages). Sometimes the processes don't close properly, which can lead to memory problems on your server if you don't have a way to kill the processes automatically (and then sometimes you might accidentally kill the process while its running).

I would recommend switching to something like:
http://phpclasses.ranchoweb.com/browse/package/767.html
or
http://www.codeplex.com/PHPExcel

I have used the first one very successfully. It reads/writes Excel 97-2003 files natively without COM objects at all. I have not tried the second one yet.
0
 

Author Comment

by:Tim
ID: 24938990
Thanks. Later I will try these.
But now I need find the way to deal with " row height" using PHP + COM  .
0
 

Accepted Solution

by:
Tim earned 0 total points
ID: 25062548
I already found the page break .
$sheet->HPageBreaks->Add($cell);
Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question