Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-15-2013, 08:45 PM   #1
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,110
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.

sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2013, 08:50 PM   #2
bean-aid
So Fucking Banned
 
Industry Role:
Join Date: Jun 2011
Location: the land of woke sleuths
Posts: 16,493
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!
bean-aid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2013, 09:01 PM   #3
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,110
Quote:
Originally Posted by beaner View Post
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

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

.

Last edited by sarettah; 10-15-2013 at 09:02 PM..
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2013, 09:05 PM   #4
bean-aid
So Fucking Banned
 
Industry Role:
Join Date: Jun 2011
Location: the land of woke sleuths
Posts: 16,493
Quote:
Originally Posted by sarettah View Post
Fixed that for you

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...
bean-aid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2013, 09:10 PM   #5
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,110
Quote:
Originally Posted by beaner View Post
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.
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2013, 09:17 PM   #6
bean-aid
So Fucking Banned
 
Industry Role:
Join Date: Jun 2011
Location: the land of woke sleuths
Posts: 16,493
Oh... i bet it is the number of rows allowed that breaks your table then. Did you manually fix the second one?
bean-aid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2013, 09:26 PM   #7
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,110
Quote:
Originally Posted by beaner View Post
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.

sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2013, 09:30 PM   #8
bean-aid
So Fucking Banned
 
Industry Role:
Join Date: Jun 2011
Location: the land of woke sleuths
Posts: 16,493
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.
bean-aid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2013, 09:35 PM   #9
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,110
Quote:
Originally Posted by beaner View Post
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.

Last edited by sarettah; 10-15-2013 at 09:36 PM..
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2013, 09:49 PM   #10
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,110
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
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2013, 09:51 PM   #11
bean-aid
So Fucking Banned
 
Industry Role:
Join Date: Jun 2011
Location: the land of woke sleuths
Posts: 16,493
Quote:
Originally Posted by sarettah View Post
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?
bean-aid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-15-2013, 09:59 PM   #12
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,110
Quote:
Originally Posted by beaner View Post
Can i invoice you for my consultation time?
Nah, I don't think you asked enough questions. ;p

.
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.