View Page Custom Template - Export to PDF

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
amsire2
User
Posts: 129

View Page Custom Template - Export to PDF

Post by amsire2 »

Hi

I try to create custom template.
This is the example code that i created in view page

<table class="table table-striped table-sm ew-view-table">
    <tr id="r_Rujukan_Kami">
        <td class="w-col-2">{{{caption Rujukan_Kami}}}</td>
        <td>{{{value Rujukan_Kami}}}</td>
    </tr>
    <tr id="r_Tarikh">
        <td class="w-col-2">{{{caption Tarikh}}}</td>
        <td>{{{value Tarikh}}}</td>
    </tr>
    <tr id="r_ID_Permohonan">
        <td class="w-col-2">{{{caption ID_Permohonan}}}</td>
        <td>{{{value ID_Permohonan}}}</td>
    </tr>
    <tr id="r_Judul">
        <td class="w-col-2">{{{caption Judul}}}</td>
        <td>{{{value Judul}}}</td>
    </tr>
    <tr id="r_Kelulusan">
        <td class="w-col-2">{{{caption Kelulusan}}}</td>
        <td>{{{value Kelulusan}}}</td>
    </tr>
    <tr id="r_Kod_Persatuan">
        <td class="w-col-2">{{{caption Kod_Persatuan}}}</td>
        <td>{{{value Kod_Persatuan}}}</td>
    </tr>
    <tr id="r_Nama_Persatuan_Kelab">
        <td class="w-col-2">{{{caption Nama_Persatuan_Kelab}}}</td>
        <td>{{{value Nama_Persatuan_Kelab}}}</td>
    </tr>
    <tr id="r_Emel">
        <td class="w-col-2">{{{caption Emel}}}</td>
        <td>{{{value Emel}}}</td>
    </tr>
    <tr id="r_Nama_Pengguna">
        <td class="w-col-2">{{{caption Nama_Pengguna}}}</td>
        <td>{{{value Nama_Pengguna}}}</td>
    </tr>
    <tr id="r_Jawatan">
        <td class="w-col-2">{{{caption Jawatan}}}</td>
        <td>{{{value Jawatan}}}</td>
    </tr>
</table>

The problem is I failed to open the pdf file after exporting the record. This error come out = Failed to load PDF document.

Can anyone help me.


mobhar
User
Posts: 11660

Post by mobhar »

From the documentation, see Important Notes #7:

7. Custom Template does NOT support the following:
...
Export to PDF/Excel/Word by extension data will be exported in original tabular format only)
...


Post Reply