Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Question: Some report, export is working, some is not. Why?
Answer: Please make sure that your view which is used to export have all required tags <html>
, <head>
, <body>
. Also make sure that all the tags is complied to the HTML/XML standard. Fail to comply, export will fail to parse the documentation that leads to fail in exporting.
Hi LinhNguyen,
Thank you very much for purchasing the KoolReport Pro. For the issue, may I know:
I run the report on Linux (Ubuntu 16.04 64bit), Apache2, PHP > 5,5. At first, without phantomjs, the report cannot export, showed me that missing the phantomjs file in bin folder. After that, I copied the phantomjs file for linux os to bin folder of export package (set the permision allow to run). At this stage, I can export to pdf file but when opening it, I met that error. I'm using ArrayDatasource for my report (data is collected before run the report).
Actually, when I run the export function in examples including in the package I downloaded, it work. But when I try to bring it to my website, I met that error. Thanks
So definitely the Export package has been working well. That's good. In my experience, the problem could be the html, it is strictly follow the XML standard otherwise parsing document will not work. Some of standards are:
name="mydiv"
So let start small, first make a simple report page with a text only. Check if it works, then keep adding a little little content. By this way, you will know what causes issue.
Keep us post.
It seems to me that Bootstrap is not loaded. Please open the InputAndExport.php and put below:
function settings()
{
$config = include "../../../config.php";
return array(
"assets"=>array(
"path"=>"../../../assets"
),
"dataSources"=>array(
"automaker"=>$config["automaker"]
)
);
}
The important lines I added is the "assets". Please try to see if it works.
Thanks for supporting me.
I also tried to put the path for assets in InputAndExport.php as you mentioned but the pdf still not exporting as expected format.
I don't know if there are any issues by how I store the package in my web server. I put 2 folder examples and koolreport inside a folder named report (set permission allow write to this folder). And I run report at this url: http://mysite.com/report/examples/reports/advanced/input_and_export/index.php
Or any issues with the package I downloaded.
Thanks.
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo