diff --git a/VECTO/cDeclaration.vb b/VECTO/cDeclaration.vb index 92d4f25d2377b06f349eaf2ddb8e24c50f1c1de0..526ce960020a4e5c009ae2aa09e0148baf723687 100644 --- a/VECTO/cDeclaration.vb +++ b/VECTO/cDeclaration.vb @@ -1687,7 +1687,7 @@ Public Class cReport ' close the pdf pdfStamper.Close() - + pdfReader.Close() Next 'Merge files @@ -1703,12 +1703,14 @@ Public Class cReport doc.Add(iTextSharp.text.Image.GetInstance(pdfpage)) Next - doc.Close() + If (doc.IsOpen()) Then + doc.Close() + End If 'Delete temp files - For Each temppath In temppdfs - File.Delete(temppath) - Next + 'For Each temppath In temppdfs + ' File.Delete(temppath) + 'Next Catch ex As Exception