Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How can set page break using PHP + COM  Excel.

Posted on 2009-07-16
3
Medium Priority
?
548 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

610 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