Giter Club home page Giter Club logo

Comments (11)

liuggio avatar liuggio commented on July 21, 2024

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.

Munsio avatar Munsio commented on July 21, 2024

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.

liuggio avatar liuggio commented on July 21, 2024

You paste the code, without Exception,
echo the exception

from excelbundle.

liuggio avatar liuggio commented on July 21, 2024

I'm going to close this ticket because is not related to ExcelBundle

from excelbundle.

Munsio avatar Munsio commented on July 21, 2024

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.

liuggio avatar liuggio commented on July 21, 2024

hi, please could you pastebin the exception please.

from excelbundle.

Munsio avatar Munsio commented on July 21, 2024

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.

liuggio avatar liuggio commented on July 21, 2024

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.

Munsio avatar Munsio commented on July 21, 2024

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.

Munsio avatar Munsio commented on July 21, 2024

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.

liuggio avatar liuggio commented on July 21, 2024

wow thanks this is still really strange ...

from excelbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.