GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Anybody here know phpExcel? (https://gfy.com/showthread.php?t=1123668)

sarettah 10-15-2013 08:45 PM

Anybody here know phpExcel?
 
I am using phpExcel to write workbooks on the server.

I am having an issue with cell formatting. The cell formatting shows for a while but then disappears, then comes back.

Watching the behavior (and after reading a bit more about phpexcel) I am inclined to think it is a memory issue of some sort but I am not getting any errors thrown and the data is all good. Just the formatting is fucked.

Any insight is appreciated.

Thank you in advance.

http://www.madspiders.com/phpexcel_border_issue.jpg

bean-aid 10-15-2013 08:50 PM

My insight is that your cells are going from standard to $ sign format. You are likely copying cells over to below and it is not carrying over the format of those cells. Or... all your cells are defaulted at $ sign format and then when you copy non-$ format it doesn't carry over. The above 2 sentences say the same thing really.

I don't know shit though which is why I'm always looking for a competent programmer!

sarettah 10-15-2013 09:01 PM

Quote:

Originally Posted by beaner (Post 19836100)
I don't know shit though which is why I'm always looking for a competent programmer who doesn't ask a bunch of questions!

Fixed that for you :thumbsup

Good try but I am not doing any copying of any kind. I am writing a raw spreadsheet. It is all coming from the same loop.


Thanks anyway ;p

.

bean-aid 10-15-2013 09:05 PM

Quote:

Originally Posted by sarettah (Post 19836105)
Fixed that for you :thumbsup

Good try but I am not doing any copying of any kind. I am writing a raw spreadsheet. It is all coming from the same loop.


Thanks anyway ;p

.

So the loop is defaulting $. Pretty sure i am right...

sarettah 10-15-2013 09:10 PM

Quote:

Originally Posted by beaner (Post 19836109)
So the loop is defaulting $. Pretty sure i am right...

No, my friend, you are wrong on this one. You are missing what I am saying. Look at the image. All cell formatting starts disappearing near where I have the arrow pointing to the formatting is disappearing. The borders disappear, the formatting (bolding, number format, all) disappears.

It later comes back.

There is no default format. It is a programming object, you have to tell it what to do in a program. I am telling it to format this way, that way, the other way. At a certain point, it just stops listening.

I will do another test file and show you what it does with just borders but no actual number formatting. Eventually the borders just disappear. That will take a few minutes to create.

Thanks again.

bean-aid 10-15-2013 09:17 PM

Oh... i bet it is the number of rows allowed that breaks your table then. Did you manually fix the second one?

sarettah 10-15-2013 09:26 PM

Quote:

Originally Posted by beaner (Post 19836118)
Oh... i bet it is the number of rows allowed that breaks your table then. Did you manually fix the second one?

Nope, I did not manually do anything except put the screenprints together.

Here is the same program but I have all number formatting turned off. I left bold and centering on and the borders on. The borders disappear further down the page then they were in the first image I put up.

http://www.madspiders.com/phpexcel_border_issue1.jpg

bean-aid 10-15-2013 09:30 PM

I use excel all the time. Not php stuff... but i have a suspicion your table is breaking because of a set row, ir possibly column, default setting.

Carry on, someone else who knows much more should respond.

sarettah 10-15-2013 09:35 PM

Quote:

Originally Posted by beaner (Post 19836123)
I use excel all the time. Not php stuff... but i have a suspicion your table is breaking because of a set row, ir possibly column, default setting.

Carry on, someone else who knows much more should respond.

Use of Excel doesn't really help on this one. I work in Excel and also write Excel in desktop apps using OLE and directly with Excel using VBA, so I am fairly well versed in Excel..

PhpExcel is a server object that allows you to write workbooks and spreadsheets on the server using open XML but it does not actually use Excel at all. It just writes the file.

https://phpexcel.codeplex.com/

Quote:

PHPExcel - OpenXML - Read, Write and Create Excel documents in PHP - Spreadsheet engine

Project providing a set of classes for the PHP programming language, which allow you to write to and read from different spreadsheet file formats, like Excel (BIFF) .xls, Excel 2007 (OfficeOpenXML) .xlsx, CSV, Libre/OpenOffice Calc .ods, Gnumeric, PDF, HTML, ... This project is built around Microsoft's OpenXML standard and PHP.

sarettah 10-15-2013 09:49 PM

Well, changed it from writing Excel 2005 to writing Excel 2007 and it all works right.

So, it is a bug somewhere with PHPEXcel writing Excel 2005 format.

I can live with that ;p

bean-aid 10-15-2013 09:51 PM

Quote:

Originally Posted by sarettah (Post 19836139)
Well, changed it from writing Excel 2005 to writing Excel 2007 and it all works right.

So, it is a bug somewhere with PHPEXcel writing Excel 2005 format.

I can live with that ;p

Can i invoice you for my consultation time?

sarettah 10-15-2013 09:59 PM

Quote:

Originally Posted by beaner (Post 19836141)
Can i invoice you for my consultation time?

Nah, I don't think you asked enough questions. ;p

.


All times are GMT -7. The time now is 12:15 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123