ms-word

How can I set table row's height different each column in word via apache poi

可紊 提交于 2021-02-11 15:43:04
问题 I want to create a table in my word document. In this table, I need something like this In this image, third row's third column has different height from first and second columns. I want to create something like this with apache poi but I don't find any solution for this. My codes is here table.getRow(6).setHeight(630); table.getRow(6).getCtRow().getTrPr().getTrHeightArray(0).setHRule(STHeightRule.EXACT); table.getRow(6).getCell(0).removeParagraph(0); //Cell0 XWPFParagraph row6Paragraph=table

VBA - WORD Deleting rows after and before specific word

限于喜欢 提交于 2021-02-11 14:15:06
问题 I'm trying to clean up my Word document using VBA. What i need to do is to find a specific word (usually a website) then select the line it is in and then select and then remove text line above(only 1 line), the lines under that website line as well (sometimes more than 2 - if the text is longer). I'll try to show you how the line looks now. Something happend at someplace! website.com 08.01.2019 Something happend at someplace and it was a bad person doing it. He used spaces instead of tabs in

How to insert a non-inline picture into a word document using VB6?

点点圈 提交于 2021-02-11 13:50:12
问题 I am trying to insert an image into a word document using the Microsoft word 15.0 objects library included with VB^ and the only way I've seen to insert a graphics file is through this: oDoc.Range.InlineShapes.AddPicture ("C:\Users\name\Desktop\file.jpg") But, I want a picture that can be positioned over the text and where I want it in the document... Is there any way to do this using VB6 Code? 回答1: Word has two different ways to manage images and other embedded objects: as InlineShapes and

VBA Excel replace Word text with Excel cell value

时间秒杀一切 提交于 2021-02-11 13:48:25
问题 Good morning, I would like to replace the address in Word using the one, placed in the Excel cell. My situation looks like in the image below: I have got an address in Excel and I want to paste in in the Word bracket, based inside the table cell. There are some solutions: Write to Word Document from Excel VBA Pasting a String from excel to Word using word-VBA VBA from Word to Excel VBA macros: Excel to Word text replacement which differs from my situation. My code so far looks like this: Sub

How do I make MS Word add-in trust self signed certificate?

痞子三分冷 提交于 2021-02-11 13:23:29
问题 We are mostly in our organization working locally using our extensive LAN and for our internal servers we don't use https. Though all new addins from MS Office demand that the requests use HTTPS, thus I created a self-signed certificate in one of our internal servers, from which the addin's manifest.xml fetches the html and js code. The problem is that, since MS Word uses IE 11 embedded therein, we get that annoying security warning on the taskpane addin. How do I make MS Word add-in trust a

VBA Excel open Word Object

五迷三道 提交于 2021-02-11 12:28:50
问题 So I have a VBA and I would like to open and modify a Word file that is embedded in the Excel instead of opening it from a folder path. I am using this VBA and it is not working properly (basically I need the VBA to open the Word document, add the table from the Excel from ranges A24:C & lastRow, copy-paste everything to an Outlook email and finally close the Word document). I receive error 13, if that helps. Please assist!!!! Thanks a lot Sub SendMail() Dim ol As Outlook.Application Dim olm

Trying to use VBA to Automate Document Splitting in Word

妖精的绣舞 提交于 2021-02-11 12:20:03
问题 I am trying to VBA my way into automating a process that my team and myself currently do manually-- taking a Word document and splitting it into multiple documents based on H1 sections (by which I mean, if a doc has 6 H1s, then we wind up with 6 documents). I have found some code that works well enough, but there are a couple pieces that I can't quite puzzle out. Getting the footers from my original document to show up in the subdocuments, and adding a sequential number at the start of each

VBA Word - Finding specific text in a document and replacing the content of the paragraph following that specific text

我的未来我决定 提交于 2021-02-11 12:20:00
问题 Here is a sample of text from my word document : https://www.noelshack.com/2018-31-2-1533054408-word.png I am new to VBA and I am trying to write a macro that looks for the specific text """"Eligible Currency"" means the Base Currency and each other currency specified here:" and replace the two following lines (filled with some dots, not necessarily in the same paragraph) with a list of text (for instance : Euro, Dollar). So far I have been able to loop through the document, find the specific

How to read Microsoft Word documents in .NET? [closed]

大城市里の小女人 提交于 2021-02-11 12:18:15
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 8 years ago . How to read doc, docx file into .NET with C#. 回答1: I see you used the asp.net tag. You should not use the automation API (COM Interop) to run Microsoft Office products from ASP.NET or any other server application

VBA Word - Finding specific text in a document and replacing the content of the paragraph following that specific text

痴心易碎 提交于 2021-02-11 12:18:08
问题 Here is a sample of text from my word document : https://www.noelshack.com/2018-31-2-1533054408-word.png I am new to VBA and I am trying to write a macro that looks for the specific text """"Eligible Currency"" means the Base Currency and each other currency specified here:" and replace the two following lines (filled with some dots, not necessarily in the same paragraph) with a list of text (for instance : Euro, Dollar). So far I have been able to loop through the document, find the specific