Help with Developing EncryptionProvider?
We are currently embarking on developing a custom EncryptionProvider for Office decryption.Does anyone know where there is sample code (c#, or c++) to help us get started?
View ArticleAsk prompt \o switch doesn't work in macro
How do I get the Ask prompt \o switch to work correctly when executing mail merge from a macro? I'm running mail merge from word. The mail merge document has an Ask prompt with the \o switch telling...
View ArticleHow to set table row height using c#
Hi, I want to create a report using word document.I just want to make my table row lower like the image below(the second table).Here's my code so far public static void createWord () { int row = 1;...
View ArticleTo check if the header has focus or not
Hi, I just want to check if the header of a word document has focus or not (Any part of the header). If the header has the focus then it should display a message. An independent VBA function that can...
View ArticleHow to create a macro in word using vb.net
Hello all I want to avoid copy paste content and printing from my word document, I have tried with word protection with 'readonly' locking but, still I can able to copy and paste my word file content....
View ArticleC# How to hide the Active Word Document in Window Task Bar
Using C# I'm launching Word from my C# application. //Create a new document from template Object oTemplatePath = GetTemplateFile(); m_document = m_winword.Documents.Add(ref oTemplatePath, ref missing,...
View ArticleLine by Line Left Indent greater than or equal to the line before it - VBA MS...
I'm trying to create a macro that goes throgh each line and makes sure that any line that has an indent of 0 has an indent greater than or equal to the indent of the line before it. If it is not...
View ArticleCommand button link to a URL with text field information.
I am attempting to create a cmd button on a userform in WORD which opens an URL. I need to capture text from a textbox that is entered on the userform and it needs to be placed within the middle of...
View ArticleHow to read ActiveX Checkbox Value using C# Word automation?
I am using C# word automation to read through a form created using Microsoft Word. The form contains ActiveX checkbox controls. I am a bit clueless on how to check these fields and have searched high...
View ArticleFind paragraph by using that text located in
I need to search paragraph by giving paragraph heading text associated with it and to which some heading are set like wdOutlineLevel1, wdOutlineLevel2. For example:Feature Aparagraph text- A chip is...
View ArticleWhy 'print forms data' print pictures for DOCX files
Hello all I have a DOC file with some picture and text in it, I make some settings in doc file, I tick'Print only data from a form' to print only form data, when I take print of Doc file it wont...
View ArticleDocument.Saved property not set correctly?
I am running code on opening of a document to check footer info, and prompt user to update if "incorrect". The last two lines of the Sub are: ActiveDocument.Saved = False jjj =...
View ArticleError exporting a word document with a space at the end of the filename to PDF
HiI am using the Microsoft Word 14.0 Object Library on VS2010 in a WPF application to export a batch of word documents from a database to PDFs. It is working fine for any normal word document but not...
View ArticleWord Interop in C# to display line number of text being searched
Hi All,Can anybody show a sample code to display the line number of a text in a MS Word document using C# and Word Interop? For example, I have a document Sample.docx saved in C:\. I would like to...
View Articlehow to make documents .docx to be readOnly in visual studio using Rich TextBox?
here is the code, when i run it the document can be seen in the rich textbox but it is editable so I want it to be readonly document? void ImportWord() {...
View ArticleSelection.MoveDown wdLine, 4, wdExtend doesn't work for one customer with...
Hello,I have a problem with one of our many clients. We have an "old" software written in VB6.0 that uses Word automation. Since the software runs on various Windows-Plattforms with different Windows-...
View ArticleAdding Sections to word document using VB.net
Hi, I am trying to Automate the Word document using vb.netI am facing problems when i try to define a section, insert section breaks and getting it updated in the table of contents.I will break down...
View ArticleSuggestions on employing BackgroundWorker or similar strategy to speed up...
I am using Word's WindowSelectionChange event to tell me when the user has modified the content of a specific area of the active document. At this point, the code in my VSTO global add-in performs a...
View ArticleParsing a docx File for Italic Highlighting and Footnotes
Hello Everyone,I have a very large wordfile. I would like to parse and get Locations of for example Italic Highlightingand Footnotes. Does anybody have a good example how to get started on this?I would...
View ArticleSizing issue with embedded Excel charts in Word 2013
We've got an Office add-in compiled against the Office 2013 PIAs. We have a "graph template" doc file that has an embedded Excel chart that is the correct size. The add-in adds a button which allows...
View Article