Filling word document from xml data source
In microsoft exel i can insert xsd schema, put data fields from schema to worksheet cells. after click "import" I select xml file and my xlst file filling with data.Can I somehow do the same in the...
View ArticleVBA script for signature Outlook (Word model)
We are using a vbscript to assign a Outlook 2010 signature to the users that are logging in the network.A few things are a problem. First the logo is different when we...
View ArticlePrinter "Offline"
Does anyone know why printers still have a status of "Offline" (that is inevitably extremely difficult to find the setting for to put them online) at all? Is there some reason I, or anyone might want...
View Articlehow to get customer list template ?
Hi guys,so far i've written a "template.dotx" file which contains a multi-level list template in it.and i wanna use this list template, so i write the code below :string exePath =...
View ArticleEditing an embedded object in Word 2013 does not work
HiWe have developed a graph document that can be inserted as an embedded object and can be edited in place by our OLE server application. This works on all previous versions of Word. But this is longer...
View ArticleIssue when Disabling Context Menu and shortcuts in Word Documents.
I need to protect a word document from cut, copy , paste , paste Special, save and save Shortcuts. So far I have been able to achieve my goals by using the code below:Imports...
View Articlec#, word addin, programmary disable autosave/autorecover.
Hello,I making word addin in c# (visual studio 2013).How i can programmary disable autosave and autorecovery in word addin?Please give me example for an application-level add-in.Regards,Daro
View ArticleDocument Title for Automation
Hello,we use the following code to find window handle FWordApp := CreateOleObject('Word.Application'); FConnected := True; FWordApp.Visible := False;...
View ArticleSave word document in specific folder with specific filename from document
Hi all, I have very basic knowledge and need a lot of help.Basically I have created a quotation letter and have managed to create a macro with the help of the internet so the quotation number increases...
View Articlegraphics changes position when upgrading from word 2007 to 2013
Hello,We have a large number of letters created in word 2007, with a first page header containing a logo. It is positioned on the page by giving xx cm absolute position relative/vertical to the...
View ArticlePopulate a text based based on value selected in combo box
I would like to populate the contents of a text box based based on the selection of value in a combo box. I do not have an external data source to link to, the values in my combo box were entered via...
View ArticleConvertToShape return null
hello I want to insert a picture into word document and Converts it to a free-floating shape , The method of ConvertToShape return NULL pointer of shapeptr. But the picture has been converted into...
View ArticleCustomizing image in a costumer button in word ribbon
Hi all. I am building a word application level addin. The problem is that I want that the buttons I create in the ribbon to show specific images. I made these bitmaps part of the resources, the addin...
View ArticleHow to check if word/excel file is valid
Hi All, I need to check if the file is a valid doc/docx/xls/xlsx/pdf/jpg/jpeg/png file.This will help me detect if the file is a valid file or if its extension has been renamed . Is there any way...
View ArticleHow can I extract the text in between two different styles in a word document...
For example, I want all the text in between "Heading 1" and "Heading 2" to be extracted. I already have the code below to look for a particular style i just don't know how to extract the sections in...
View ArticleMail-Merge to E-mail with Subject personalised by Mail-Merge Fields.
Mail-Merge to E-mail with Subject personalised by Mail-merge FieldsI know this is impossible, but it can be approximated. The attached code enables you to put character strings like...
View ArticleA problem in my code-Regarding bullets and levelled bullets
Hi All,I have a ribbon button which inserts numbered bullets in my doc like so: private void button4_Click_1(object sender, RibbonControlEventArgs e) { Word._Document oDoc;...
View ArticleServer hanging out while opening the word object, it is unable to open the...
Microsoft.Office.Interop.Word.Application objWord = new Application(); WriteEventLog("created word object", "Created new word object"); object missing...
View ArticleSaving Word file to .doc leaves my .docx corrupt
using Word 2007 and it gives me the option of saving a file to the .doc format instead of .docx. However it gets corrupted and it ends up looking like a notepad file when I open it.
View ArticleUsing Word VBA to add two content controls with a carriage return in between
I'm very comfortable with VBA in Excel, but I'm having trouble with the Word object model. I'm trying to use VBA to add a content control, go down one line, and add another content control. I can get...
View Article