RT
像别人设置页脚的时候xSt.PageSetup.CenterFooter 
我就点不出来PageSetup
 Microsoft.Office.Interop.Excel.ApplicationClass Mylxls = new Microsoft.Office.Interop.Excel.ApplicationClass();
                
                Mylxls.Application.Workbooks.Add(true);
                Mylxls.Cells.Font.Size = this.textBox1.Text;   //设置默认字体大小
                Mylxls.Cells.Font.Name = this.comboBox4.Text;
                Mylxls.Cells.RowHeight = this.textBox4.Text;
                //设置标头
                Mylxls.Caption = caption;
我也是这样写的啊