Hi,

The method I follow is mentioned stepwise - 

1> Set your logo path in PartyGroup table's logoImageUrl column.
   You can do that from here -
https://localhost:8443/partymgr/control/editpartygroup?partyId=Company
   
2> In your fo.ftl file set the following variables -

<#assign partyGroup = delegator.findByPrimaryKey("PartyGroup",
Static["org.ofbiz.base.util.UtilMisc"].toMap("partyId", "Company"))>

<#if partyGroup != null && partyGroup.getString("logoImageUrl")?exists>
    <#assign logoUrl = partyGroup.getString("logoImageUrl")>
</#if>

3> In your fo.ftl file where you want to display the logo, put the following
code - 

<fo:block>
   <fo:external-graphic
src="<@ofbizContentUrl>${logoUrl}</@ofbizContentUrl>" overflow="hidden"
height="50px" content-width="150px" content-height="50px"/>
</fo:block>
                               

Thanks,
Nikita
Amicon Technologies Pvt. Ltd.
Mumbai, India.

-----Original Message-----
From: Milind Pol [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 23, 2007 6:43 PM
To: [email protected]
Subject: Logo on PDF reports

Hello,

 

I would like to have the company logo on PDF reports which are generated
(invoice etc.) I set up the log image in party to the right image but it
does not pick up from there. Address and other details are picked up
correctly though.

 

Is there anything that I am missing?

 

Regards,

Milind


Reply via email to