当前位置: 首页>>代码示例>>PHP>>正文


PHP PDF::Table方法代码示例

本文整理汇总了PHP中PDF::Table方法的典型用法代码示例。如果您正苦于以下问题:PHP PDF::Table方法的具体用法?PHP PDF::Table怎么用?PHP PDF::Table使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PDF的用法示例。


在下文中一共展示了PDF::Table方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

     if ($printPage === TRUE) {
         $pdf->AddPage();
         $printPage = FALSE;
     } else {
         $pdf->ReportHeader();
     }
     $pdf->AddCol('party', '78', 'Party Name', 'L');
     $pdf->AddCol("t{$prevYear}", '13', "{$prevYear}", 'R');
     $pdf->AddCol("t{$year}", '13', "{$year}", 'R');
     $pdf->AddCol("t{$comp}", '13', "% +/-", 'R');
     for ($k = 1; $k <= 4; $k++) {
         $pdf->AddCol("{$k}{$prevYear}", '13', "{$prevYear}", 'R');
         $pdf->AddCol("{$k}{$year}", '13', "{$year}", 'R');
         $pdf->AddCol("{$k}{$comp}", '13', "% +/-", 'R');
     }
     $pdf->Table($d['data'], $prop);
     $totals = $d['totals'];
     $pdf->SetFont('Arial', 'B', 8);
     $pdf->SetX(12);
     $pdf->Cell(78, 6, "Total", 'LBR', 0, 'C', false);
     $pdf->Cell(13, 6, $totals["t{$prevYear}"], 'LBR', 0, 'C', false);
     $pdf->Cell(13, 6, $totals["t{$year}"], 'LBR', 0, 'C', false);
     $pdf->Cell(13, 6, $totals["t{$comp}"], 'LBR', 0, 'C', false);
     for ($k = 1; $k <= 4; $k++) {
         $pdf->Cell(13, 6, $totals["{$k}{$prevYear}"], 'LBR', 0, 'C', false);
         $pdf->Cell(13, 6, $totals["{$k}{$year}"], 'LBR', 0, 'C', false);
         $pdf->Cell(13, 6, $totals["{$k}{$comp}"], 'LBR', 0, 'C', false);
     }
     $pdf->Ln();
 }
 $pdf->Output("sales_comp.pdf", "D");
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:31,代码来源:sales_comparison.php

