Print preview from custom code

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.

Are there any details with the error?