Click here to Skip to main content
15,886,075 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi I am creating an Invoice in report data (rdlc), I want to put vertical line between the columns like

Sl | Description | Qty | Rate | Amount
| | | |

My report contains header and footer section also.
For vertical line I used line control, it perfectly works on the first page. But line is not visible on the second page. I want the line control to be visible in each page.

Kindly suggest how to resolve.

Thanks
Amit

What I have tried:

I tried by using line control but it doesnot be displayed on the second page
Posted
Updated 28-Aug-16 1:49am
Comments
abdul subhan mohammed 15-Aug-16 4:11am    
if you just wanna line to be appear on all pages, then continue drag that line in detail section.
Amit_gupta 21-Aug-16 16:27pm    
My line control height is equal to the height of detail section. However I also applied repeatwith property but nothing happens.
Amit_gupta 21-Aug-16 16:31pm    
Here is the link of screenshot of what the actual problem is

http://i.stack.imgur.com/tVV4F.png

http://i.stack.imgur.com/ZJOGU.png

However, repeatwith property is even not working with rectange control also. Visual studio team must have to look over this issue.

Moreover, I had also noticed that the row header is also not visible on the next page as I tick the checkbox of repeat row header ... on the table property section. I think I had to put the row header in the header section to get repeated on the further pages.

Well after doing a lot of research I had concluded to use alternate method to acihieve this. I want to share this to have an alternate way. What I tried is :

1. Donot use line control

2. Putting border on the left and right side each column.

3. Fill the remaing table with the blank row to touch the footer section and fill the entire body section.

4.Suppose 1 page takes 17 rows to get fill and if the row is having greater than 17 suppose 20 then (17 - (20-17)) i.e 14 blank rows fill be filled

5. If table is having 5 rows then (17-5) i.e 12 blank rows will be filled.

I had achieved by trying this logic that can't be achieved through line control but I am not satisfying with this.
 
Share this answer
 
ok, i got your problem after getting the images.

I too have faced the same problem.

so, what I did is?

I have fixed number of line on each on page, like on your page, its 17 lines.

In database, stored procedure, i count no.of rows, if its less, like 10 then i have added more 7 lines, and suppose if its 18 lines, then i will divide it by 17, reminder is 1 then i will add more 16 lines.

NOTE: I haved added empty rows in the table using union all, in stored procedure.

And this solved my problem...

Hope you understood.


All the best!
 
Share this answer
 
Comments
Amit_gupta 29-Aug-16 6:13am    
Thanks abdul

I had already implemented this process and I had already shared my alternate solution. It just works for the time being but it could also be a better solution with a line control with repeatwith property. Visual studio team must rectify this issue.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900