Home › Forums › WinForms controls › Xceed Grid for WinForms › Change row height on RepeatOnEachPage
-
AuthorPosts
-
#15967 |
Hello All…. This is my first post so here go’s….
I have a grid which gets printed as a report. One of the rows is used as a heading which has a height of 32 instedad of the default 16. I have set this row to ReportOnEachPage which works great except when it is printed on any page after the first page the row height has changed back to the size 16.
Can anyone suggest a way around this issue…
Thanks
paul
Imported from legacy forums. Posted by Kevin (had 2918 views)
I was not able to reproduce this issue. Could you suggest a way to do so (code, …)?
Imported from legacy forums. Posted by CharlesB (had 239 views)
Sure…
i’m adding a row which will be used as a heading like this;
Dim MyRow4 As Xceed.Grid.DataRow = MyGrid.DataRows.AddNew()MyRow4.Cells(0).Value = “Type”
MyRow4.Cells(1).Value = “Month”
MyRow4.Cells(2).Value = “Total MIF To Date”
MyRow4.Cells(3).Value = “% Growth”
MyRow4.Cells(4).Value = “Total Revenue”
MyRow4.Cells(5).Value = “% Growth”
MyRow4.Cells(6).Value = “Invoiced TDV”
MyRow4.Cells(7).Value = “% Growth”
MyRow4.Cells(8).Value = “AVG Invoiced TDV”
MyRow4.Cells(9).Value = “AVG C/Cost”
MyRow4.Height = 32
MyRow4.ReportStyle.RowHeight = 32
MyRow4.ReportStyle.RepeatOnEachPage = True
MyRow4.EndEdit()Then to print the grid I do this;
Dim PrintDoc As PrintDocument = MyReport.CreatePrintDocumentPrintDoc.PrinterSettings = printerSettings
PrintDoc.Print()Any ideas?…. I’ve only been using this grid for a few weeks so there is a good chance I’ve messed up somewhere ;o) however it does repeat ok… just this row height goesback to size 16 which is what the rest of the rows are set to.
Paul
Imported from legacy forums. Posted by Kevin (had 333 views)
From the documentation:
“The value of the RepeatOnEachPage property will be ignored if it is set on the RowReportStyle of one of the GridReportStyle.DataRows in a GridReportStyle.”
Imported from legacy forums. Posted by CharlesB (had 3977 views)
-
AuthorPosts
- You must be logged in to reply to this topic.