Print sales comments on one line

poppins
Member Posts: 647
Hi everyone,
I have several Sales comments to print ion a report.
The customer doesn't want each comment on a separate line but to combine lines whenever it is possible to use the whole space.
Any idea on how to do that?
Thanks in advance
I have several Sales comments to print ion a report.
The customer doesn't want each comment on a separate line but to combine lines whenever it is possible to use the whole space.
Any idea on how to do that?
Thanks in advance

0
Answers
-
Loop through all comments for each Sales Line and concatenate them into the same Text variable.
Add your Text variable as a field of the Sales Line DataItem.
Make sure that the cell you put the value of your Text variable into on the RDLC layout has CanGrow=True.0 -
kaspermoerch wrote: »Loop through all comments for each Sales Line and concatenate them into the same Text variable.
Add your Text variable as a field of the Sales Line DataItem.
Make sure that the cell you put the value of your Text variable into on the RDLC layout has CanGrow=True.
OK, but the text variable has a limited lenght (1024 I think).What if the concatenated text length is more than that?0 -
kaspermoerch wrote: »Loop through all comments for each Sales Line and concatenate them into the same Text variable.
Add your Text variable as a field of the Sales Line DataItem.
Make sure that the cell you put the value of your Text variable into on the RDLC layout has CanGrow=True.
OK, but the text variable has a limited lenght (1024 I think).What if the concatenated text length is more than that?
Limited Length has been removed from NAV2013 and up. Just declare your variable and leave the Length property blank.0 -
kaspermoerch wrote: »kaspermoerch wrote: »Loop through all comments for each Sales Line and concatenate them into the same Text variable.
Add your Text variable as a field of the Sales Line DataItem.
Make sure that the cell you put the value of your Text variable into on the RDLC layout has CanGrow=True.
OK, but the text variable has a limited lenght (1024 I think).What if the concatenated text length is more than that?
Limited Length has been removed from NAV2013 and up. Just declare your variable and leave the Length property blank.
If you're still bound to use 1024 text variables try to use populate a array of texts and concatenate them in your report.Austrian NAV/BC Dev0 -
Adding a Text variable of Array and make it concatenate is an option, as i have tested and works fine!!!Software Developer,
Archerpoint India Pvt. Ltd,Chennai.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