Last post Aug 28, 2017 07:44 AM by Eric Du
Aug 27, 2017 08:19 AM|GauravParmar|LINK
I am having an issues in RDLC report.
issues is i want to print the paragraph repeatedly based on the input given.
if in input name,name1 is given then i would like to print paragraph for 2 times,
in first time i want to print name and remaining content and in second paragraph i would like to print 'name1'
if in input i give name1,name2,name3 then i would love to print paragraph for 3 time with name1 in first paragraph, name 2 in second paragraph, name3 in third paragraph.
if you can help me i would be glad.
Aug 28, 2017 07:44 AM|Eric Du|LINK
Through your description, I think your needs is could achieved by the following steps:
1. if your content is a string, I think you could split the name, name1, .... , then put them in the array.
2. set a global string variable, then for loop the array data, then put them in the variable.
3. then export the data in the rdlc report.
Here is a tutorial about how to create the rdlc report, please check:
How to create RDLC report step by step in ASP.Net using C# and VB.Net:
In this sample, you could create datatable as global variable, then for loop to add the data to this datatable, then bind the datatable to rdlc.