How to get the headers for all the pages of the exported data from php to pdf
Posted
by udaya
on Stack Overflow
See other posts from Stack Overflow
or by udaya
Published on 2010-03-26T06:34:18Z
Indexed on
2010/03/26
6:43 UTC
Read the original article
Hit count: 379
php
Hi I am exporting data from php page to pdf when the datas exceeed the page limit the header is not available for the consecutive pages function where i call the export to pdf is function changeDetails() { $bType = $this->input->post('textvalue');
if($bType == "pdf")
{
$this->load->library('table');
$this->load->plugin('to_pdf');
$data['countrytoword'] = $this->AddEditmodel1->export();
$this->table->set_heading('Country','State','Town','Name');
$out = $this->table->generate($data['countrytoword']);
$html = $this->load->view( 'newpdf',$data, true);
pdf_create($html, $cur_date);
}
}
This is my view page from which i export data to pdf
Name Country State TownHere I am getting the result as
page:1
Name country State Town
udaya india Tamilnadu kovai
chandru srilanka columbo aaaaa
page:2
vivek england gggkj gjgjkj
in the page 2 i dont get the headers name, country ,state and town
© Stack Overflow or respective owner