Quantcast
Channel: Word for Developers forum
Browsing all 4350 articles
Browse latest View live

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 Article


Ask 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 Article


Image may be NSFW.
Clik here to view.

How 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 Article

To 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 Article

How 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 Article


C# 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 Article

Line 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 Article

Command 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 Article


How 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 Article


Find 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 Article

Why '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 Article

Document.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 Article

Error 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 Article


Word 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 Article

how 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 Article


Selection.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 Article

Adding 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 Article


Suggestions 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 Article

Parsing 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 Article

Sizing 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
Browsing all 4350 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>