NAV RDL Report HTML
mik
Member Posts: 79
Hello,
I'm using HTML in my Reports so I do not need to position 50 textfields in my header section. Instead I create my data by code with the caption and the value.
So far so good ...
What I try now is to get a table style Caption/Value list. I have a function where I place an amount of spaces after my caption that the values are aligned properly. This only works with non propotional fonts like Courier New. The problem is that most customers do not like to use non propotional fonts
Is there any chance to create such a table style list with the small amount of formatting options we have in reporting?
<Caption1>:_____________<Value1>
<Caption2>:_____________<Value2>
....
I'm using HTML in my Reports so I do not need to position 50 textfields in my header section. Instead I create my data by code with the caption and the value.
So far so good ...
What I try now is to get a table style Caption/Value list. I have a function where I place an amount of spaces after my caption that the values are aligned properly. This only works with non propotional fonts like Courier New. The problem is that most customers do not like to use non propotional fonts
Is there any chance to create such a table style list with the small amount of formatting options we have in reporting?
<Caption1>:_____________<Value1>
<Caption2>:_____________<Value2>
....
With kind regards
mik
0
Answers
-
Since you generate HTML maybe you should think of using <table> instead of plain alignment?
For example like this (not sure if working, but shows principle I hope):IF Rec.FINDSET THEN BEGIN HTMLText := '<table class="Records" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">'; HTMLText += ' <tbody>'; HTMLText += ' <tr>'; HTMLText += ' <th width="20%" valign="top" align="left">Caption</th>'; HTMLText += ' <th width="80%" valign="top" align="left">Value</th>'; HTMLText += ' </tr>'; REPEAT HTMLText += ' <tr>'; HTMLText += ' <td valign="top" align="left">' + Rec.CaptionField + '</td>'; HTMLText += ' <td valign="top" align="left">' + Rec.ValueField + '</td>'; HTMLText += ' </tr>'; UNTIL Rec.NEXT = 0; HTMLText += ' </tbody>'; HTMLText += '</table>'; END;It is hard to swim against self bloodstream... (c) Old, experienced kamikadze.0 -
Tables are not working in RDL Reporting I already tried this
With kind regards
mik0 -
Hi,
I use HTML in reports.
I have tried with <b> but I don't imagine why should not work with tables.
You need to change placeholder property.
Please view this video: https://msdn.microsoft.com/en-us/dynamics/nav/dn833423.aspx
Regards,
parm0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K 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
- 326 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