Hi All,
I am getting error while opening the PDF report in cache 2017 instance, I am using this below piece of code to open PDF in browser.
S pdf=objResult.FormattedReport // FormattedReport property is a %GlobalBinaryStream
D pdf.%Save()
D pdf.SetAttribute("ContentType","pdf")
D pdf.SetAttribute("Expires",0)
D pdf.SetAttribute("CONTENT","NO-CACHE")
S oid=pdf.%Oid()
S %session.Data("CacheStreamId")=oid
S StrOid=..Encrypt(oid)
W !,"<script
.png)
.png)

.png)
