Announcement

Collapse
No announcement yet.

TCPDF use example in Scriptcase for understand avanced use.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • TCPDF use example in Scriptcase for understand avanced use.

    thanks group.
    i like uses all funcionallity the class TCPDF.

    I create my first report for print sales quotation master and details products.
    i use example step for step and not work http://www.scriptcase.net/scriptcase.../pdf/pdf03.php

    I not view label field, how to example url scriptcase pdf03.php

    i like header for data master quotation and one page for line. and print data product in table and salesprice other table.
    i like create report for equal a this example

    http://www.fpdf.org/en/script/ex20.pdf for uses TCPDF. and not understand.
    http://www.fpdf.org/en/script/script20.php


    i search examples in google. http://huguidugui.wordpress.com/2013...osiciones-x-y/

    i not undertstan the block in report application. section 3

    i download example TCPDF and not know running in scriptcase, for error the library // Include the main TCPDF library (search for installation path). require_once('tcpdf_include.php');




    /*------------------ Page 1 -----------------*/
    sc_pdf_print($cell_QUOTATIONID);
    sc_pdf_print($cell_QUOTATIONNAME);
    sc_pdf_print($cell_DELIVERYNAME);
    sc_pdf_print($cell_SALESRESPONSIBLE);
    sc_pdf_print($cell_CURRENCYCODE);
    sc_pdf_print($cell_DOCUTITLE);
    sc_pdf_print($cell_SALESEXPENSESPCT);
    sc_pdf_print($cell_PROFITMARGINCUST);
    sc_pdf_print($cell_TAX);
    sc_pdf_print($cell_EXCHRATECUST);
    sc_pdf_set_y(5);
    foreach ({orders_details} as $NM_ind => $Dados)
    {
    sc_pdf_print_sub_sel($cell_orders_details_LINENUM[$NM_ind]);
    sc_pdf_print_sub_sel($cell_orders_details_CURRENCY CODE[$NM_ind]);
    sc_pdf_print_sub_sel($cell_orders_details_ITEMID[$NM_ind]);
    sc_pdf_print_sub_sel($cell_orders_details_NAME[$NM_ind]);
    sc_pdf_print_sub_sel($cell_orders_details_SALESPRI CE[$NM_ind]);
    sc_pdf_print_sub_sel($cell_orders_details_SALESPRI CEPVP[$NM_ind]);
    sc_pdf_print_sub_sel($cell_orders_details_PROFITMA RGINCUST[$NM_ind]);
    sc_pdf_print_sub_sel($cell_orders_details_TAX[$NM_ind]);
    sc_pdf_sub_sel_end(20);
    }
    /*-------------------------------------------*/



    Espaņol.
    Buenas tardes amigos
    quiero usar la generacion de reportes para tener dos tipos de reportes.
    *Tengo una aplicacion maestro detalle de mis cotizaciones. quiero una hoja por linea del detalle en un formato como la imagen
    *como el ejemplo que hay pero con la libreria fpdf, quiero hacer el formato de factura igual.
    *he intentado usar la libreria tcpdf pero no todas las funciones estan incluidas

    No logro entender como usar toda las funciones de TCPDF dentro de scriptcase.
    Attached Files
    Last edited by ayepes2003; 11-20-2014, 05:44 PM. Reason: add code example my application report

  • #2
    i not work all function class TCPDF

    Fatal error: Call to a member function setTextShadow() on a non-object in C:\Program Files (x86)\NetMake\v8\wwwroot\scriptcase\app\Quotations \app_pdfreport_quotationtable\app_pdfreport_quotat iontable_grid.class.php on line 532

    i like probe uses examples for understand uses report pdf avanced, i canīt add library for error clases
    $pdf->setTextShadow(array('enabled'=>true, 'depth_w'=>0.2, 'depth_h'=>0.2, 'color'=>array(196,196,196), 'opacity'=>1, 'blend_mode'=>'Normal'));
    Attached Files
    Last edited by ayepes2003; 11-20-2014, 07:02 PM. Reason: add image

    Comment


    • #3
      Fatal error: Class 'TCPDF' not found in C:\Program Files (x86)\NetMake\v8\wwwroot\scriptcase\app\Quotations \blank\index.php on line 962


      i create application blank for uses class all include in SC8.
      i know how to add include, requiere etc.
      in onexcute method i add
      $pdf1 = new TCPDF( 'P', 'mm', 'A4' );
      $pdf1->AddPage();
      $pdf1->Output();

      i are add include, i not understand path for devel and prod
      include('tcpdf.php');
      $pdf1 = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
      $pdf1->AddPage();
      $pdf1->Output();


      Error
      include(tcpdf.php): failed to open stream: No such file or directory
      Error
      include(tcpdf.php): failed to open stream: No such file or directory
      Error
      include(): Failed opening 'tcpdf.php' for inclusion (include_path='.;C:\php\pear')
      Fatal error: Class 'TCPDF' not found in C:\Program Files (x86)\NetMake\v8\wwwroot\scriptcase\app\Quotations \blank\index.php on line 963
      Attached Files
      Last edited by ayepes2003; 11-20-2014, 07:55 PM.

      Comment


      • #4
        i found info in forum.
        http://support.scriptcase.net/index....-tcpdf-library

        Comment


        • #5
          Yo de ti miraria este ejemplo,

          Creo que te puede ser util ya que al tratarse de una factura se trata que el mismo concepto que un presupuesto

          http://www.scriptcase.net/scriptcase.../pdf/pdf03.php

          Comment

          Working...
          X