Announcement

Collapse
No announcement yet.

pdfreport name of file

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

  • pdfreport name of file

    Hello
    How can I, if I generate a pdfreport, name the file automatically?

  • #2
    Hello,
    in the pdf code use
    $pdf-> Output ("$output_name.pdf ", 'I');


    the sc_pdf_output function also exists,
    but I have not studied it yet,
    because I use the tcpdf functions which are more complete at the moment.
    Last edited by nsch2308; 05-15-2019, 02:46 AM.

    Comment


    • #3
      I create the name of the document as follows:

      $doc_name = {country_id_2}."-".{location_id}."-".[g_id];

      But unfortunately I also use tcpdf.

      Comment

      Working...
      X