html - Showing content of a PDF in an iFrame (path to file) -


i have stored pdf , want display in iframe. appropriate way calculate src?

i used did not work me:

<set field="resourcereference" from="ec.resource.getlocationreference('dbresource://mantle/content/cv/100000/content_100006/161107_hs.pdf')"/> 

then, in html added:

src="${resourcereference.geturl()}" 

without success.

field setup

enter image description here

a url resourcereference internal url (starting dbresource:// in example) , not valid url web client. you'll need add screen transition or streams file web client (using ec.web.sendresourceresponse(string location) method). there various examples of transitions using method in framework, simplescreens, etc.


Comments

Popular posts from this blog

c# SetCompatibleTextRenderingDefault must be called before the first -

How to prevent logback from emitting repeated "Empty watch file list. Disabling" messages -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -