Beispiel #1
0
        /// <summary>
        /// 写入列标题

        /// </summary>
        /// <param name="obj"></param>
        private void SetColtitle(FarPoint.Win.Spread.SheetView obj, int IntRow)
        {
            int    intTitle = 2000;
            int    temp     = 0;
            string strTitle = "“十五”年均增长率";

            for (int j = 2; j < obj.ColumnCount; ++j)
            {
                if (j == 8)
                {
                    obj.SetValue(IntRow, j, strTitle);
                    obj.SetColumnWidth(j, (strTitle.Length * 13));
                }
                else
                {
                    obj.SetValue(IntRow, j, intTitle);
                    intTitle++;
                }
                obj.AddSpanCell(IntRow, j, 2, 1);
            }
        }