PRB: Hard copy printer always set to Zetadocs PDF
		
		
        
			Print
		
  
  
		ZTN4082
		
		
 
ID: ZTN4082
This Zetadocs technical note applies to:
- Zetadocs for NAV 3.0 and earlier 
Symptom
When printing a report from NAV to the Zetadocs PDF printer, if the delivery method is resolved as “Hard Copy” the hard copy printer will always be “Zetadocs PDF”, not the default system printer.
Cause
The cause of this problem is that the Zetadocs PDF printer has been set as the default printer for this report in the Printer Selections form in NAV and this is being checked when choosing the hard copy printer to use.
Resolution
The behaviour for selecting the hard copy printer can be changed by opening the Zetadocs-Integration codeunit and changing the code in the GetHardCopyPrinter function from this:
// Return the printer that will be used for Hard-Copy delivery of this record
CLEAR(PrinterSelection);
  
IF USERID < > '' THEN
  IF NOT PrinterSelection.GET(USERID,ReportID) THEN
    IF NOT PrinterSelection.GET(USERID,0) THEN;
  
IF (PrinterSelection." Printer Name" < > '' ) THEN
  EXIT(PrinterSelection." Printer Name" )
ELSE
  EXIT(ZdUtilities.GetUserDefaultPrinter);
To this:
  EXIT(ZdUtilities.GetUserDefaultPrinter);
Status
This has been identified by Equisys as a problem with the software versions given above.
Last updated: 13th September 2010 (JW/MW)