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 |
step1) go to
https://localhost:8443/partymgr/control/editpartygroup?partyId=Company and set Image Logo URL to full path to logo ie. "http://host/dir/logo.jpg" step2) check if this image is accessible from ofbiz server Krzysztof 2007/7/23, Milind Pol <[hidden email]>: > > 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 > > |
In reply to this post by Milind Pol
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:[hidden email]] Sent: Monday, July 23, 2007 6:43 PM To: [hidden email] 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 |
In reply to this post by Krzysztof Podejma
Thanks a lot Krzysztof for the response,
Just to check I tried opentaps demo but I did not see logo even there - https://demo1.opentaps.org/accounting/control/invoice.pdf?invoiceId=10002 I also tried with hotwaxmedia demo and same issue... https://demo.hotwaxmedia.com/accounting/control/invoice.pdf?invoiceId=demo10 000 Is this a bug? Regards, Milind -----Original Message----- From: Krzysztof Podejma [mailto:[hidden email]] Sent: 23 July 2007 20:07 To: [hidden email] Subject: Re: Logo on PDF reports step1) go to https://localhost:8443/partymgr/control/editpartygroup?partyId=Company and set Image Logo URL to full path to logo ie. "http://host/dir/logo.jpg" step2) check if this image is accessible from ofbiz server Krzysztof 2007/7/23, Milind Pol <[hidden email]>: > > 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 > > |
looks like a bug,
please create a jira issue for this. Krzysztof 2007/7/24, Milind Pol <[hidden email]>: > > Thanks a lot Krzysztof for the response, > > Just to check I tried opentaps demo but I did not see logo even there - > > https://demo1.opentaps.org/accounting/control/invoice.pdf?invoiceId=10002 > > I also tried with hotwaxmedia demo and same issue... > > > https://demo.hotwaxmedia.com/accounting/control/invoice.pdf?invoiceId=demo10 > 000 > > Is this a bug? > > Regards, > Milind > > > -----Original Message----- > From: Krzysztof Podejma [mailto:[hidden email]] > Sent: 23 July 2007 20:07 > To: [hidden email] > Subject: Re: Logo on PDF reports > > step1) go to > https://localhost:8443/partymgr/control/editpartygroup?partyId=Company > and set Image Logo URL to full path to logo ie. "http://host/dir/logo.jpg" > step2) check if this image is accessible from ofbiz server > > Krzysztof > > 2007/7/23, Milind Pol <[hidden email]>: > > > > 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 > > > > > > |
In reply to this post by Milind Pol
Milind,
Try change Header Logo in your store. Milind Pol пишет: Thanks a lot Krzysztof for the response, Just to check I tried opentaps demo but I did not see logo even there - https://demo1.opentaps.org/accounting/control/invoice.pdf?invoiceId=10002 I also tried with hotwaxmedia demo and same issue... https://demo.hotwaxmedia.com/accounting/control/invoice.pdf?invoiceId=demo10 000 Is this a bug? Regards, Milind -----Original Message----- From: Krzysztof Podejma [[hidden email]] Sent: 23 July 2007 20:07 To: [hidden email] Subject: Re: Logo on PDF reports step1) go to https://localhost:8443/partymgr/control/editpartygroup?partyId=Company and set Image Logo URL to full path to logo ie. "http://host/dir/logo.jpg" step2) check if this image is accessible from ofbiz server Krzysztof 2007/7/23, Milind Pol [hidden email]: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 |
Thanks a lot Oleg,
Changing header logo in store worked... Regards, Milind _____ From: Oleg Andreyev [mailto:[hidden email]] Sent: 24 July 2007 21:38 To: [hidden email] Subject: Re: Logo on PDF reports Milind, Try change Header Logo in your store. Milind Pol пишет: Thanks a lot Krzysztof for the response, Just to check I tried opentaps demo but I did not see logo even there - https://demo1.opentaps.org/accounting/control/invoice.pdf?invoiceId=10002 I also tried with hotwaxmedia demo and same issue... https://demo.hotwaxmedia.com/accounting/control/invoice.pdf?invoiceId=demo10 000 Is this a bug? Regards, Milind -----Original Message----- From: Krzysztof Podejma [mailto:[hidden email]] Sent: 23 July 2007 20:07 To: [hidden email] Subject: Re: Logo on PDF reports step1) go to https://localhost:8443/partymgr/control/editpartygroup?partyId=Company and set Image Logo URL to full path to logo ie. <http://host/dir/logo.jpg> "http://host/dir/logo.jpg" step2) check if this image is accessible from ofbiz server Krzysztof 2007/7/23, Milind Pol <mailto:[hidden email]> <[hidden email]>: 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 |
Free forum by Nabble | Edit this page |