You need to sign in to do that
Don't have an account?
Puja Dev 6
Formila field Images not showing on Render as PDF.
Hi All,
I have formula field of text datatype. It used to captured QR code of each Campaign Member Record.
On VFPage it's working fine.
But on Render as PDF, it shows currepted image.
Following is the formula field :
QR Code :
IMAGE('https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=MECARD://tjt--aresssbox.cs64.my.salesforce.com/'&Id ,'Scan QR code to open record in mobile.')
I have formula field of text datatype. It used to captured QR code of each Campaign Member Record.
On VFPage it's working fine.
But on Render as PDF, it shows currepted image.
Following is the formula field :
QR Code :
IMAGE('https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=MECARD://tjt--aresssbox.cs64.my.salesforce.com/'&Id ,'Scan QR code to open record in mobile.')
After adding following url.. i got the solution .
Add "https://chart.googleapis.com" to your remote site and check again.
Setup -> Remote Stie Setting add above URL.
All Answers
I'm not suprised that that URL doesn't work, I think the RenderAs PDF can only display static, publically accessible, direct images, nothing generated on the fly by external services..! I will have a play myself with some stuff and see if I can drum up a suggestion!
After adding following url.. i got the solution .
Add "https://chart.googleapis.com" to your remote site and check again.
Setup -> Remote Stie Setting add above URL.
<apex:column headerValue="QR code" style="width:150px;" >
<apex:outputText value="https://chart.googleapis.com/chart?chs=200×200&cht=qr&chl={!be.Qr_code__c}" escape="false"/>
</apex:column>