Picutre/LOGO/Report Question

SavatageSavatage Member Posts: 7,142
edited 2005-08-25 in Navision Attain
We are a trying to be a fulfillment house for 2 internet companies.
I have created all the necessary forms, report n such.
Now I want to pretty it up a bit and add there logo's to the packing slip(picking ticket). I can easily add one standard pic but I need it to change depending on the company.
This special Picking ticket will only be used by them.
When Cust No = 1145 then logo1 else the other logo.
for example/
I have both logos in I:\logos\logo1.bmp & logo2.bmp
had trouble so I added a picture field to the customer card (just like the Item Picture) figuring OnAfterGetRecord of the order I can see which customer # it is and print out the corresponding logo.

But no logo appears..what did I do wrong here or how would you do it?

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Did you remember to do a CALCFIELDS("BLOB-field") before printing the logo?
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • SavatageSavatage Member Posts: 7,142
    yeah, I did a

    New field added to Customer Table:Logo(BLOB)

    on Picking Ticket
    ---
    Sales Header - Dataitem
    OnAfterGetRecord()
    Customer.CALCFIELDS(Logo);

    ](*,)

    i think it has to do with Getting the Customer No & matching that customer's picture (Logo).
    maybe I should just add it to the sales Header during the sell-to customer no. OnValidate
    .............. :-k
  • DenSterDenSter Member Posts: 8,304
    I think you forgot one thing Harry. Before you access field values of a customer record, you first have to have a record. So right before you calculate the logo, you have to GET the customer, like this:
    Sales Header - Dataitem
    OnAfterGetRecord()
    Customer.GET("Sales Header"."Sell-to Customer No.");
    Customer.CALCFIELDS(Logo);
    
    Try that and let me know if that does it.
  • SavatageSavatage Member Posts: 7,142
    it's always the smallest thing that causes the biggest headache..

    I did do the get already.
    so I went back to square 1 and it turns out there was a problem with the bitmaps not the Navision code.
    #-o
  • DenSterDenSter Member Posts: 8,304
    the bitmaps... of course.... why didnt I think of that #-o
Sign In or Register to comment.