So I have a c# word interop program to open a document silently (the visible attribute is set to false) and check for certain words in the document which works fine. The documents are processed in the background, saved and closed and the user doesn't have to worry about it. The problem is that if the user has word open and then runs the program, the document appears in word and stays there. How do I prevent it from being shown from the user if they have word open already? At the very least, it should auto close the document but keep word open.
Word Interop - trying to keep the document hidden but opening word shows the document
555 Views Asked by CephDigital At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in MS-WORD
- Cannot open xml file
- How to programatically implement Columns in page layout as of in MS Word using python-docx
- In which field the cursor is? (ms word, vba)
- load word file (.docx) in richtextbox
- Replace hyperlink with text from linked document
- Embedding Image in Microsoft Word using ColdFusion
- Using array in for cycle in Word Interop
- Runtime Error '5941' The Requested Member of Collection Does Not Exist
- Insert a photo to a Word bookmark from an Excel range, VBA
- How to choose a different header image in MS Word 2013 using a macro/button
- Can we edit hyperlink in Restrict editing mode in Word 2013?
- Macro in Word to Underline each paragraph in document less than X characters long
- Need to capture current scroll position (not cursor position) in MS Word
- Apply style on Content Control in a Word Document using OpenXML
- ActiveDocument.Tables.Count returns 0 but there are 4 tables
Related Questions in WORD-INTEROP
- Insert and run macro into word using interop in c#
- How to "mark" a section of text in a Word document, so that it can be easily deleted using Interop.Word
- saving word document as pdf using Interop results in COMException: command failed
- How to identify last Paragraph of each page in a Word document using Word Interop?
- Converting docx into pdf from an ASP.NET MVC app
- C# restart list numbering after copying "Template-Pages" in word
- MS Word Interop: Group image and label
- How to quickly fill a table in a word document with many entries?
- If Interop.Word is run under IIS, custom font is not embedded in result DOCX file after saving
- ASP.NET: Modify and download docx file
- Highlighting text in a Word file - different behaviour when text is in a table
- How to write Text directly in a Word Textbox using C#?
- InlineShape not added to Range after calling AddPicture in Microsoft Word
- Connecting Microsoft.Office.Interop.Word with DocumentOpenXml
- How to get the theme color of a Word document in C#?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
First comment on the main post helped!
Setting the ActiveWindow.Visible to false does what I want it to do where the document isn't shown to the user and if the word document has active documents in it, it doesn't close!