Equisys technical notes

Technical guidance, explanations and fixes for our products

FIX: Sending a report using Zetadocs for NAV causes NAV to hang

Print

ZTN4123

ID: ZTN4123

This Zetadocs technical note applies to:

  • Zetadocs for NAV 4.0 or later

Symptom

While printing the report from NAV to the Zetadocs printer you see an error dialog after the Zetadocs Delivery or Zetadocs Batch Delivery dialog which says that the report cannot close because it is still running. You may also experience this problem without seeing the error dialog. In this case, the NAV client will become frozen after printing a report to the Zetadocs PDF printer.

Cause

This occurs because not all automation objects (non NAV components) are getting released by the software during the report printing. These objects prevent NAV from completing the report and lock up the NAV client.

Resolution

This problem can be resolved by adding a line of code to the Zetadocs code in your NAV report.

From the Object Designer:

  1. Open the report in question in the report designer
  2. View the report code and locate the trigger “Report – OnPostReport()”. (This can be done by selecting the empty row at the bottom of the data items dialog and pressing F9
  3. Add the line CLEAR(ZdSend); as shown here
  4. Close and save the report.

Status

This fault was corrected in 4.0.121 of the Zetadocs Report Tool

Last updated:  13/04/2011 (BM/MW)

Equisys Logo, Document Management and Expense Management for Business Central
 

Replaced by script