# Print preview from custom code

**URL:** <https://www.epiusers.help/t/print-preview-from-custom-code/36424>\
**Category:** Epicor ERP 10\
**Tags:** features\
**Created:** [November 26, 2016, 1:37pm UTC](https://www.epiusers.help/t/print-preview-from-custom-code/36424 "2016-11-26T13:37:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon19817365](https://www.epiusers.help/letter_avatar_proxy/v4/letter/a/5e9695/32.png) [@anon19817365](https://www.epiusers.help/u/anon19817365)\
**Post date:** [November 26, 2016, 1:37pm UTC](https://www.epiusers.help/t/print-preview-from-custom-code/36424/1 "2016-11-26T13:37:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![tkoch](https://www.epiusers.help/letter_avatar_proxy/v4/letter/t/439d5e/32.png) [@tkoch](https://www.epiusers.help/u/tkoch)\
**Post date:** [November 28, 2016, 2:16pm UTC](https://www.epiusers.help/t/print-preview-from-custom-code/36424/2 "2016-11-28T14:16:07Z")

</div>

Are there any details with the error?