示例2: array

     $prop = array('HeaderColor' => array(0, 0, 0), 'HeaderTextColor' => array(255, 255, 255), 'color1' => array(217, 217, 217), 'color2' => array(255, 255, 255), 'textcolor1' => array(0, 0, 0), 'textcolor2' => array(0, 0, 0), 'padding' => 1, 'formatNumber' => TRUE, 'formatNumberDecimal' => 0, 'font' => array('Arial', '', 8), 'thfont' => array('Arial', 'B', 10));
     foreach ($data as $vid => $d) {
         $vehicle = $d['vehicle'];
         $pdf->AddPage();
         $pdf->AddCol('cno', '5%', '', 'L');
         if ($vendor == 'TIK') {
             $pdf->AddCol('description', '25%', '', 'L');
             $pdf->AddCol('fix_rate', '15%', '', 'R');
         } else {
             $pdf->AddCol('description', '40%', '', 'L');
         }
         $pdf->AddCol('model', '15%', '', 'L');
         $pdf->AddCol('oem', '15%', '', 'L');
         $pdf->AddCol('rate', '15%', '', 'R');
         $pdf->AddCol('unit', '10%', '', 'L');
         $pdf->Table($d['data'], $prop, TRUE, FALSE);
     }
     $pdf->Output("circular.pdf", "D");
 } else {
     if ($_GET['report'] == 'xls') {
         require_once '../../Classes/PHPExcel.php';
         $padding = 0.71;
         $objPHPExcel = new PHPExcel();
         $objPHPExcel->getProperties()->setCreator("imranzahid+nexexcel@gmail.com")->setLastModifiedBy("Imran Zahid")->setTitle("MM Circular")->setSubject("MM Circular")->setDescription("MM Circular")->setKeywords("MM Circular")->setCategory("Reports");
         $activeSheet = $objPHPExcel->getActiveSheet();
         $activeSheet->getHeaderFooter()->setOddHeader('&C&18&B' . $_title . '&R&U&D');
         $activeSheet->getHeaderFooter()->setOddFooter('&LPlease consider the environment before printing this report&C&IPage &P/&N&RReport generated by nexexcel.com');
         $activeSheet->getPageSetup()->setOrientation(PHPExcel_Worksheet_PageSetup::ORIENTATION_PORTRAIT);
         $activeSheet->getPageSetup()->setPaperSize(PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4);
         $objPHPExcel->getActiveSheet()->getPageSetup()->setRowsToRepeatAtTopByStartAndEnd(1, 3);
         $activeSheet->getColumnDimension('A')->setWidth(12 + $padding);
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:31,代码来源:circular.php

示例3: PDF

     }
     $pdf = new PDF('L', $unit = 'mm', $format = 'A4');
     $pdf->AliasNbPages();
     $pdf->SetAuthor("imranzahid+nexexcel@gmail.com");
     $pdf->SetSubject("Daily Sales");
     $pdf->SetTitle("Daily Sales");
     $pdf->SetCreator("Imran Zahid");
     $prop = array('color1' => array(255, 255, 255), 'color2' => array(255, 255, 255), 'color3' => array(128, 128, 128), 'padding' => 2, 'font' => array('Arial', '', 10), 'thfont' => array('Arial', 'B', 10));
     $pdf->AddPage();
     $pdf->AddCol('party_name', "20%", 'Party', 'L');
     $pdf->AddCol('vendor', "20%", 'Vendor', 'L');
     $pdf->AddCol('cat_name', "20%", 'Category', 'L');
     $pdf->AddCol('description', "20%", 'Item', 'L');
     $pdf->AddCol("cs", "10%", 'CS', 'R');
     $pdf->AddCol("pc", "10%", 'PC', 'R');
     $pdf->Table($data, $prop);
     $_cMargin = $pdf->cMargin;
     $pdf->cMargin = $prop['padding'];
     $pdf->SetFont('Arial', 'B', 10);
     $pdf->Cell(221.59806666667, 6, "Total", 1, 0, 'C');
     $pdf->Cell(27.69975833333, 6, $totals['cs'], 1, 0, 'R');
     $pdf->Cell(27.69975833333, 6, $totals['pc'], 1, 0, 'R');
     $pdf->cMargin = $_cMargin;
     $pdf->Ln();
     $pdf->Output("daily_sales_{$_GET['date_start']}.pdf", "D");
 } else {
     if ($_GET['report'] == 'xls') {
         require_once '../../Classes/PHPExcel.php';
         $padding = 0.71;
         $objPHPExcel = new PHPExcel();
         $objPHPExcel->getProperties()->setCreator("imranzahid+nexexcel@gmail.com")->setLastModifiedBy("Imran Zahid")->setTitle("Daily Sales")->setSubject("Daily Sales")->setDescription("Daily Sales")->setKeywords("Daily Sales")->setCategory("Reports");
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:31,代码来源:daily_sales.php

示例4: PDF

        {
            //Title
            $this->SetFont('Arial', '', 18);
            $this->Cell(0, 6, 'Statistika korisnika po broju poslanih paketa', 0, 1, 'C');
            $this->Ln(10);
            //Ensure table header is output
            parent::Header();
        }
    }
    //Connect to database
    mysql_connect('localhost', 'WebDiP2013_086', 'admin_kggK');
    mysql_select_db('WebDiP2013_086');
    $pdf = new PDF();
    $pdf->AddPage();
    //First table: put all columns automatically
    $pdf->Table("SELECT count(*) as 'Broj poslanih paketa',ime_prezime as 'Ime i prezime',korisnicko_ime as 'Korisnicko ime' from zahtjevi z  left join kurirske_sluzbe ks on(z.idkurirske_sluzbe=ks.idkurirske_sluzbe) left join korisnici k on(z.posiljatelj=k.korisnicko_ime) WHERE 1=1 and z.idkurirske_sluzbe={$idkurirske} " . $dodatak . " group by posiljatelj order by count(*) desc");
    $pdf->Output();
}
include "header.php";
include "izbornik.php";
require_once 'baza.class.php';
$baza = new baza();
?>

