【发布时间】:2010-03-26 06:34:18
【问题描述】:
我正在将数据从 php 页面导出到 pdf 当数据超过页面限制时,标题对于连续页面不可用 我调用导出到pdf的函数是 函数更改详细信息() { $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);
}
}
这是我将数据导出为 pdf 的视图页面 姓名 国家 状态 镇
</tr>
在这里我得到的结果是
第 1 页
NamecountryStateTown
乌达亚印度泰米尔纳德邦科瓦伊
钱德鲁 斯里兰卡 哥伦布 aaaaa第2页
vivek england gggkj gjgjkj
在第 2 页中,我没有得到标题名称、国家、州和城镇
【问题讨论】:
标签: php pdf pdf-generation header