The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
IWorksheet.GetRowHeightInPixels() reports a non-zero value for rows that are hidden. While this may be intended, it is different to the behaviour of Excel automation and to the behaviour of IWorksheet.GetColumnWidthInPixels() which does report zero for hidden columns.
While the IWorksheet.IsRowVisible() does report correctly, I believe the consequence of this error is that shape top and height dimensions are incorrect when rows are hidden (see other message for a report of this issue).
I think that the solution to this problem is to change line 191 of RowRecord.cs from:
return m_usHeigth;
to:
return (m_bZeroHeight ? (ushort)0 : m_usHeigth);
This has the effect of returning a height of zero if the row record indicates that the row should have no height but does so in a way that does not destroy the height of the row in case the row is restored.
MWMelba Winshia Syncfusion Team December 14, 2006 09:55 AM UTC
Hi Bill,
Thank you for your valuable suggestion. I will forward this to the development team. Please let me know if you have any other questions.