N
nguyennx
Dear guru
+ I'm using C# 2005 and Visio library for converting from visio file to html
+. Infact my application work good in Window application, but when i move them
to WindowService I got the problem [The server threw an exception.
(Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)] when call function
Createpages for generating visio file to html file
+. This is my code
_vsoApp = new InvisibleAppClass();
_vsoSaveWeb = (VisSaveAsWeb) _vsoApp.SaveAsWebObject;
_vsoSettings = (VisWebPageSettings) _vsoSaveWeb.WebPageSettings;
_vsoSettings.QuietMode = int.MaxValue;
_vsoSettings.SilentMode = int.MaxValue;
_vsoSettings.TargetPath =
vsoFile.Replace(CommonVar.Conversion.VsoVar.VSO_EXT,
CommonVar.Conversion.VsoVar.RESULT_EXT);
vsoDoc = _vsoApp.Documents.Open(vsoFile);
_vsoSaveWeb.AttachToVisioDoc(vsoDoc);
_vsoSaveWeb.CreatePages(); => I got exception at here
+. Please talk to me What should i do now
Thanks
Nguyennx
+ I'm using C# 2005 and Visio library for converting from visio file to html
+. Infact my application work good in Window application, but when i move them
to WindowService I got the problem [The server threw an exception.
(Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)] when call function
Createpages for generating visio file to html file
+. This is my code
_vsoApp = new InvisibleAppClass();
_vsoSaveWeb = (VisSaveAsWeb) _vsoApp.SaveAsWebObject;
_vsoSettings = (VisWebPageSettings) _vsoSaveWeb.WebPageSettings;
_vsoSettings.QuietMode = int.MaxValue;
_vsoSettings.SilentMode = int.MaxValue;
_vsoSettings.TargetPath =
vsoFile.Replace(CommonVar.Conversion.VsoVar.VSO_EXT,
CommonVar.Conversion.VsoVar.RESULT_EXT);
vsoDoc = _vsoApp.Documents.Open(vsoFile);
_vsoSaveWeb.AttachToVisioDoc(vsoDoc);
_vsoSaveWeb.CreatePages(); => I got exception at here
+. Please talk to me What should i do now
Thanks
Nguyennx