Add Company Logo to Sales Invoice

luamlluaml Member Posts: 27
edited 2005-05-30 in Navision Attain
Hi there, I am trying to add a picture (which is the company logo) to the sales invoice (Report 206 Sales - Invoice). Following are the steps which i have done to add the picture to the invoice:
1) Add a picture box at the PageLoop, Header (1) section
2) Then, I set SourceExpr = CompanyInfo.Picture

But when i compiled and tried to preview the report, the company logo never show up in the invoice. What have i miss here?

Help pls..... I am just very very new with this navision....

Thanks in advance.....

Comments

  • spycraftspycraft Member Posts: 66
    pls include the following in the OnAfterGetRecord of Sales Invoice Header data item of your report:

    CompanyInfo.get;
    //-- Add the following
    companyinfo.calcfields("Picture");
  • luamlluaml Member Posts: 27
    Thanks a lot ya.. It works perfectly well.. :D
  • stamronstamron Member Posts: 32
    I see how you can add the company picture to the Sales Invoice, but is there a way I can add it to other documents? I have several companies in the same database and they all have different logos.
  • Dean_AxonDean_Axon Member Posts: 193
    Hi Stamron,

    as long as your Logos are stored in the "Company Setup" then the correct logo will appear using this function.

    It is also possible to use multiple logos within the same company, all you need is a little bit of different code and a unique identifier.

    Regards

    Dean
    Remember: Keep it simple
Sign In or Register to comment.