使用Windows Service或Conseoe应用程序解析Doc文件(.doc/.docx)文件 [英] Doc file (.doc/.docx) file parsing using window service or consoe application
问题描述
如果可能的话,我想从doc文件中进行格式化,否则请保留此内容,让我们提出原始问题.
I want to scrap from doc file with formatting if possible, if not then please leave this, lets come to original question.
我想从doc/docx文件中删除数据,因为我编写了代码然后制作了exe.
I want to scrap data from doc/docx file for that i wrote code and then made exe.
当我执行该exe时,效果很好,并给了我预期的结果,但是当我尝试从wind sevice调用该exe时
when i am executing that exe, that work quite well and give me Expected result, but when i am trying to call that exe fromwind sevice
显示错误.
我将此代码用于exe调用...
I used this code for exe calling...
将objProc变暗为新Process()
objProc.EnableRaisingEvents = False
objProc.StartInfo.FileName ="caCVParsing.exe"
objProc.StartInfo.WorkingDirectory ="E:/Projects/WEB/uploads/CVParser/"
objProc.StartInfo.WindowStyle = ProcessWindowStyle.Minimized
objProc.Start()
objProc.WaitForExit()
objProc.Close()
Dim objProc As New Process()
objProc.EnableRaisingEvents = False
objProc.StartInfo.FileName = "caCVParsing.exe"
objProc.StartInfo.WorkingDirectory = "E:/Projects/WEB/uploads/CVParser/"
objProc.StartInfo.WindowStyle = ProcessWindowStyle.Minimized
objProc.Start()
objProc.WaitForExit()
objProc.Close()
请帮助我...
推荐答案
运行Window服务时发现此错误
I found this error when Window service runs
服务无法启动. System.ComponentModel.Win32Exception:系统找不到wsCVParsing.Service1.ExeCaller()处System.Diagnostics.Process.Start()处System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)指定的文件. 在E:\ Projects \ wsCVParsing \ Service1.vb中的E:\ Projects \ wsCVParsing \ Service1.vb:第28行中System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object在E:\ Projects \ wsCVParsing \ Service1.vb:第6行中状态)
Service cannot be started. System.ComponentModel.Win32Exception: The system cannot find the file specified at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at wsCVParsing.Service1.ExeCaller() in E:\Projects\wsCVParsing\Service1.vb:line 28 at wsCVParsing.Service1.OnStart(String[] args) in E:\Projects\wsCVParsing\Service1.vb:line 6 at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)
预先感谢
BL卡瓦萨拉(BL Karwasara)
BL Karwasara
mydreamed@gmail.com
mydreamed@gmail.com
blkarwasara@hotmail.com
blkarwasara@hotmail.com
这篇关于使用Windows Service或Conseoe应用程序解析Doc文件(.doc/.docx)文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!