本帖最后由 枫原万叶 于 2022-11-9 16:36 编辑
这个打开按钮可以设置打开固定路径吗,保存也是;目前做的尝试有
FarPoint.Win.Spread.Design.FpSpreadDesigner fpSpreada = new FarPoint.Win.Spread.Design.FpSpreadDesigner();
fpSpreada.Save += Save;
private void Save(object sender, FarPoint.Win.Spread.Design.SaveArgs e)
{
SaveFileDialog dialog = new SaveFileDialog();
dialog.InitialDirectory = @"C:\Users\puxi\Desktop\exportFile";
if (dialog.ShowDialog() == DialogResult.OK)
{
fpSpread1.SaveExcel(dialog.FileName);
}
}
这样可以打开自定义的对话框,但是仍然会继续执行设计器的保存代码,会再弹出一个对话框,请教怎么处理,感谢
|
|