Word Parser SaveAs Error - 0x800A1554
-
7 martie 2012 09:49
Hi,
I'm a Word file parser.
I do cut-paste operation from this file.
Error code : 0x800A1554
System.Runtime.InteropServices.COMException was unhandled HelpLink="C:\\Program Files (x86)\\Microsoft Office\\OFFICE11\\1055\\wdmain11.chm#24940" Message="Bir dosya hatası oluştu.\nAşağıdakileri deneyin:\n* Diskin uygun yerleştirildiğinden emin olmak için disk sürücüsünü denetleyin.\n* Donanım sorunu olmadığından emin olmak için diski veya disk sürücüsünü denetleyin.\n* Ağ bağlantılarınızı denetleyin."Source="Microsoft Word"ErrorCode=-2146822828StackTrace:konum: Microsoft.Office.Interop.Word.DocumentClass.SaveAs(Object& FileName, Object& FileFormat, Object& LockComments, Object& Password, Object& AddToRecentFiles, Object& WritePassword, Object& ReadOnlyRecommended, Object& EmbedTrueTypeFonts, Object& SaveNativePictureFormat, Object& SaveFormsData, Object& SaveAsAOCELetter, Object& Encoding, Object& InsertLineBreaks, Object& AllowSubstitutions, Object& LineEnding, Object& AddBiDiMarks) konum: SoruAktarim.FormDoc2HTML.htmlConvert(Document oWordDoc, String filename) C:\net\SoruAktarim\ FormDoc2HTML.cs içinde: satır 1807 konum: SoruAktarim.FormDoc2HTML.Yapistir(String targetFilename, Boolean clearQN) C:\net\SoruAktarim\ FormDoc2HTML.cs içinde: satır 1154 konum: SoruAktarim.FormDoc2HTML.soruParcala() C:\net\SoruAktarim\ FormDoc2HTML.cs içinde: satır 1424 konum: SoruAktarim.FormDoc2HTML.button6_Click(Object sender, EventArgs e) C:\net\SoruAktarim\ FormDoc2HTML.cs içinde: satır 603 konum: System.Windows.Forms.Control.OnClick(EventArgs e) konum: System.Windows.Forms.Button.OnClick(EventArgs e) konum: System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) konum: System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) konum: System.Windows.Forms.Control.WndProc(Message& m) konum: System.Windows.Forms.ButtonBase.WndProc(Message& m) konum: System.Windows.Forms.Button.WndProc(Message& m) konum: System.Windows.Forms.Control.ControlNativeWindow.OnMessage( Message& m) konum: System.Windows.Forms.Control.ControlNativeWindow.WndProc( Message& m) konum: System.Windows.Forms.NativeWindow. DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) konum: System.Windows.Forms.UnsafeNativeMethods. DispatchMessageW(MSG& msg) konum: System.Windows.Forms.Application.ComponentManager. System.Windows.Forms. UnsafeNativeMethods. IMsoComponentManager. FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) konum: System.Windows.Forms.Application.ThreadContext. RunMessageLoopInner(Int32 reason, ApplicationContext context) konum: System.Windows.Forms.Application.ThreadContext. RunMessageLoop(Int32 reason, ApplicationContext context) konum: System.Windows.Forms.Application.Run(Form mainForm) konum: SoruAktarim.Program.Main() C:\net\SoruAktarim\Program.cs içinde: satır 17konum: System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) konum: System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) konum: Microsoft.VisualStudio.HostingProcess.HostProc. RunUsersAssembly() konum: System.Threading.ThreadHelper.ThreadStart_Context(Object state) konum: System.Threading.ExecutionContext.Run( ExecutionContext executionContext, ContextCallback callback, Object state) konum: System.Threading.ThreadHelper.ThreadStart() 
Öğrenmek,öğrenmek...
Toate mesajele
-
9 martie 2012 07:40Moderator
Hi Serdar Karaçay,
Thank you for posting.
Can you give us more details about your problem? For example:
1. What format do you want to save as via word application?
2. What is the type of your project?
3. What is the version of your Office application?
Besides, it will be appreciate if you can show us the demo code or share the project on the skydrive which can run well to reproduce this problem. I will try to reproduce it on my side.
Best Regards,
Bruce Song [MSFT]
MSDN Community Support | Feedback to us
- Editat de Bruce SongModerator 9 martie 2012 07:41
-
13 martie 2012 07:36Moderator
Hi Serdar Karaçay,
How about the problem on your side? Please try the code snippet on this site:
http://msdn.microsoft.com/en-us/library/microsoft.office.tools.word.document.saveas(v=vs.80).aspx
Actually, it works well on my side, I haven't encountered your error you encountered.
In addition, you can also refer to this thread to see whether it can help you:
http://stackoverflow.com/questions/298563/word-automation-in-c-error-while-using-saveas
Hope this can help you and just feel free to follow up after you have tried.
Best Regards,
Bruce Song [MSFT]
MSDN Community Support | Feedback to us
- Marcat ca răspuns de Bruce SongModerator 16 martie 2012 02:31