<style>
	@media print
  {
      #popis_info { display: none;}
        #popis_paginate { display: none;}
        #popis_filter { display: none;}
	#forma { display: none; }
开发者ID:jtrupina,项目名称:eDostava,代码行数:31,代码来源:najaktivniji1.php

示例5: PDF

    $pdf = new PDF('L');
    $pdf->AliasNbPages();
    $pdf->SetAuthor("imranzahid+nexexcel@gmail.com");
    $pdf->SetSubject("Sales Comparision");
    $pdf->SetTitle("Sales Comparision");
    $pdf->SetCreator("Imran Zahid");
    foreach ($regionals as $city => $regional) {
        $prop = array('HeaderColor' => array(0, 0, 0), 'HeaderTextColor' => array(255, 255, 255), 'color1' => array(217, 217, 217), 'color2' => array(255, 255, 255), 'textcolor1' => array(0, 0, 0), 'textcolor2' => array(0, 0, 0), 'padding' => 1, 'formatNumber' => TRUE, 'font' => array('Arial', '', 8), 'thfont' => array('Arial', 'B', 10));
        $ndata = $regional['data'];
        $totals = $regional['totals'];
        $pdf->AddPage();
        $pdf->AddCol('vendor', '16%', 'Vendor', 'L');
        foreach ($months as $month) {
            $pdf->AddCol($month, '7%', $month, 'R');
        }
        $pdf->Table($ndata, $prop);
        $prop['font'] = array('Arial', 'B', 10);
        $ndata = array();
        $ndata[] = $totals;
        $pdf->AddCol('vendor', '16%', 'Vendor', 'L');
        foreach ($months as $month) {
            $pdf->AddCol($month, '7%', $month, 'R');
        }
        $pdf->Table($ndata, $prop, TRUE, FALSE);
    }
    $pdf->Output("sales_comparision.pdf", "D");
} else {
    if ($_GET['report'] == 'xls') {
        require_once '../../Classes/PHPExcel.php';
        $padding = 0.71;
        $objPHPExcel = new PHPExcel();
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:31,代码来源:rpt_sales_comparision.php

示例6: die

<?php

require 'access.php';
$conn = odbc_connect('COFFEE', '', '');
if (!$conn) {
    die('Connection failed');
}
$pdf = new PDF();
$pdf->AddPage();
$pdf->SetFont('Arial', '', 14);
$sql = 'SELECT COFFEE_NAME, ROAST_TYPE, QUANTITY FROM COFFEE_INVENTORY ORDER BY QUANTITY DESC';
$col = array('COFFEE_NAME' => 50, 'ROAST_TYPE' => 40, 'QUANTITY' => 100);
$pdf->Table($sql, $col);
$pdf->Output();
开发者ID:rohmad-st,项目名称:fpdf,代码行数:14,代码来源:ex.php

示例7: PDF

}
//Connect to database
mysql_connect("{$db_hostname}", "{$db_username}", "{$db_password}");
mysql_select_db('remsdb');
$pdf = new PDF("L", "mm", array(400, 200));
$pdf->AddPage();
$pdf->SetTextColor(0, 0, 0);
$pdf->SetFont('Times', 'B', 16);
$pdf->SetTextColor(0, 0, 0);
$pdf->SetFont('Times', 'B', 14);
$pdf->SetY(8);
$pdf->SetX(10);
$pdf->Cell(0, 3, $pdfAgencyName, 0, 1, 'L');
$pdf->Ln(5);
$pdf->SetFont('Times', 'B', 12);
$pdf->SetTextColor(131, 130, 139);
$pdf->Cell(0, 3, "Powered by Getchs;", 0, 1, 'L');
$pdf->tdheight = 5;
$pdf->Ln(30);
$pdf->SetFont('Times', 'B', 24);
$pdf->SetTextColor(64, 64, 64);
$pdf->Cell(0, 3, "LIST OF ALL ENDORSED APPLICANT", 0, 1, 'C');
$pdf->Ln(10);
$pdf->AddCol("Name", 80, 'Applicant Name', 'L');
$pdf->AddCol('clientName', 70, 'Client Name', 'L');
$pdf->AddCol('endorsementDate', 60, 'Application Date', 'L');
$pdf->AddCol('endorsementStatus', 50, 'Applicant Status', 'L');
$prop = array('HeaderColor' => array(89, 201, 145), 'color1' => array(224, 235, 255), 'color2' => array(255, 255, 240));
$pdf->SetFont('Times', 'B', 24);
$pdf->Table("SELECT CONCAT (basicLastName , ',' , basicFirstName , ' ', basicMiddleName) AS Name, clientName, endorsementDate, endorsementStatus\n\t\t\tFROM tbl_endorsement a, tbl_applicant b, tbl_basic_info c, tbl_client d, tbl_job_posting e\n\t\t\tWHERE a.applicantId = b.applicantId \n\t\t\t\t\tAND c.basicId = b.basicId\n\t\t\t\t\tAND a.clientId = d.clientId\n\t\t\t\t\tAND a.jobPostingId = e.jobPostingId", $prop);
$pdf->Output();
开发者ID:gencalda,项目名称:Recruitment-Employee-Performance-Monitoring-System,代码行数:31,代码来源:pdfEndorsementSummary.php

示例8: PDF

<?php

include 'view/reportes/CabezaReport.php';
$pdf = new PDF();
if ($resultRep != "") {
    $pdf->Carton = "";
    $pdf->Titulo = "Reporte de Documentos por SubCategorías";
    $pdf->AddPage();
    //$pdf->Header('Reporte de Categorías del Sistema');
    $pdf->AddCol('nombre_subcategorias', 50, utf8_decode('Nombre de SubCategoría'), 'L');
    $pdf->AddCol('lecturas_documentos', 50, utf8_decode('Cantidad de Documentos'), 'C');
    $pdf->AddCol('paginas_documentos', 50, 'Cantidad Hojas', 'C');
    $prop = array('HeaderColor' => array(246, 31, 66), 'color1' => array(255, 255, 255), 'color2' => array(255, 255, 210), 'padding' => 2);
    $pdf->SetY(40);
    $format = 1;
    $pdf->Table($resultRep, $prop, $format);
    $pdf->AddCol('totales', 50, utf8_decode(''), 'L');
    $pdf->AddCol('total_documentos', 50, utf8_decode('Total Documentos'), 'C');
    $pdf->AddCol('total_paginas', 50, utf8_decode('Total de Páginas'), 'C');
    $prop2 = array('HeaderColor' => array(246, 31, 66), 'color1' => array(232, 237, 233), 'color2' => array(255, 255, 210), 'padding' => 2);
    //$pdf->SetY(40);
    $format = 0;
    $pdf->Table($resultRep2, $prop2, $format);
}
$pdf->Output();
开发者ID:mannyalbert81,项目名称:espejo,代码行数:25,代码来源:SubCategoriasDocumentosReport.php

示例9: Header

<?php

require 'mysql_table.php';
class PDF extends PDF_MySQL_Table
{
    function Header()
    {
        //Title
        $this->SetFont('Arial', '', 18);
        $this->Cell(0, 6, 'Mieteruebersicht', 0, 1, 'C');
        $this->Ln(10);
        //Ensure table header is output
        parent::Header();
    }
}
//Connect to database
mysql_connect('mysql.hostinger.de', 'u947198430_user', 'yes123');
mysql_select_db('u947198430_db');
$pdf = new PDF('L');
$pdf->AddPage();
$mieter = 'SELECT * FROM Mieter';
//First table: put all columns automatically
$pdf->Table($mieter);
$pdf->Output($downloadfilename . ".pdf");
header('Location: ' . $downloadfilename . ".pdf");
开发者ID:GoldiMM,项目名称:Web-Engineering-Project,代码行数:25,代码来源:pdfMieter.php

示例10: elseif

                                $count++;
                            }
                        }
                    } elseif ($width + $wordwidth <= $maxwidth) {
                        $width += $wordwidth + $space;
                        $text .= $word . ' ';
                    } else {
                        $width = $wordwidth + $space;
                        $text = rtrim($text) . "\n" . $word . ' ';
                        $count++;
                    }
                }
                $text = rtrim($text) . "\n";
                $count++;
            }
            $text = rtrim($text);
            return $count;
        }
    }
    $pdf = new PDF('L', 'cm', 'A4');
    $pdf->AliasNbPages();
    $pdf->SetLeftMargin(1);
    $pdf->SetRightMargin(1);
    $pdf->AddPage();
    $pdf->Table();
    $filename = "Laporan Proyek " . $ProjectName . ".pdf";
    $pdf->Output($filename, "D");
}
?>
 
