How to make a report in PDF using code

How to make a report in PDF using code

Small tutorial tomake a report in PDF.


Other examples canbe taken from https://tcpdf.org/examples/


The scriptcase toolalso has the respective macros to use:https://www.scriptcase.net/docs/es_en/v81/aplicaciones-de-pdf-report/pdf-report/layout-pdf/codigo


1- You enter in theside menu in PDF Design / code where you can see some codes createdby the pdf or blank.






When executing this code of the image, the result would be





    • Related Articles

    • Report on the Application List Scriptcase

      A major differential Scriptcase are your management reports that help a lot in analyzing project performance in terms of productivity. Today we will talk a bit about other report that has a function very similar, the Report Application List. With it ...
    • Using friendly URL

      The friendly URL was included from Scriptcase 7, in order to make the URL, of the applications generated by Scriptcase, cleaner and easier to associate them with applications. For example, using friendly URLs the link to a Scriptcase application ...
    • Using two search applications to access a form

      In this example we are going to create 2 applications of the "Search" type, and 1 application of the "Form" type. In the Search type applications, we will use the "customers" and "orders" tables, however, we will select only a few fields from each ...
    • Using ajax: onChange events

      In this article we will see how the onChange event works, available in Scriptcase. It is triggered when the object, which makes use of it, has its value changed. Down below is an example of using this event. We will use an order items form, we will ...
    • Using the sc_confirm macro

      In this article, see a practical example of using the sc_confirm macro. This macro can only be used on PHP buttons created in the toolbar of form and control applications, with the aim of confirming the action's excursion. See how to create a PHP ...