In order to generate dynamic (database linked) MRZ codes, you’ll require our encoding script feature, which is only available from the cardPresso XL edition forward.
Please refer to the following document that explains how to do it.
You can also refer to the following cardPresso project and MS Excel database we created to test and demonstrate the described solution.
Within this project, you can find two MRZ script functions, one for the 2-lines and another for the 3-lines format, by selecting their respective text item, going to the Script tab on the right and selecting the Record changed event.
Under this configuration, the entire MRZ code should be automatically changed as you’re navigating through or printing different database records.