To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=83632 Issue #|83632 Summary|export of embedded obj ( word doc with macro ) crashes | openoffice Component|Word processor Version|OOo 2.3 Platform|All URL| OS/Version|All Status|NEW Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|mru Reported by|npower
------- Additional comments from [EMAIL PROTECTED] Wed Nov 14 12:06:38 +0000 2007 ------- First you need to ensure that the load-convert & convert-save options under Tools|Options|Load-Save|MS-Options are set to true [1] [1] I would imagine only the Winword option is necessary but in my case I have them all set to true load the document ( to be attached ) save via File|Save-as and in the file chooser rename the document, when the Nag about saving in opendocument or MS format appears indicate you wish to save in MS format, Office should crash So, why it crashes is quite easy ( unhandled exception ) When the embedded writer document is loaded ( and converted ) and hences saved to an openoffice stream an error is set ( in SwDocShell::SaveAs(..) sw/source/ui/app/docsh.cxx:695 - 'nVBWarning = SvxImportMSVBasic::GetSaveWarningOfMSVBAStorage( *this );' ) for the document shell. Later when attempting to write/save the embedded object the XStorable::storeToURL method sees the error and throws an exception, the exception is never caught see. ( in SvxMSExportOLEObjects::ExportOLEObject(..) svx/source/msfilter/msoleexp.cxx:275 ) so how to fix this a) imo the error in SwDocShell::SaveAs(..) sw/source/ui/app/docsh.cxx:695 should never be set, it serves no purpose ( and in the normal save-as case from the parent document it never set ) So I would suggest removing the call to SvxImportMSVBasic::GetSaveWarningOfMSVBAStorage( *this ); b) in SvxMSExportOLEObjects::ExportOLEObject(..) svx/source/msfilter/msoleexp.cxx:275 there should at the very least be a throw/catch around the call to storeToURL * what action should be taken on an execeptiom I don't know, the pattern in this method seem to be ignore all exceptions ( lots of examples of that ). So, at the very least as perhaps a temporary measure and to maintain the status-quo all exceptions resulting from the storeToURL call should be caught and ignored. --------------------------------------------------------------------- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
