KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Failed - Network error #2098

Open Lawrbit opened this topic on on May 21, 2021 - 3 comments

Lawrbit commented on May 21, 2021

Hi Koolreports,

We are facing an issue while exporting PDF files. If we are generating PDF using saveAs() then its working fine but if I am doing with the below code its throwing error Failed - Network Error Below is my code:

$report = new MyReport();
$report->run();			
$uniqueID = generateId();

$pdffilename = $uniqueID.'.pdf';
$report->export('RegulatoryUpdates')
	->pdf(array(
		"format"=>"A4",
		"orientation"=>"portrait"
	)
)->toBrowser($pdffilename);
Sebastian Morales commented on May 21, 2021

Which version of PHP are you using? Pls try the following method: put an exit command right after the export command like this:

...
$report->export('RegulatoryUpdates')
	->pdf(array(
		"format"=>"A4",
		"orientation"=>"portrait"
	)
)->toBrowser($pdffilename);
exit;

Let us know the result. Tks,

Lawrbit commented on May 27, 2021

Thank you for your help, Downloading issue fixed.

One more thing we are not able to copy text from PDF files because of text converted into an image. if we are not using image and chart still text converting into image and report file size increased.

Sebastian Morales commented on May 27, 2021

Pls send an exported pdf file to our email address support@koolreport.com for us to check it for you. Rgds,

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

Export