Navision 4.0 > Object Designer > Report

Gordon_Gecko
Gordon_Gecko Member Posts: 2
I want to place the logo of our company onto the invoice (Nr 206)

I tried to use the object designer and then the sections view. But how can I add an image?

Greetings Gecko

Comments

  • jhoek
    jhoek Member Posts: 216
    If the logo is stored in an external file, you could use an Image control. Preferably, you should store the graphic in a BLOB field in a table (e.g. Company Information?), and use a Picture control.
    Kind regards,

    Jan Hoek
    Product Developer
    Mprise Products B.V.
  • Tim81
    Tim81 Member Posts: 68
    I want to place the logo of our company onto the invoice (Nr 206)

    I tried to use the object designer and then the sections view. But how can I add an image?

    Greetings Gecko
    Object Designer is the right thing. In the top you see a button with a sledge. Push it. (Menu: View, Toolbox). Choose the right of the two symbols with the boat ('Picture Box') and make the box the way you want. Then go to the properties of this box and set the "SourceExpr" to "CompanyInfo.Picture".

    Then you have to add a little code to the "Sales Header"-DataItem. In the third line of the "OnAfterGetRecord"-Trigger you see:
    CompanyInfo.GET;
    
    .
    After that put this line:
    CompanyInfo.CALCFIELDS(Picture);
    

    Now it should work! (You have to store the picture in the "Company Information", of course.)
  • Tim81
    Tim81 Member Posts: 68
    jhoek wrote:
    If the logo is stored in an external file, you could use an Image control. Preferably, you should store the graphic in a BLOB field in a table (e.g. Company Information?), and use a Picture control.
    Could you please explain, how to show a external file with an image control? As far as I can remember you can only display a bitmap that is integrated in the software. Or am I of the mark?