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

Word 2013 crash vba duplex landscape

Hi,In MS Word 2013 I set up a simple script to print docs in duplex.I used the following vba to select a Brother print driver set for duplex then switch back.Sub Duplex()     Dim CurPrinter As String...

View Article


Object reference not set to an instance of an object.

 I am gettin this error in docWord Object reference not set to an instance of an object.And iam pretty sure then there in not a code error because in my  windows xp 32 bits works excelentthis is in...

View Article


How to get Words collection from selected text in MS Word document in C#

In my MS Word add-in application I have this code: Document doc = Globals.ThisAddIn.Application.ActiveDocument; How can I get doc.Words from only selected text and not from whole document?

View Article

How to detect if MS Word application has been closed by click on close (X)...

In my Word add-in I start process to read text. But I want to kill ths process when user close MS Word. How to do this in C#?

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


How to select text word by word in MS Word document after click on button on...

I am working on Microsoft Word add-in in C#. After click on button on Task Pane I want to select first word. After second click I want to select next word and deselect previous word,  and so on ... At...

View Article

Convert an Excel spreadsheet into a word document

I am trying to convert data output, formatted as a .csv file and read in excel, into a word document. This word document would then have a preset format applied to it to produce a printed a document. I...

View Article

Content control fails to export

My Addin code exports some document text using Range.ExportFragment, and then I import it to another document using Range.InsertFile. The range being exported corresponds to a content control. This has...

View Article


How to find index of word in selected text in Words collection in C#

In my application I am using this code for select first word from selected text in MS Word:Globals.ThisAddIn.Application.Selection.Words[1].Select();But how I find index of this word in Words...

View Article


Word parser

Hi,  I have a requirement like reading word content. I am able to read normal content properly, but unable to read below parts. - Image Parts - Header Parts - Footer Parts - Tables I am confused in 1....

View Article

Is it possible to make calls to the user32 API from VBA 7.1 code in Word 2013?

 I have written several modules of VBA 7.1 code that I'm able to call from Word.  I have Trust Center - Macro Settings - Enable all macros selected.  I can use the GetUserName function when defined as...

View Article

How to hide task pane after click into the text in MS Word?

In my MS Word add-in I have Toggle button. After click is task pane showed. But I want to hide task pane after click into the text. How to record click into the text in C#?

View Article

ContentControl's Range is less than the table in the ContentControl

If the contentControl only contain a table. the ContentControl.Range is in the Table.Range. please check! Sub range_Pos() Dim c1, c2 As ContentControl Set c1 = Selection.range.ParentContentControl Dim...

View Article


Launch word stored in SQL db in browser

Hi,We have an application where we have a .net application doing some content management and storing word documents in SQL db. Is it possible to launch word documents stored in SQL to directly open in...

View Article

Save As PDF - loses hyperlinks

Word 2007.My document contains several hyperlinks added via: Insert | Hyperlink | Place in documentThe hyperlinks work fine in the word document; however, when this document is saved as a PDF, the...

View Article


Handling XMLAfterInsert and XMLBeforeDelete from application level add-in

Hi,There appears to be plenty of examples for handling document.XMLAfterInsert and document.XMLBeforeDelete in a document level add-in, however I can't get them to run on an application level...

View Article

COM Automation: Word 2013 stays as background process after closing on Windows 8

Hi everybody,I'm using COM Automation to control Word 2013 to generate a document with variable text like name etc.Everything works fine, but after closing Word it keeps running as background process....

View Article


Problem with ActiveDocument.MailMerge.OpenDataSource(), read only words...

Hi, I have a problem with a C++ developpement & Office 2013.The C++ program open a .doc source document (named for example "_TEST.doc", with fields name & value semicolon separated) and a model...

View Article

Edit many files with VBA

Hi, Thanks for taking the time to read my question.I have many Word files (.doc, .docx) that have product codes in them; 1 or 2 per file. I have a translation table in Excel, and I'd like to use it to...

View Article

Authorization error when trying to use word in ASP.NET 2.0

Hello,I have an ASP.NET website. when I use the following code, I get an authorization error: Word.Application wordApp = new Word.Application(); I use microsoft.office.interop.word DLL version 14 as a...

View Article
Browsing all 4350 articles
Browse latest View live


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