私はgridviewからExcelにエクスポートしています。ヘッダーテキストを書式設定してExcelでラップする方法はありますか? エクスポートするには、gridviewからエクセルにC#形式ヘッダーテキスト
grdCommon.Font.Size = FontUnit.XSmall;
grdCommon.GridLines = GridLines.Both;
grdCommon.Style["font-family"] = "Arial, Helvetica, sans-serif;";
grdCommon.HeaderStyle.HorizontalAlign = HorizontalAlign.Center;
grdCommon.HeaderStyle.ForeColor = System.Drawing.Color.White;
grdCommon.HeaderStyle.BackColor = System.Drawing.Color.FromArgb(80, 124, 209);
grdCommon.HeaderStyle.Font.Size = 8;
grdCommon.HeaderStyle.Width = 30;
としてコードをExcelにエクスポート私は私は、Excelのヘッダ列の書式を設定するために、以下のように追加することを試みました。しかし、Excelのヘッダーのdoesntは
grdCommon.HeaderRow.Style.Value = "word-break:break-all;word-wrap:break-word";
grdCommon.HeaderRow.Cells[0].Wrap = true;
をwrapedと私はgrdcommonは "エクセル" オブジェクトだと思うここで見るものから、この方法
grdCommon.HeaderRow.Style.Add("background-color", "#FFFFFF"); as
grdCommon.HeaderRow.Style.Add("word-wrap","true");
任意の提案...