您好,您的项目没问题,V12在4.6.1下是可以使用的。
应该还是计算机环境问题,我的代码如下
- namespace WindowsFormsApplication1
- {
- partial class Form1
- {
- /// <summary>
- /// 必需的设计器变量。
- /// </summary>
- private System.ComponentModel.IContainer components = null;
- /// <summary>
- /// 清理所有正在使用的资源。
- /// </summary>
- /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
- #region Windows 窗体设计器生成的代码
- /// <summary>
- /// 设计器支持所需的方法 - 不要修改
- /// 使用代码编辑器修改此方法的内容。
- /// </summary>
- private void InitializeComponent()
- {
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
- this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(FarPoint.Win.Spread.LegacyBehaviors.None, ((System.IO.MemoryStream)(resources.GetObject("resource1"))));
- this.fpSpread1_Sheet1 = this.fpSpread1.Sheets[0];
- ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit();
- this.SuspendLayout();
- //
- // fpSpread1
- //
- this.fpSpread1.AccessibleDescription = "";
- this.fpSpread1.BackColor = System.Drawing.SystemColors.Control;
- this.fpSpread1.Location = new System.Drawing.Point(78, 23);
- this.fpSpread1.Name = "fpSpread1";
- this.fpSpread1.RightToLeft = System.Windows.Forms.RightToLeft.No;
- this.fpSpread1.Size = new System.Drawing.Size(558, 196);
- this.fpSpread1.TabIndex = 0;
- //
- // Form1
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(726, 261);
- this.Controls.Add(this.fpSpread1);
- this.Name = "Form1";
- this.Text = "Form1";
- ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit();
- this.ResumeLayout(false);
- }
- #endregion
- private FarPoint.Win.Spread.FpSpread fpSpread1;
- private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
- }
- }
复制代码 |