How do you use Excel server-side?

后端 未结 7 1288
走了就别回头了
走了就别回头了 2020-12-06 02:00

A client wants to \"Web-enable\" a spreadsheet calculation -- the user to specify the values of certain cells, then show them the resulting values in other cells.

(T

7条回答
  •  星月不相逢
    2020-12-06 02:20

    It is possible, but not advisable (and officially unsupported).

    You can interact with Excel through COM or the .NET Primary Interop Assemblies, but this is meant to be a client-side process.

    On the server side, no display or desktop is available and any unexpected dialog boxes (for example) will make your web app hang – your app will behave flaky.

    Also, attaching an Excel process to each request isn't exactly a low-resource approach.

    Working out the black box and re-implementing it in a proper programming language is clearly the better (as in "more reliable and faster") option.

    Related reading: KB257757: Considerations for server-side Automation of Office

提交回复
热议问题