# Print preview from custom code **Category:** [Epicor ERP 10](https://www.epiusers.help/c/e10/5) **Created:** 2016-11-26 13:37 UTC **Views:** 1033 **Replies:** 1 **URL:** https://www.epiusers.help/t/print-preview-from-custom-code/36424 --- ## Post #1 by @anon19817365 Hi. Did anyone try to get PDF invoice (existed SSRS report), like print preview from custom code? I am trying to use SubmitToAgent method, but constantly getting ERROR into EPICOR agent log. --- ## Post #2 by @tkoch Are there any details with the error? --- **Canonical:** https://www.epiusers.help/t/print-preview-from-custom-code/36424 **Original content:** https://www.epiusers.help/t/print-preview-from-custom-code/36424