@Mohammad
Check out this post. There was a mistake in patch 2 where I thought I put the fix in for this error but at last, guess I missed it however, @stephenwaite came up with a hot patch to fix.
See: Reports, downloading pdf of procedure orders - #14 by stephenwaite