You need to sign in to do that
Don't have an account?
Salesforce 283
Show the header image in all pages in Visualforce PDF
Hi Guys,
I write one time apex:image it will show in all pages. So i used static resource but it didn't come and often i had to write apex:image. I tried whatever examples in google. So please try in your org and help me out this problem.
Static Resource:
<style type="text/css" media="print">
div.header {
position: running(header);
}
@page
{
margin-top: -0.2in;
margin-left:-0.1in;
margin-right:-0.1in;
@top-center
{ content: element(header);
background-image: url('{!$Resource.Con_Header}');
}
}
</style>
I write one time apex:image it will show in all pages. So i used static resource but it didn't come and often i had to write apex:image. I tried whatever examples in google. So please try in your org and help me out this problem.
Static Resource:
<style type="text/css" media="print">
div.header {
position: running(header);
}
@page
{
margin-top: -0.2in;
margin-left:-0.1in;
margin-right:-0.1in;
@top-center
{ content: element(header);
background-image: url('{!$Resource.Con_Header}');
}
}
</style>
Your CSS can go into the head section of your Visualforce Page. something like below. Your Image can go into the static resource which you can refer in the @page
Hope this helps.
All Answers
Your CSS can go into the head section of your Visualforce Page. something like below. Your Image can go into the static resource which you can refer in the @page
Hope this helps.
Any help will be apprecaited.
Thanks,
Manoahr