PHP Generate Report using web viewer
Options
I am currently use the codes similar as following to generate PDF, HTML and XLS code.
$run_url = 'http://localhost:8080/preview?__report=sample.rptdesign&__format=pdf';
$fp = fopen($run_url, 'r');
$content = '';
while(!feof($fp)){
$buffer = fgets($fp, 4096);
$content .= $buffer;
}
fclose($fp);
//then write content to a file
write_content_to_file($content);
As one of our legacy report has large set of data. We want to output the report in CSV format instead of XLS (excel) format.
Anyone find any idea to do so? I saw there is csv emitter on the web. But failed to deploy it on birt web viewer.
$run_url = 'http://localhost:8080/preview?__report=sample.rptdesign&__format=pdf';
$fp = fopen($run_url, 'r');
$content = '';
while(!feof($fp)){
$buffer = fgets($fp, 4096);
$content .= $buffer;
}
fclose($fp);
//then write content to a file
write_content_to_file($content);
As one of our legacy report has large set of data. We want to output the report in CSV format instead of XLS (excel) format.
Anyone find any idea to do so? I saw there is csv emitter on the web. But failed to deploy it on birt web viewer.
0
Categories
- All Categories
- 111 Developer Announcements
- 49 Articles
- 103 General Questions
- 123 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 123 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 1 XM Fax