Server Word automation permissions (some answers and some questions)

前端 未结 1 1320
青春惊慌失措
青春惊慌失措 2021-01-29 00:39

I am attempting to use word automation to count the number of pages in a word document. So far i have faced these errors:

  1. Retrieving the COM class factory

1条回答
  •  遥遥无期
    2021-01-29 00:59

    A solution to avoid having the user logged 24/7 is to impersonate the account and load the user profile programmatically (for this the account needs to a local administrator) before calling Word.

    Another solution is to build a windows service that does the same.

    0 讨论(0)
提交回复
热议问题