Windows Service 打开excel
我在Server2003中 开发的 Windows Service 调用office组件打开excel的时候不报错,也打不开;当我打开任务管理器的时候,看到在后台启动了很的EXCEL.EXE进程,这个应该是我的Windows Service 启动的;这是怎么回事?请问怎么用Windows Service 怎么打开excel呢?
[解决办法]
打开excel文件会打开一些GUI界面,这在windows service是不允许的,所以不要用windows service打开excel文件,
[解决办法]
可以用odbc,把excel当做数据库来读,