Solved

How can set page break using PHP + COM  Excel.

Posted on 2009-07-16
3
529 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:zcfyhome
  • 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:zcfyhome
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:
zcfyhome earned 0 total points
ID: 25062548
I already found the page break .
$sheet->HPageBreaks->Add($cell);
Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now