{"action":"created","issue":{"url":"https://api.github.com/repos/cossou/JasperPHP/issues/33","repository_url":"https://api.github.com/repos/cossou/JasperPHP","labels_url":"https://api.github.com/repos/cossou/JasperPHP/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/cossou/JasperPHP/issues/33/comments","events_url":"https://api.github.com/repos/cossou/JasperPHP/issues/33/events","html_url":"https://github.com/cossou/JasperPHP/issues/33","id":135964581,"number":33,"title":"Error when try to generate pdf report in laravel","user":{"login":"stojankukrika","id":10199584,"avatar_url":"https://avatars.githubusercontent.com/u/10199584?v=3","gravatar_id":"","url":"https://api.github.com/users/stojankukrika","html_url":"https://github.com/stojankukrika","followers_url":"https://api.github.com/users/stojankukrika/followers","following_url":"https://api.github.com/users/stojankukrika/following{/other_user}","gists_url":"https://api.github.com/users/stojankukrika/gists{/gist_id}","starred_url":"https://api.github.com/users/stojankukrika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stojankukrika/subscriptions","organizations_url":"https://api.github.com/users/stojankukrika/orgs","repos_url":"https://api.github.com/users/stojankukrika/repos","events_url":"https://api.github.com/users/stojankukrika/events{/privacy}","received_events_url":"https://api.github.com/users/stojankukrika/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-02-24T05:48:10Z","updated_at":"2016-02-25T10:44:45Z","closed_at":"2016-02-25T10:43:08Z","body":"If you have some time to replay to me. \r\nI try to use JasperPHP in Laravel 5 but can't. I make sample report with static text:\r\n![test report](https://cloud.githubusercontent.com/assets/10199584/13254745/085187ba-da43-11e5-863c-60f106ed2482.png)\r\nBut when I publish it and start with Laravel with that code:\r\n\r\n        $output = public_path() . '/report/Test';\r\n        $ext = \"pdf\";\r\n        $jasper = JasperPHP::compile(\r\n            public_path() . '/reports/Test.jasper',\r\n            true\r\n        )->execute();\r\n\r\n        header('Content-Description: File Transfer');\r\n        header('Content-Type: application/octet-stream');\r\n        header('Content-Disposition: attachment; filename='.time().'Test.'.$ext);\r\n        header('Content-Transfer-Encoding: binary');\r\n        header('Expires: 0');\r\n        header('Cache-Control: must-revalidate, post-check=0, pre-check=0');\r\n        header('Pragma: public');\r\n        header('Content-Length: ' . filesize($output.'.'.$ext));\r\n        flush();\r\n        readfile($output.'.'.$ext);\r\n        unlink($output.'.'.$ext); // deletes the temporary file\r\n\r\nAnd Laravel gives me an error:\r\n\r\nException in JasperPHP.php line 178: Your report has an error and couldn't be processed! Try to output the command using the function `output();` and run it manually in the console.\r\n\r\nCan you help me? What I do wrong? I would like to generate pdf file for that report and send it to client. \r\n\r\nAlso one more question. How to send param to report?\r\n\r\nThe same problem I have when try with real report with datasets \r\n\r\nTNX."},"comment":{"url":"https://api.github.com/repos/cossou/JasperPHP/issues/comments/188722105","html_url":"https://github.com/cossou/JasperPHP/issues/33#issuecomment-188722105","issue_url":"https://api.github.com/repos/cossou/JasperPHP/issues/33","id":188722105,"user":{"login":"cossou","id":1337112,"avatar_url":"https://avatars.githubusercontent.com/u/1337112?v=3","gravatar_id":"","url":"https://api.github.com/users/cossou","html_url":"https://github.com/cossou","followers_url":"https://api.github.com/users/cossou/followers","following_url":"https://api.github.com/users/cossou/following{/other_user}","gists_url":"https://api.github.com/users/cossou/gists{/gist_id}","starred_url":"https://api.github.com/users/cossou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cossou/subscriptions","organizations_url":"https://api.github.com/users/cossou/orgs","repos_url":"https://api.github.com/users/cossou/repos","events_url":"https://api.github.com/users/cossou/events{/privacy}","received_events_url":"https://api.github.com/users/cossou/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T10:44:45Z","updated_at":"2016-02-25T10:44:45Z","body":"Great! :+1: "}}