agree with yqdeng, every time you invoke a web method, a new instance of webservice class is created>>>>在同一个webmethod中太浪费效率了,没有办法可以重复使用上个web method中生成的对象么 you could try to use a static member (threading problem) or use EnableSession and save the object in a session variable(potential threading model problem for COM object like Excel)
在同一个webmethod中太浪费效率了,没有办法可以重复使用上个web method中生成的对象么
you could try to use a static member (threading problem) or use EnableSession and save the object in a session variable(potential threading model problem for COM object like Excel)