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


PHP PDFReport::SetX方法代码示例

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


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

示例1: count

 $lineSelect = 0;
 $count = count($rown);
 if ($count == 1) {
     $lineSelect = 2;
 }
 $changeColor = 0;
 $pdf->SetFormatCell(array());
 foreach ($rown as $val) {
     $pdf->SetAligns('L');
     $pdf->SetDibujaFondoTexto(false);
     if ($lineSelect == 0) {
         $pdf->SetFontAlignGeneral(1);
         $pdf->SetDibujaFondo(true);
         $pdf->SetFont('Arial', 'I', 14);
         $pdf->SetAltoLinea(7);
         $pdf->SetX(5);
         $pdf->SetFillColor(192, 192, 192);
         $pdf->SetTextColor(0, 0, 0);
         $changeColor = 0;
         $iline = 0;
     }
     if ($lineSelect == 1) {
         $pdf->SetX(5);
         $pdf->SetFontAlignGeneral(2);
         $pdf->SetAltoLinea(5);
         $pdf->SetFillColor(192, 192, 192);
         $pdf->SetTextColor(255, 255, 255);
         $pdf->SetFont('Arial', 'B', 7);
     }
     if ($lineSelect >= 2) {
         $pdf->SetX(5);
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:31,代码来源:ReporteEvolutivodeSiniestro.php

示例2: DBExecSql

 $params[":siniestro"] = $_SESSION["ReportesSiniestros"]["ID"];
 $params[":orden"] = $_SESSION["ReportesSiniestros"]["ORDEN"];
 $stmt = DBExecSql($conn, $sql, $params);
 //-----------------------------------------------------------------------
 if (DBGetRecordCount($stmt) == 0) {
     echo "La consulta no devolviò datos.";
     exit;
 }
 $rowCabecera = DBGetQuery($stmt, 1, false);
 //-----------------------------------------------------------------------
 // $pdf->setSourceFile($_SERVER["DOCUMENT_ROOT"]."/modules/varios/templates/ListadoJuiciosVerticalBlanco.pdf");
 $stmt = DBExecSql($conn, $sql, $params);
 $pdf->SetAutoPageBreak(true, 20);
 $pdf->AddPage('P', 'Legal');
 while ($row = DBGetQuery($stmt, 1, false)) {
     $pdf->SetX($pdf->margenDerecho);
     $pdf->SetTextColor(0, 0, 0);
     $pdf->SetFontAlignGeneral();
     $Newrow = array_values($row);
     $pdf->Row($Newrow);
     $pdf->LineaSepara();
 }
 unset($_SESSION['ReportesSiniestros']["ReporteDatosdelaEmpresa"]);
 // enviamos cabezales http para no tener problemas
 header('Content-Type: text/html; charset=UTF-8');
 //header('Content-Type: text/html; charset=iso-8859-1');
 header("Content-Transfer-Encoding", "binary");
 //header('Cache-Control: maxage=3600');
 header('Cache-Control: private, max-age=0, must-revalidate');
 header('Pragma: public');
 $pdf->Output('ReporteDatosdelaEmpresa.pdf', 'I');
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:31,代码来源:ReporteDatosdelaEmpresa.php

示例3: DBExecSql

 $params[":psiniestro"] = $_SESSION["ReportesSiniestros"]["ID"];
 $params[":porden"] = $_SESSION["ReportesSiniestros"]["ORDEN"];
 $stmt = DBExecSql($conn, $sql, $params);
 //-----------------------------------------------------------------------
 if (DBGetRecordCount($stmt) == 0) {
     echo "La consulta no devolviò datos.";
     exit;
 }
 $rowCabecera = DBGetQuery($stmt, 1, false);
 //-----------------------------------------------------------------------
 $pdf->setSourceFile($_SERVER["DOCUMENT_ROOT"] . "/modules/varios/templates/ListadoJuiciosVerticalBlanco.pdf");
 $stmt = DBExecSql($conn, $sql, $params);
 $pdf->SetAutoPageBreak(true, 20);
 $pdf->AddPage('L', 'Legal');
 while ($row = DBGetQuery($stmt, 1, false)) {
     $pdf->SetX(5);
     $pdf->SetTextColor(0, 0, 0);
     $pdf->SetFontAlignGeneral();
     $Newrow = array_values($row);
     $pdf->Row($Newrow);
     $pdf->LineaSepara();
 }
 unset($_SESSION['ReportesSiniestros']["ReporteSeguimientodeIncapacidad"]);
 // enviamos cabezales http para no tener problemas
 //header('Content-Type: text/html; charset=UTF-8');
 //header('Cache-Control: maxage=3600');
 /*
 	header('Content-Type: text/html; charset=iso-8859-1');
 	header("Content-Transfer-Encoding", "binary");
 	header('Cache-Control: private, max-age=0, must-revalidate');
 	header('Pragma: public');
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:31,代码来源:ReporteSeguimientodeIncapacidad.php


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