客户的Excel有问题,让他重装......

解决方案 »

  1.   

    我觉得不应该是客户端的问题,因为你生成excel的工作全部是在服务器上做的,应该和客户端没关系
      

  2.   

    服务端也是客户的电脑,我这里有两台不同的服务器测试过,zoom属性都可以设置
      

  3.   

    不能设置 pageSetup Class中的属性,是否与权限有关?
      

  4.   

    或者是客户端 装的Excel没装全
      

  5.   

    与客户端的Excel的版本有什么关系,你是指客户的Excel的版本吗?
      

  6.   

    我想是zoom=false这样的语句有问题,是吗?
      

  7.   

    好像不是吧,我查到这样的资料
    You have to "use" the Win32::OLE::Variant module    use Win32::OLE::Variant;and then use Variant(VT_BOOL, 0) as the "False" value:    $PageSetup->{Zoom} = Variant(VT_BOOL, 0);The reason is that Zoom takes *either* a floating point zoom factor, *or*
    a boolean False value.  Normally 0 works as False, but in this instance
    Excel interprets it as a zoom factor of 0, which of course doesn't make
    any sense.  I would actually consider this a mis-feature of Excel. :-)但是在C#中应该如何写呢?