Click here to Skip to main content
15,896,201 members
Home / Discussions / C#
   

C#

 
GeneralRe: Got a 512 error on calling acmStreamOpen() in c# Pin
Alegria_Lee22-Nov-10 1:11
Alegria_Lee22-Nov-10 1:11 
Questionheeeelp: saving and reading image C# and mySQL Pin
Jassim Rahma19-Nov-10 23:45
Jassim Rahma19-Nov-10 23:45 
AnswerRe: heeeelp: saving and reading image C# and mySQL Pin
thatraja20-Nov-10 1:34
professionalthatraja20-Nov-10 1:34 
AnswerRe: heeeelp: saving and reading image C# and mySQL Pin
Abhinav S20-Nov-10 1:53
Abhinav S20-Nov-10 1:53 
Questionget min and max from histogram [modified] Pin
pancakeleh19-Nov-10 22:35
pancakeleh19-Nov-10 22:35 
QuestionGhostScript Pin
Kevin Marois19-Nov-10 12:08
professionalKevin Marois19-Nov-10 12:08 
AnswerRe: GhostScript Pin
Keith Barrow21-Nov-10 1:06
professionalKeith Barrow21-Nov-10 1:06 
QuestionGetting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
Kushagra Tiwari19-Nov-10 3:13
Kushagra Tiwari19-Nov-10 3:13 
Hi all,

I have tried to open an existing Word 2k10 document in mail merge format.
private object tArg = true;
private object fArg = false;
private object wOriginalFormat = Microsoft.Office.Interop.Word.WdOriginalFormat.wdOriginalDocumentFormat;

sourceDoc = word.Documents.Open(ref oSourceFile,//1The name of the document (paths are accepted).
                                                ref mArg,//2True to display the Convert File dialog box if the file isn't in Microsoft Word format.
                                                ref mArg,//3True to open the document as read-only. 
                                                ref mArg,//4True to add the file name to the list of recently used files at the bottom of the File menu.
                                                ref mArg,//5The password for opening the document.
                                                ref mArg,//6The password for opening the template. 
                                                ref mArg,//7Controls what happens if FileName is the name of an open document. True to discard any unsaved changes to the open document and reopen the file. False to activate the open document.
                                                ref mArg,//8The password for saving changes to the document. 
                                                ref mArg,//9The password for saving changes to the template.
                                                ref wdOpenFormatAllWord,//10The file converter to be used to open the document. Can be one of the following WdOpenFormat constants
                                                ref fArg,//11The document encoding (code page or character set) to be used by Microsoft Word when you view the saved document.
                                                ref mArg,//12True if the document is opened in a visible window. The default value is True. 
                                                ref mArg,//13Specifies whether to open the conflict file for a document with an offline conflict.
                                                ref mArg,//14True to repair the document to prevent document corruption.
                                                ref mArg,//15True to skip displaying the Encoding dialog box that Word displays if the text encoding cannot be recognized. The default value is False.
                                                ref mArg);//16Indicates the horizontal flow of text in a document. The default value is wdLeftToRight.


and then added some tables in it and then save it and close it using .
sourceDoc.Save();
     ((Microsoft.Office.Interop.Word._Document)sourceDoc).Close(ref tArg, ref wdOriginalFormat, ref fArg);


I am getting an exception on doing the close and HRESULT points to 0x800A140C. Can somebody suggest me any solution for this
AnswerRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
Luc Pattyn19-Nov-10 3:41
sitebuilderLuc Pattyn19-Nov-10 3:41 
AnswerRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
Manfred Rudolf Bihy19-Nov-10 3:42
professionalManfred Rudolf Bihy19-Nov-10 3:42 
GeneralRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
Kushagra Tiwari19-Nov-10 9:47
Kushagra Tiwari19-Nov-10 9:47 
AnswerRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
Ian Shlasko19-Nov-10 10:03
Ian Shlasko19-Nov-10 10:03 
AnswerRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
Kushagra Tiwari22-Nov-10 0:17
Kushagra Tiwari22-Nov-10 0:17 
GeneralRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
GuzmanJ2-Mar-11 10:37
GuzmanJ2-Mar-11 10:37 
AnswerRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
gmr_evgen15-Aug-11 14:08
gmr_evgen15-Aug-11 14:08 
QuestionMoved from Q/A (originally posted by dmpinusa): Centralizing Exception Handling Code Pin
#realJSOP19-Nov-10 1:40
professional#realJSOP19-Nov-10 1:40 
AnswerRe: Moved from Q/A (originally posted by dmpinusa): Centralizing Exception Handling Code Pin
Luc Pattyn19-Nov-10 1:50
sitebuilderLuc Pattyn19-Nov-10 1:50 
GeneralRe: Moved from Q/A (originally posted by dmpinusa): Centralizing Exception Handling Code Pin
dpminusa20-Nov-10 13:51
dpminusa20-Nov-10 13:51 
GeneralRe: Moved from Q/A (originally posted by dmpinusa): Centralizing Exception Handling Code Pin
dpminusa20-Nov-10 14:54
dpminusa20-Nov-10 14:54 
GeneralRe: Moved from Q/A (originally posted by dmpinusa): Centralizing Exception Handling Code Pin
Luc Pattyn20-Nov-10 16:02
sitebuilderLuc Pattyn20-Nov-10 16:02 
GeneralRe: Moved from Q/A (originally posted by dmpinusa): Centralizing Exception Handling Code Pin
dpminusa20-Nov-10 20:06
dpminusa20-Nov-10 20:06 
AnswerRe: Moved from Q/A (originally posted by dmpinusa): Centralizing Exception Handling Code Pin
Pete O'Hanlon19-Nov-10 2:34
mvePete O'Hanlon19-Nov-10 2:34 
GeneralRe: Moved from Q/A (originally posted by dmpinusa): Centralizing Exception Handling Code Pin
dpminusa20-Nov-10 14:14
dpminusa20-Nov-10 14:14 
AnswerRe: Moved from Q/A (originally posted by dmpinusa): Centralizing Exception Handling Code Pin
_Erik_19-Nov-10 3:46
_Erik_19-Nov-10 3:46 
GeneralRe: Moved from Q/A (originally posted by dmpinusa): Centralizing Exception Handling Code Pin
dpminusa20-Nov-10 14:18
dpminusa20-Nov-10 14:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.