开发者ID:ricmawan,项目名称:projects,代码行数:29,代码来源:ExportPDF.php

示例11: Header

<?php

require 'mysql_table.php';
class PDF extends PDF_MySQL_Table
{
    function Header()
    {
        //Title
        $this->SetFont('Arial', '', 18);
        $this->Cell(0, 6, 'World populations', 0, 1, 'C');
        $this->Ln(10);
        //Ensure table header is output
        parent::Header();
    }
}
//Connect to database
mysql_connect('localhost', 'root', 'vlab');
mysql_select_db('cell');
$pdf = new PDF();
$pdf->AddPage();
//First table: put all columns automatically
$pdf->Table('SELECT * FROM vle_data WHERE eid=1881668 AND flag=1');
$pdf->AddPage();
//Second table: specify 3 columns
$pdf->Output();
?>

View the r
开发者ID:ksripathi,项目名称:chemical-engg-iitb,代码行数:28,代码来源:rep.php

示例12: array

     $pdf->SetTitle("Voucher");
     $pdf->SetCreator("Imran Zahid");
     $prop = array('HeaderColor' => array(0, 0, 0), 'HeaderTextColor' => array(255, 255, 255), 'color1' => array(217, 217, 217), 'color2' => array(255, 255, 255), 'textcolor1' => array(0, 0, 0), 'textcolor2' => array(0, 0, 0), 'padding' => 1, 'formatNumber' => TRUE, 'formatNumberDecimal' => 0, 'printZero' => FALSE, 'font' => array('Arial', '', 8), 'thfont' => array('Arial', 'B', 8));
     foreach ($ndata as $data) {
         $prop['font'] = array('Arial', '', 8);
         $voucher_id = $data['seq'];
         $voucher_date = $data['voucher_date_fmt'];
         $voucher_type = $data['voucher_type'];
         $voucher_by = $data['voucher_by'];
         $voucher_remarks = $data['voucher_remarks'];
         $pdf->AddPage();
         $pdf->AddCol('account_name', '30%', 'Account Name', 'L');
         $pdf->AddCol('remarks', '40%', 'Remarks', 'L');
         $pdf->AddCol('debit_amount', '15%', 'Debit', 'R');
         $pdf->AddCol('credit_amount', '15%', 'Credit', 'R');
         $pdf->Table($data['data'], $prop);
         $prop['font'] = $prop['thfont'];
         $pdf->AddCol('account_name', '70%', 'Account', 'L');
         $pdf->AddCol('debit_amount', '15%', 'Debit', 'R');
         $pdf->AddCol('credit_amount', '15%', 'Credit', 'R');
         $row = array();
         $row[] = array('account_name' => 'Total', 'debit_amount' => $data['debit'], 'credit_amount' => $data['credit']);
         $pdf->Table($row, $prop, TRUE, FALSE);
     }
     $pdf->Output("voucher.pdf", "D");
 } else {
     if ($_GET['report'] == 'xls') {
         require_once '../../Classes/PHPExcel.php';
         $padding = 0.71;
         $objPHPExcel = new PHPExcel();
         $objPHPExcel->getProperties()->setCreator("imranzahid+nexexcel@gmail.com")->setLastModifiedBy("Imran Zahid")->setTitle("Voucher")->setSubject("Voucher")->setDescription("Voucher")->setKeywords("Voucher")->setCategory("Reports");
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:31,代码来源:vouchers.php

示例13: PDF

        //$this->Ln(10);
        //Ensure table header is output
        //parent::Header();
    }
}
$pdf = new PDF();
$pdf->AddPage("L", "Letter");
$pdf->SetFont('Arial', '', 18);
$pdf->Image($maindir . 'assets/img/lucen-aspicio.png', 50, 15, 200, 200, 'PNG');
$pdf->Image($maindir . 'assets/img/logo_unah.png', 15, 5, 24, 36, 'PNG');
$pdf->Image($maindir . 'assets/img/logo-cienciasjuridicas.png', 230, 8, 35, 35, 'PNG');
$pdf->Cell(22, 10, '', 0);
$pdf->SetFont('Arial', '', 18);
$pdf->Cell(45, 10, '', 0);
$pdf->Cell(70, 10, utf8_decode('Universidad Nacional Autónoma de Honduras'), 0);
$pdf->Ln(10);
$pdf->SetFont('Arial', 'U', 14);
$pdf->Cell(60, 8, '', 0, 0, "C");
$pdf->Cell(130, 8, 'Reportes de Permisos Personales', 0, 0, "C");
$pdf->Ln(25);
//$pdf->AddCol('N',25,'#Empleado','C');
$pdf->AddCol('Nombre', 70, 'Nombre Completo', 'C');
$pdf->AddCol('nombre_departamento', 70, 'Departamento', 'C');
$pdf->AddCol('mtd', 50, 'Motivo', 'C');
$pdf->AddCol('fecha', 22, 'Fecha', 'C');
$pdf->AddCol('hora_inicio', 20, 'inicio', 'C');
$pdf->AddCol('hora_finalizacion', 20, 'fin', 'C');
$pdf->AddCol('dias_permiso', 10, utf8_decode('Días'), 'C');
$pdf->base($db);
$pdf->Table($consulta4);
$pdf->Output();
开发者ID:hllanosp,项目名称:proyecto-ciencias-juridicas,代码行数:31,代码来源:crearpdfsolicitudes.php

