lkosson / reportviewercore

Recompilation of Microsoft.ReportViewer for .NET Core 3.1+
427 stars 123 forks source link

Problem repeating column header for each pages #161

Closed An3rAndr0s closed 12 months ago

An3rAndr0s commented 12 months ago

Hi, I was unable to repeat column headers on each pages. Do you know some issue about this ?

I have a report made for a .NetFramework 4.8 WinForms app and working. Now I have ported the report in a .NetCore with WinForms and doesn't work.

I tried to rebuild the table from scratch. Usually, to active column header repeating, is necessary only active the check box in the tablix configuration. But nothing working.

lkosson commented 12 months ago

Can you reproduce the behavior using ReportViewerCore.Sample.WinForms project in this repo?

An3rAndr0s commented 12 months ago

Hi Lukasz, In ReportViewerCore.Sample.WinForms project I have added some ReportItems in Report.cs to add many rows to the report. In Report.rdlc by Design tool I have set "RepeatColumnHeaders" & "FixedColumnHeaders" to true. But the result is a 2 pages report where in the second page ColumnsHeaders are not present. update.zip image

lkosson commented 12 months ago

I see. Indeed it is broken, while I'm 100% sure it worked correctly about one year ago.

lkosson commented 12 months ago

Now I get same behavior (missing column headers on subsequent pages) when using original Report Viewer on .NET Framework 4.7.2. I begin to question my own sanity.

lkosson commented 12 months ago

Set it here and it will work:

img

An3rAndr0s commented 12 months ago

Hi Lukas, is so strange. I had checked and tested every advanced settings of Row and Column Groups moving the RepeatOnNewPage flags yet, but always with the same problem in the report. Now I have rebuild from scratch the tablix, changed the setting in the config page of tablix and enable "RepeatOnNewPage" in the advanced configuration of row groups and problem is disappeared.

Thanks for the support, please excuse me for time loosed for help me.