Excelセルに非常に長いコメントがあります。
このコメントを読む必要があります。
Microsoft.Office.Interop.Excel.Comment comment = ws.get_Range(ws.Cells[1, Constants.HIDDEN_DATA_COL], ws.Cells[1, Constants.HIDDEN_DATA_COL]).Comment;
if(comment!=null)
{
Microsoft.Office.Interop.Excel.Characters chars = comment.Shape.TextFrame.Characters(System.Type.Missing, System.Type.Missing);
string theText = chars.Text;
MessageBox.Show(theText); //**truncated!**
}
文字の読み込みはループする必要があると読みましたが、文字の長さがわからない場合はどうすればよいのでしょうか。