示例14: array

 $pdf->SetSubject("Party Age");
 $pdf->SetTitle("Party Age");
 $pdf->SetCreator("Imran Zahid");
 $prop = array('HeaderColor' => array(0, 0, 0), 'HeaderTextColor' => array(255, 255, 255), 'color1' => array(217, 217, 217), 'color2' => array(255, 255, 255), 'textcolor1' => array(0, 0, 0), 'textcolor2' => array(0, 0, 0), 'padding' => 1, 'formatNumber' => true, 'font' => array('Arial', '', 8), 'thfont' => array('Arial', 'B', 8));
 if ($_GET['format'] == 'compact') {
     $pdf->AddPage();
     $pdf->AddCol('party', '28%', 'Party Name', 'L');
     $pdf->AddCol('payt', '8%', 'Pay Terms', 'R');
     $pdf->AddCol('days', '7%', 'Days', 'R');
     $pdf->AddCol("d0", '9.5%', '0-30', 'R');
     $pdf->AddCol("d30", '9.5%', '31-60', 'R');
     $pdf->AddCol("d60", '9.5%', '61-90', 'R');
     $pdf->AddCol("d90", '9.5%', '91-120', 'R');
     $pdf->AddCol("d120", '9.5%', '>120', 'R');
     $pdf->AddCol('total', '9.5%', 'Total', 'R');
     $pdf->Table($ndata, $prop);
     $prop['font'] = array('Arial', 'B', 8);
     $pdf->AddCol('name', '43%', 'Total', 'C');
     $pdf->AddCol("d0", '9.5%', '0-30', 'R');
     $pdf->AddCol("d30", '9.5%', '31-60', 'R');
     $pdf->AddCol("d60", '9.5%', '61-90', 'R');
     $pdf->AddCol("d90", '9.5%', '91-120', 'R');
     $pdf->AddCol("d120", '9.5%', '>120', 'R');
     $pdf->AddCol('total', '9.5%', 'Total', 'R');
     $pdf->Table($totals, $prop, TRUE, FALSE);
 } else {
     foreach ($ndata as $data) {
         $party = $data['party'];
         $days_limit = $data['days'];
         $pdf->AddPage();
         $pdf->AddCol('seq', '8%', 'Inv #', 'L');
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:31,代码来源:party_age.php

示例15: array

     $pdf->SetAuthor("imranzahid+nexexcel@gmail.com");
     $pdf->SetSubject("Cash Movement");
     $pdf->SetTitle("Cash Movement");
     $pdf->SetCreator("Imran Zahid");
     $prop = array('HeaderColor' => array(0, 0, 0), 'HeaderTextColor' => array(255, 255, 255), 'color1' => array(217, 217, 217), 'color2' => array(255, 255, 255), 'textcolor1' => array(0, 0, 0), 'textcolor2' => array(0, 0, 0), 'padding' => 1, 'formatNumber' => TRUE, 'font' => array('Arial', '', 8), 'thfont' => array('Arial', 'B', 10));
     $title = $_title;
     $pdf->AddPage();
     $col = 100 / $total;
     for ($i = 0; $i < $total; $i++) {
         $align = 'R';
         if ($i % 2 == 0) {
             $align = 'L';
         }
         $pdf->AddCol("{$i}", $col . '%', '', $align);
     }
     $pdf->Table($data, $prop, FALSE, FALSE);
     $pdf->Table($tdata, $prop, TRUE, FALSE);
     $fileName .= ".pdf";
     $pdf->Output($fileName, "D");
 } else {
     if ($_GET['report'] == 'xls') {
         require_once '../../Classes/PHPExcel.php';
         $padding = 0.71;
         $objPHPExcel = new PHPExcel();
         $objPHPExcel->getProperties()->setCreator("imranzahid+nexexcel@gmail.com")->setLastModifiedBy("Imran Zahid")->setTitle("Godown Stock")->setSubject("Godown Stock")->setDescription("Godown Stock")->setKeywords("Godown Stock")->setCategory("Reports");
         $activeSheet = $objPHPExcel->getActiveSheet();
         $activeSheet->getHeaderFooter()->setOddHeader('&C&18&B' . $_title . '&R&U&D');
         $activeSheet->getHeaderFooter()->setOddFooter('&LPlease consider the environment before printing this report&C&IPage &P/&N&RReport generated by nexexcel.com');
         $activeSheet->getPageSetup()->setOrientation(PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE);
         $activeSheet->getPageSetup()->setPaperSize(PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4);
         $pad = 0;
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:31,代码来源:cash_movement.php


注:本文中的PDF::Table方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。