Address formatting in sales invoice RDLC report

monikarbb
Member Posts: 3
Hello,
I am fairly new to programming, so it can be my questions will sound silly:)
A customer requested to hide the country name from the customer address in the header if the country code = x.
It is a copy of a RDLC layout for the standard sales invoice report I am working with.
Any idea for a newbie like on how to do that ?
I am fairly new to programming, so it can be my questions will sound silly:)
A customer requested to hide the country name from the customer address in the header if the country code = x.
It is a copy of a RDLC layout for the standard sales invoice report I am working with.
Any idea for a newbie like on how to do that ?

0
Answers
-
The address should get formatted using codeunit 365 Format Address before sent to RDLC. Try customizing it there, e.g. using event OnBeforeFormatAddress.
Chances are, though, that the address data incorrectly uses a country code for the home country (the country the company operates in). This should get fixed in the corresponding master data records.
0 -
How addresses print across the various document reports is controlled by the address format setup between "General Ledger Setup" and "Countries/Regions". Typically no report layout changes are needed. Unless you need to move where it prints.
The report's dataset populates an 8 line array. Which the layout prints. The above setup determines how that array is populated. The standard setup includes several options including "custom".
There are no bugs - only undocumented features.1 -
thanks for input. I have changed the countries/regions setup for the home country and it works.
Now I am facing the same when the customer address from sales invoice header is printed - there I onlu see the country name and the rest af the address is missing.. I woiuld like to get rid of the country name from there as well0 -
This should work for all addresses.There are no bugs - only undocumented features.0
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