Announcement

Collapse
No announcement yet.

pdf report

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

  • pdf report

    hy, i want insert a link in report pdf with pass global variable.

  • #2
    Hello,

    You can use javascript to do this.
    In the Layout Pdf > Code
    In the body, write a code like that:

    echo "
    <script>
    window.location = 'url.php?'+[global_variable];
    </script>";

    Or with php:

    header("Location: url.php?[global_variable]");

    Regards
    --
    ScriptCase Team

    Comment


    • #3
      ok, but i must insert the value of global variable ,example:

      [global_variable]='test'
      echo "
      <script>
      window.location = 'url.php?'+[global_variable];
      </script>";

      Comment


      • #4
        this is code of my pdf:

        /*------------------ Page 1 -----------------*/
        sc_pdf_print($cell_numero_fattura);
        sc_pdf_print($cell_anno-fatture);
        sc_pdf_print($cell_id_cliente);
        sc_pdf_print($cell_data arrivo);
        sc_pdf_print($cell_data partenza);
        sc_pdf_print($cell_tipologia_camera);
        sc_pdf_print($cell_Tipologia_Camera2);
        sc_pdf_print($cell_tipologia_camera3);
        sc_pdf_print($cell_Prezzo camera);
        sc_pdf_print($cell_prezzo_camera2);
        sc_pdf_print($cell_prezzo_camera3);
        sc_pdf_print($cell_Extra bar);
        sc_pdf_print($cell_Extra Bar_1);
        sc_pdf_print($cell_Tassa soggiorno(Iva esente));
        sc_pdf_print($cell_tassa soggiorno);
        sc_pdf_print($cell_Imponibile);
        sc_pdf_print($cell_iva);
        sc_pdf_print($cell_Totale);
        sc_pdf_print($cell_Data fattura);
        sc_pdf_print_mult($cell_nota1, 4.9388888888889);
        sc_pdf_print_mult($cell_nota2, 4.9388888888889);
        sc_pdf_print($cell_stato_pagamento);
        /*-------------------------------------------*/




        [path] = '/var/www/vhosts/xxxxx.it/httpdocs/scriptcase/tmp';
        [file_name] = 'fattura';

        sc_pdf_output([path].'/'.[file_name].'.pdf',"F");

        Comment


        • #5
          pdf

          anyone help me for code,thanks.

          Originally posted by andreaparisi View Post
          this is code of my pdf:

          /*------------------ Page 1 -----------------*/
          sc_pdf_print($cell_numero_fattura);
          sc_pdf_print($cell_anno-fatture);
          sc_pdf_print($cell_id_cliente);
          sc_pdf_print($cell_data arrivo);
          sc_pdf_print($cell_data partenza);
          sc_pdf_print($cell_tipologia_camera);
          sc_pdf_print($cell_Tipologia_Camera2);
          sc_pdf_print($cell_tipologia_camera3);
          sc_pdf_print($cell_Prezzo camera);
          sc_pdf_print($cell_prezzo_camera2);
          sc_pdf_print($cell_prezzo_camera3);
          sc_pdf_print($cell_Extra bar);
          sc_pdf_print($cell_Extra Bar_1);
          sc_pdf_print($cell_Tassa soggiorno(Iva esente));
          sc_pdf_print($cell_tassa soggiorno);
          sc_pdf_print($cell_Imponibile);
          sc_pdf_print($cell_iva);
          sc_pdf_print($cell_Totale);
          sc_pdf_print($cell_Data fattura);
          sc_pdf_print_mult($cell_nota1, 4.9388888888889);
          sc_pdf_print_mult($cell_nota2, 4.9388888888889);
          sc_pdf_print($cell_stato_pagamento);
          /*-------------------------------------------*/




          [path] = '/var/www/vhosts/xxxxx.it/httpdocs/scriptcase/tmp';
          [file_name] = 'fattura';

          sc_pdf_output([path].'/'.[file_name].'.pdf',"F");

          Comment

          Working...
          X