Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/324.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何使用epplus库设置excel工作表的缩放级别?_C#_Epplus - Fatal编程技术网

C# 如何使用epplus库设置excel工作表的缩放级别?

C# 如何使用epplus库设置excel工作表的缩放级别?,c#,epplus,C#,Epplus,它看起来很基本,但我无法找到允许我设置图纸缩放级别的epplus属性。我已尝试以下属性: workSheet.PrinterSettings.Scale 但它没有设置excel工作表的缩放级别。期待你的建议 您需要通过工作表视图访问属性,如下所示: worksheet.View.ZoomScale = 250; 在这种情况下,上面将其设置为250%的比例

它看起来很基本,但我无法找到允许我设置图纸缩放级别的epplus属性。我已尝试以下属性:

workSheet.PrinterSettings.Scale

但它没有设置excel工作表的缩放级别。期待你的建议

您需要通过工作表
视图访问属性,如下所示:

worksheet.View.ZoomScale = 250;
在这种情况下,上面将其设置为250%的比例