We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Row height value has non-zero on hidden rows

Thread ID:

Created:

Updated:

Platform:

Replies:

53407 Dec 13,2006 11:55 AM UTC Dec 14,2006 09:55 AM UTC WinForms 2
loading
Tags: XlsIO
Bill Seddon
Asked On December 13, 2006 11:55 AM UTC

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).

Bill Seddon

Bill Seddon
Replied On December 13, 2006 07:24 PM UTC

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.

Melba Winshia [Syncfusion]
Replied On 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.

Thanks,
Melba

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;