[sw-issues] [Issue 113650] Can't save doc files as h tml - error 2074

2010-09-14 Thread krissce
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=113650





--- Additional comments from kris...@openoffice.org Tue Sep 14 11:13:34 
+ 2010 ---
Any progress on this issue? Do you need any more information? 

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@sw.openoffice.org
For additional commands, e-mail: issues-h...@sw.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[sw-issues] [Issue 113650] Can't save doc files as h tml - error 2074

2010-08-04 Thread es
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=113650


User es changed the following:

What|Old value |New value

 Assigned to|writerneedsconfirm|jsk





--- Additional comments from e...@openoffice.org Wed Aug  4 14:15:54 + 
2010 ---
Reassigned to JSK

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@sw.openoffice.org
For additional commands, e-mail: issues-h...@sw.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[sw-issues] [Issue 113650] Can't save doc files as h tml - error 2074

2010-08-04 Thread krissce
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=113650
 Issue #|113650
 Summary|Can't save doc files as html - error 2074
   Component|Word processor
 Version|OOo 3.2.1
Platform|PC
 URL|
  OS/Version|Windows 7
  Status|UNCONFIRMED
   Status whiteboard|
Keywords|
  Resolution|
  Issue type|DEFECT
Priority|P3
Subcomponent|code
 Assigned to|writerneedsconfirm
 Reported by|krissce





--- Additional comments from kris...@openoffice.org Wed Aug  4 13:59:08 
+ 2010 ---
I got an exception when trying to open and save doc files as HTML via CLI OO API
in C# .NET application. 

This error only appears when opening DOC files, other formats like DOCX, RFT
work fine. Also when I open DOC and save as text or pdf all works fine. Only
saving as html throws this exception. 


I get following exception with error code 2074:

unoidl.com.sun.star.task.ErrorCodeIOException

Server stack trace:

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage req
Msg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgDa
ta, Int32 type)
   at unoidl.com.sun.star.frame.XStorable.storeToURL(String sURL, PropertyValue[
] lArguments)

Code that throws en error in C#:
private static void ConvertOODocument(string inputFileName, string
outputFileName)
{
XComponentContext xContext = default(XComponentContext);

xContext = Bootstrap.bootstrap();

XMultiServiceFactory xFactory = default(XMultiServiceFactory);
xFactory = (XMultiServiceFactory)xContext.getServiceManager();

//Create the Desktop
unoidl.com.sun.star.frame.XDesktop xDesktop =
default(unoidl.com.sun.star.frame.XDesktop);
xDesktop =
(unoidl.com.sun.star.frame.XDesktop)xFactory.createInstance("com.sun.star.frame.Desktop");

//Open a new empty writer document
unoidl.com.sun.star.frame.XComponentLoader xComponentLoader =
default(unoidl.com.sun.star.frame.XComponentLoader);
xComponentLoader = (unoidl.com.sun.star.frame.XComponentLoader)xDesktop;
unoidl.com.sun.star.beans.PropertyValue[] arProps = new
unoidl.com.sun.star.beans.PropertyValue[1];
// Setting the flag for hiding the open document
arProps[0] = new PropertyValue();
arProps[0].Name = "Hidden";
arProps[0].Value = new uno.Any(true);
unoidl.com.sun.star.lang.XComponent xComponent =
default(unoidl.com.sun.star.lang.XComponent);
xComponent =
xComponentLoader.loadComponentFromURL(PathConverter(inputFileName), "_blank", 0,
arProps);

unoidl.com.sun.star.beans.PropertyValue[] saveProps = new
unoidl.com.sun.star.beans.PropertyValue[2];
saveProps[0] = new unoidl.com.sun.star.beans.PropertyValue();
saveProps[0].Name = "FilterName";
saveProps[0].Value = new uno.Any("HTML");

saveProps[1] = new PropertyValue();
saveProps[1].Name = "Overwrite";
saveProps[1].Value = new uno.Any(true);

try
{
((XStorable)xComponent).storeToURL(PathConverter(outputFileName),
saveProps); //Convert the file path into a OpenOffice path
}
catch (System.Exception)
{
throw;
}
finally
{
xComponent.dispose();
xDesktop.terminate();
}
}

Input file paths are converted with following method:
private static string PathConverter(string file)
{
try
{
file = file.Replace(@"\", "/");
return "file:///" + file;
}
catch (System.Exception ex)
{
throw ex;
}
}

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@sw.openoffice.org
For additional commands, e-mail: issues-h...@sw.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org