As you can see in the documentation, method OutputToIOStream returns a status and not a stream (first argument - a stream is written to in this method), so you should write:
Set pIOStream = ##Class(%IO.StringStream).%New() Set tSC = pRequest.OutputToIOStream(pIOStream,..Separators,"",1) Quit:$$$ISERR(tSC) tSC Set tSC = mail.AttachStream(pIOStream,..Filename,1,"iso-8859-1") Quit tSC
- Log in to post comments