Cha*_*tte 4 c# excel vsto
当我在 Excel 中记录宏以设置 FitToPagesTall = 1 并将 FitToPagesWide 保留为“自动”时,它将 FitToPagesWide 设置为 0。但是,在 c# 中(使用 VSTO)时会出现此错误。
sheet.PageSetup.FitToPagesWide=0;
有任何想法吗?尝试设置为NULL无济于事。
Cha*_*tte 6
找到了。
必须设置为 false。
sheet.PageSetup.FitToPagesWide = false;
归档时间:
15 年,1 月 前
查看次数:
6225 次
最近记录:
4 年,1 月 前