0

Questions about printing invoices

In the database table "Orders", there is a "New document" button. I created a new "test" table and set a "pdf" button. I have an idea that clicking the "pdf" button will generate a "pdf" of the "Orders" table, just like clicking the "New document" button. Is this possible? Or is there a better way to use the printing function of another table in one table? Thank you for your reply. Happy New Year!

6 replies

null
    • Ninox partner
    • RoSoft_Steven.1
    • 3 mths ago
    • Reported - view

    You must print from a table where the printeditor has made the layout, in this case the 'Orders' table.

    It won't work from the 'test' table because there is no printlayout... and also no link to the 'Orders' table...

    If you still want to do this, you must use the Dynamic printlayout (carbone word document) and inject the data with JSON. But this is a more complicated way. Example about dynamic printing here:

    https://forum.ninox.com/t/60yhd2g

    Hope this helps.

      • gold_cat
      • 3 mths ago
      • Reported - view

       

      Thank you for your reply. Can I copy the print layout in the Orders table to test?

      • Ninox partner
      • RoSoft_Steven.1
      • 3 mths ago
      • Reported - view

      No, and you can't create one there (test table) too because you have no fields to place in the layout. 

      • gold_cat
      • 3 mths ago
      • Reported - view

       I made a mistake, I wanted to say whether the print layout style can be copied between tables

      • Ninox partner
      • RoSoft_Steven.1
      • 3 mths ago
      • Reported - view

      Well, not the regular print-styles, they have to be rebuild in each table. (Even if you duplicate a table, they don't copy)

      But if you use the Dynamic print layout, you could copy/import your .doc file into different tables.

      The field names need to be the same though to work then.

      • gold_cat
      • 3 mths ago
      • Reported - view

       Thank you for your reply!

Content aside

  • Status Answered
  • 3 mths agoLast active
  • 6Replies
  • 95Views
  • 3 Following