Skip to main content
Solved

Include documents in report as annexures

  • August 19, 2026
  • 2 replies
  • 31 views

Forum|alt.badge.img+4

We have a list of documents attached to customer invoice and when the invoice is printed, we would like to t the invoice and all the attached documents should get printed after the invoice as annexures (in a certain sequence).We have configured reporting rule for this with the following parameters:

However, the output is a little random. sometimes the annexures get printed after the invoice, but there are times when half the annexures come before the report, and half of them after. The need is multiple documents getting printed after the report as annexures. Can someone provide help here. 

Best answer by ashen_malaka_ranasinghe

Hi ​@KavArora,

What you are describing sounds very similar to a known behavior/defect in the"PDF Insert from Document Management" report rule action.

Your configuration appears correct:

  • InsertPosition = InsertAfterLast
  • MergeOptions = MergeWithReport

The expectation is that all connected documents are merged after the invoice PDF as annexures. However, there have been reported cases where:

  • Attachments are merged in an inconsistent order.
  • Some documents appear before the main report and others after it.
  • Multiple PDFs are opened/generated during preview even when MergeWithReport is selected.

In fact, an internal defect investigation specifically mentions: Even though InsertPosition was defined as InsertAfterLast, the attachment was printed before the report. This has been already fixed in the following IFS Cloud versions.

  • 26.1.2 - 26R1 SU2
  • 26.2E.0 - 26R2 EA

2 replies

ashen_malaka_ranasinghe
Superhero (Employee)
Forum|alt.badge.img+14

Hi ​@KavArora,

What you are describing sounds very similar to a known behavior/defect in the"PDF Insert from Document Management" report rule action.

Your configuration appears correct:

  • InsertPosition = InsertAfterLast
  • MergeOptions = MergeWithReport

The expectation is that all connected documents are merged after the invoice PDF as annexures. However, there have been reported cases where:

  • Attachments are merged in an inconsistent order.
  • Some documents appear before the main report and others after it.
  • Multiple PDFs are opened/generated during preview even when MergeWithReport is selected.

In fact, an internal defect investigation specifically mentions: Even though InsertPosition was defined as InsertAfterLast, the attachment was printed before the report. This has been already fixed in the following IFS Cloud versions.

  • 26.1.2 - 26R1 SU2
  • 26.2E.0 - 26R2 EA

ashen_malaka_ranasinghe
Superhero (Employee)
Forum|alt.badge.img+14

Hi ​@KavArora,

Based on the symptoms and the known defect reports, this does not look like a configuration issue with the properties shown in your screenshot. If the requirement is:

  1. Invoice first.
  2. All attached documents afterwards.
  3. Attachments in a specific sequence.

then the standard Report Rule PDF Insert functionality may not reliably guarantee the ordering of multiple attachments in some releases. 

I would recommend raising a support case and including:

  • IFS Cloud version and SU level.
  • Number of attached documents.
  • Whether the issue occurs in both Preview and Print.
  • Example invoice and attached document IDs.
  • Confirmation that InsertPosition = InsertAfterLast and MergeWithReport are used.

This will help determine whether you are encountering the known PDF Insert ordering issue or whether a version-specific fix already exists for your release.