How to preview a specific invoice in the Report Designer?

I'm tweaking an invoice template in the Report Designer. When I click preview, I see five apparently random invoices from my database (most dated 2011-2013!).

How can I preview a specific invoice?
I've tried entering an invoice number in Preview>Parameters>Number, but that field is empty and I can’t enter any data there. 

Parents
  • Hello, Emma,

    Good question! I've came to it many times while was working on different templates. Sometimes template looks good for one invoice, but worse for another.

    So, my main and quickest solution is to switch to the Field list, select Invoice (could be another name, just select top node in the tree) and in properties find Sorting property. Open it and sort by Date in descending order. From now, preview window will display invoices starting from the latest one.

    Also, we can control how many invoices are shown by default in the Preview window. Click on empty space to select the whole report, and then find Report print options:

    Screenshot of Trados Studio showing an invoice template with a Field list panel on the right, highlighting the Sorting property dropdown menu sorted by Date in descending order.

    Finally, if you still need to display concrete invoice, you can use Criteria property for data set:

    Screenshot of Trados Studio displaying the Report print options in the Properties panel with a Field list panel on the right, highlighting the option to control the number of invoices shown in the Preview window.

    Here you can specify criteria to get an invoice which you need. For example by number. However, in this case don't forget to clear Criteria before saving a template, otherwise you won't see invoice when printing from UI.

    Hope that helps! And sorry that there is no super easy solution Slight smile

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 5:36 AM (GMT 0) on 5 Mar 2024]
Reply
  • Hello, Emma,

    Good question! I've came to it many times while was working on different templates. Sometimes template looks good for one invoice, but worse for another.

    So, my main and quickest solution is to switch to the Field list, select Invoice (could be another name, just select top node in the tree) and in properties find Sorting property. Open it and sort by Date in descending order. From now, preview window will display invoices starting from the latest one.

    Also, we can control how many invoices are shown by default in the Preview window. Click on empty space to select the whole report, and then find Report print options:

    Screenshot of Trados Studio showing an invoice template with a Field list panel on the right, highlighting the Sorting property dropdown menu sorted by Date in descending order.

    Finally, if you still need to display concrete invoice, you can use Criteria property for data set:

    Screenshot of Trados Studio displaying the Report print options in the Properties panel with a Field list panel on the right, highlighting the option to control the number of invoices shown in the Preview window.

    Here you can specify criteria to get an invoice which you need. For example by number. However, in this case don't forget to clear Criteria before saving a template, otherwise you won't see invoice when printing from UI.

    Hope that helps! And sorry that there is no super easy solution Slight smile

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 5:36 AM (GMT 0) on 5 Mar 2024]
Children