Print Bill of Lading three times with text 'Original, 'Customer Copy', 'Carrier Copy'

Hi, we have a requirement to print a bill of lading to a printer on three sheets of colour coded paper (similar to carbon copies). Each copy will have a different label to show who it is intended for- examples below.

Using number of copies will take care of the number of documents to print but is there a way to control the label on each printout either by producing all three from the same DSP or dynamically replacing text on each print? Any guidance greatly appreciated.

Sheet 1 - labelled ‘Original’

Sheet 2 - labelled ‘Customer Copy’

Sheet 3 - Labelled ‘Carrier Copy’

Hi @CCC,

Just so I understand the scenario correctly, are the three copies generated as one print job, or should the three copies be produced as separate print jobs, with each one having its corresponding label?

Hi Dalila, the print will be triggered as one print job and each BOL will have it’s own label.

Hi @CCC,

Before recommending the most suitable solution, we would like to clarify a few points with you:

  1. Is the document label information already available in the DSP file?
  2. Will the document need to be printed in multiple languages?
  3. Does each document copy require a specific paper color when printing?

Thank you in advance for confirming these details.

Hi Abir,

  1. We have not added the document label to the DSP.
  2. Yes, we will have two languages.
  3. Yes, the printer tray is loaded with the paper in the colour sequence.

Thanks!

Hi @CCC ,

We want to clarify a few more points:

  1. Could you please confirm exactly which SSRS Bill of Lading report you are using?
  2. Is the Bill of Lading always a single-page report in your scenario, or can it sometimes span multiple pages?

Thank you.

Hi Natasa, we are using the WHSBillOfLading.Report and our BOL is only one page.

Hi CCullen,

Thank you for providing all the additional details we requested. We propose the following solution:

  1. Set up a new user-defined label (Docentric workspace > Additional setup > Report labels). First select Report languages and add the languages you want to support. Then click Labels.

  1. Add a new label and in the Label translations field provide translations for the three label variations in each language, delimited by semicolons, as shown below.

  1. Open the Docentric AX reports form and locate the BOL report you need (I use WHSBillOfLading.Report in my screenshots). Expand the Custom labels fast tab, click Add user-defined, and add the label you previously prepared.

  1. Generate the DDSP file again and load it into the report template in Docentric Designer in Word. The image below shows how the labels are represented in the DDSP file.

  1. Insert a Var tagging element near the top of the template and use the string-split() function to split the value of the user-defined label into an array. The result is an array with three values in the target language. Select the content that needs to be reprinted in copies and insert a List tagging element to wrap it. Bind it to the variable previously defined with the Var tagging element. This will repeat printing the same content with each iteration but with a different footer label.

  1. Before the end of the List tagging element you can see the text box inserted, fixed on the page and with anchor locked. Then you can bind it to the current context of the label array.

The result will generate a BOL with dynamic footer labels, as shown below.

I am attaching a sample template created using the steps above.

If you have additional questions, feel free to reach out.

Best regards,
Albin

Downloadable sample BOL template:
WHSBillOfLadingWithVariableFooterText.Report.docx (113.0 KB)

Thanks Albin, I was able to apply this approach to our BOL template and get this setup and working in our environment. I appreciate your help understanding how to achieve this requirement.

I am pleased to hear that you now have a working solution. I hope this explanation will also help others with similar requirements.

Regards,
Albin