Comments (11)
Hi, I think that there are some missing information between the findOneById
and the way you create xls.
IMHO there's a bug in your code, try to add some try and catch or log line by line.
Let me know
from excelbundle.
Hi, i wrapped the repository call into an try/catch block but there are no errors or warnings.
I pulled my code to pastebin:
http://pastebin.com/7E0WbJXP
I don't do anything with the Object i retrieved from Database.
But if i comment the try/catch block everything work as expected.
from excelbundle.
You paste the code, without Exception,
echo the exception
from excelbundle.
I'm going to close this ticket because is not related to ExcelBundle
from excelbundle.
Hi
"You paste the code, without Exception,
echo the exception"
- pelase look in pastebin on line 9
I think it is related to your ExcelBundle because if i use the StreamWriter to Save the File to the Filesystem and Download it with Filezilla or direct Link everything is alright.
This Problem only appears with the direct Response.
from excelbundle.
hi, please could you pastebin the exception please.
from excelbundle.
The Strange thing is that there is no Exception!
i get the correct result object back from Doctrine but the Excel Response is damaged (Image from 1 Post).
If i comment the doctrine action the Excel Response works perfect.
My problem is that i don't know if it is an Doctrine problem or an ExcelBundle problem, cause everything else works fine i thought it could be an ExcelBundle problem.
I uploaded one of the damaged excel files to my googl drive with following link you can download it:
https://docs.google.com/open?id=0B-ePhomTc6A2WmNKS2Z0Wklqd3M
from excelbundle.
I think that you don't see the exc because your Response is redirect into the xls file.
put a die() and you'll see the problem.
Divide et impera.
First split the function in different functionS.
Then, remove the Excel part and go there with debug = true.
from excelbundle.
The only Exception i get wenn i remove the direct response is that i had to return a Response Object instead of null.
The WebProfiler shows no other exceptions or anything else.
from excelbundle.
I solved my problem with saving the excel file to disk, create an redirect response to another route where i read this excel file with the file class, generate response headers and return the content via fpassthru().
It seems that my doctrine connection modifies the response object in a way that i couldn't change the response headers manualy. Maybe its cause i use multiple doctrine managers, i had no idea.
But at all thank you for this bundle and your time to help me.
from excelbundle.
wow thanks this is still really strange ...
from excelbundle.
Related Issues (20)
- Trying to install luiggio when having symfony 2.5.12 HOT 1
- 1000 rows limit HOT 1
- Bundle Installation HOT 3
- can not install excelbundle HOT 1
- How to use the bundle HOT 2
- In this bundle compatible with SF3? HOT 2
- How to insert database data in ExcelBundle
- Can you set a field type?
- How to read cyrillic characters?
- How to get file from createPHPExcelObject() HOT 1
- Find a better name than "Factory" ?
- liuggio/ExcelBundle is not support for excel 2010 ?
- Notice: A non well formed numeric value encountered for PHP 7.1 HOT 1
- ExcelBundle on Symfony 4.0 HOT 6
- ExcelBundle takes 50 seconds in generate 1 row excel document
- Deprecation since 3.3 and break at 4.0 HOT 6
- getCalculatedValue doesn't work when formula has accent
- Package phpoffice/phpexcel is abandoned, you should avoid using it HOT 2
- Use Drawing HOT 1
- Styles are not applied
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from excelbundle.