Picutre/LOGO/Report Question

Savatage
Member Posts: 7,142
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?
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?
0
Comments
-
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)0
-
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
.............. :-k0 -
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.0 -
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.
#-o0 -
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions