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

VBA Word: How to insert page break in existing Word document

I'm trying to insert page break in a Word document with using VBA. But I don't know why page break only inserted before Page 2 instead of the whole document. Could anyone help? Thank you!      ABC...

View Article


Word 2013 File/Account/User Information

Can some one point me to where I can obtain the "User Information" presented on File/Account/User Information within Word 2013?Thanks, WordRake

View Article


Word 2013 Footer TimeDate Stamp and Path

I would like to create a footer that has the following:Left Footer -- Time Date Stamp (08/07/2013 11:50 AM)Center --       Page 1 of Total PagesRight --         Path and FilenameI can do this by using...

View Article

Document not got the focus

We have a macro which, with one document already open, opens a second document, gets some text from it, closes the second document and then pastes that text into the original document. The code is...

View Article

Determine which font of rFonts to use

Hello, I am writing some logic to determine which of the 4 fonts in an rFonts element would be used for each character in a run: ascii, hAnsi, cs, or eastAsia (or the ...theme versions if defined). I...

View Article


Getting a message "there is a printer error " when trying to print

I am trying to print in word automation from vb .Net to the user's default printer.  Sometimes everything prints ok, other times I receive the following error message:  "There is a printer error"It...

View Article

Word Interop causing Windows Service to halt for long time

We are using Microsoft.Office.Interop.Word to access word files in our Windows service. However, the service is halting for about 2 minutes at below mentioned line and then proceeding ahead. What...

View Article

Having problems getting IncludePicture to work in MailMerge

I know this is a common question.I'm using Word 2010 and connecting to a SQL 2012 database for a Mail Merge.  I have a string field on my defining a file path for an image.  I am certain the path is...

View Article


Office document sometimes cannot be saved due to a file permission error

We have an app scanning PC's media liabrary(Music, photo, video, document) files and send it to mobile phone using remote access.In our app, we use Java file monitor to monitor file modification...

View Article


Set Media type in Macro template

Ok, so I've searched a lot and tried some API calling code snippets and still cannot figure out how to set the Type of paper in my macro template using VBA (VB6). The printer, a Ricoh MFD, has a Tray...

View Article

restart page numbering for an inserted document

Hi,I am trying to insert word documents, and then add a section to restart page numbering for each newly inserted document.  However, the page numbers do not restart, and the first document has no page...

View Article

Left Margin line numbers gotten accurately through function that ignores tables.

Function findNumberOfLinesWOTables(theWord As Word.Range) Dim i As Integer Dim actualLines As Long actualLines = 0 Dim lastTableIndex As Integer Dim firstTableIndex As Integer lastTableIndex = 0...

View Article

Word 2010 VBA code using EVAL()

I'm trying to dynamically access controls (text boxes) that I've added to a Word 2010 document.  I added the Access Object Library to expose the EVAL function and it seems to be present.  Assume my...

View Article


Word numérotation uniquement des pages impaire sans compter les page paires...

Bonjour,Dans le cadre de mon activité dans le milieu scientifique, nous devons créer des rapports où les recto des pages contiennent le textes et les verso les figures. Je parviens sans problème à...

View Article

InStr Issues

Hi,I've really been struggling with this for a few days, so hopefully someone on here can help me out.  I am working on a program which will "AutoFormat" a Word Document with a large number of tables...

View Article


Image may be NSFW.
Clik here to view.

How to set style of complete word document

Hi,In word, I can change style of the document by clicking Change Style--> Style Set (please see attachment). There I can choose between various style sets like "Traditional,Fancy, elegant.."...

View Article

Integration of MS Office with my own webDAV server using Form Based...

Hello All,I am developing a Apache server which will support webDAV, so that office application can directly open and save files on the server.Without any authentication this is working perfectly...

View Article


how to find the texts with several fonts in one time

For example, John stands up. John, stands, and up are all different fonts. How to find this string (3 words) with 2 or more fonts in one time?The other similar question is how to find this string with...

View Article

Fluent UI separators and recreating built in groups

I have the task of recreating some of Word 2010's Groups because users want them customised with some of heir own controls added in.  I am having a problem with a few things, especially the mini...

View Article

Problem about developing Word2010-Addin in C# with VS2010

Hi! all, i'm using VS2010 C# to develop a word2010-addin,nowI encountered a problem:I updated the code after the first debuging,then i pressed F5 to debug again,but the new code didn't work.I tried to...

View Article
Browsing all 4350 articles
Browse latest View live


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