![]() ![]() ![]() If another field has to be added to the header, the code has to be extended in a straightforward manner. These variables are filled with the corresponding values from the Fields collection in the function SetFields: In some cases (customer address), arrays are more easy to handle. In the first part, for every field, which is needed in the report header, a public shared variable is declared. Now lets take a look at the Code of the report. The main difference is here, that all fields are evaluated in the SetFields function and there is no need, to list the fields explicitly as a concatenated string. This function call is as usual done in the hidden property of the textbox: But the main advantage is here, that it contains only one function call to a customer code function. The layout contains the usual outer list for the pagebreak between each sales order (see standard reports).įurthermore, there is one hidden textbox (yellow) at the beginning of the NewPage tablix, which looks at first glance quite similar to the setdata textbox of the standard report 205. This is a simplified dataset for printing a sales order, which doesn’t contain any peculiarities. So how can we accomplish this scenario in an easy way?Īs an example, I designed a sample report, which reveals the basic principles of the procedure. But the general case is the print of more than one sales order, may be with number of copies per sales order, too, but that doesn’t increase the complexity of the problem. This is not too bad, if you always print only one sales order at a time. One of the problems in this kind of reports is, that you want to print some fields of the sales header in the report header, which is normally not a dynamic header, but prints the same values on every page, by default. So I tried to find a more elegant way to accomplish this problem.Ĭonsider report 205, Sales Order, of NAV 2015. From the beginning I was not very satisfied with this Getdata-Setdata mechanism, which is proclaimed the standard way of displaying field values from the report body in the report header or footer of a NAV RDLC report layout. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |