-1
我有一個非常糟糕的時刻執行從Internet Explorer的過程..我應該從工人角色過程調用Internet Explorer執行一些操作..但Internet Explorer正在執行沒有可見的接口...從工作角色開始的一切都沒有界面,爲什麼?
這是我的代碼:
psi.FileName = "D:\\Program Files\\Internet Explorer\\iexplore.exe";
psi.CreateNoWindow = true;
psi.ErrorDialog = false;
psi.UseShellExecute = false;
psi.WindowStyle = ProcessWindowStyle.Maximized;
psi.RedirectStandardOutput = false;
psi.RedirectStandardInput = false;
psi.RedirectStandardError = true;
psi.Arguments = fileLocation;
exeProcess = Process.Start(psi);
started = true;
exeProcess.PriorityClass = ProcessPriorityClass.RealTime;
你能幫我嗎?我需要使用可見的界面執行Internet Explorer。
爲什麼爲什麼爲什麼爲什麼爲什麼爲什麼爲什麼爲什麼!工作者角色就像一個窗口服務。在雲端。沒有用戶界面〜對人類可見。跆拳道你想做什麼,男人! *這篇文章正在殺死我* –
我試圖在服務器上執行一個進程。我只想在Internet Explorer上渲染一些東西,並製作一個打印屏幕。這是一個非常特殊的情況。 –
@ Pure.Krome - 只是一個小小的說明:工作者角色不是Windows服務 - 它是一個完整的Windows Server虛擬機,只是沒有運行IIS。但是你沒有暴露的用戶界面是正確的。 –