ms-word

Literate programming

旧时模样 提交于 2020-01-02 01:08:11
问题 Literate programming is a way of developing software where documentation comes first, then the coding. One writes the documentation of a code snippet, and then writes the implementation of the snippet. The visual appearance of the software source code would be a plain document like word, with code paragraphs in it. I am trying to convert the dev shop I work to use only literate programming, as it brings great advantages to code readability and maintenance. However, due to the lack of tools

How to disable File button in MS-Word 2013?

你离开我真会死。 提交于 2020-01-01 19:40:31
问题 I want to disable File button. For example, I have this code. <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"> <backstage> <button idMso="FileSave" visible="false"/> <button idMso="FileSaveAs" visible="false"/> <button idMso="FileOpen" visible="false"/> <button idMso="FileClose" visible="false"/> <button idMso="ApplicationOptionsDialog" visible="false"/> <button idMso="FileExit" visible="false"/> <button idMso="HistoryTab" visible="false"/> <button idMso="OfficeFeedback

How to convert HTML to a Microsoft Word document ?

帅比萌擦擦* 提交于 2020-01-01 19:26:32
问题 How can I convert HTML from a CKEditor into a Microsoft Word document? 回答1: CKEditor is just HTML, so what you really should be asking yourself is: How do I save CKEditor contents as an HTML file and then convert that into a .doc file. The answer to the first part should be trivial. Protip: You send the contents as a string to your backend and your backend writes that string to an .html file. As for the conversion, you can try saving the content as a .html file, then opening that in Word and

MS Office 2013 - VBA password security [duplicate]

心已入冬 提交于 2020-01-01 18:19:16
问题 This question already has answers here : Is there a way to crack the password on an Excel VBA Project? (22 answers) Closed 4 years ago . I am wondering about how safe is the VBA password on MS Office 2013. I've searched online and there are a bunch of websites selling software to do it, is it reliable? I want to develop some security around my office files that would depend on the VBA code inside, but if the vba code inside can be easily changed/seen it's non sense going that way. Thanks 回答1:

Is there an alternative to open-xml sdk to generate word documents

别来无恙 提交于 2020-01-01 16:47:22
问题 I'm trying to generate word documents using open xml sdk. When the documents are small this is no problem (and rather easy). When the documents become larger (+500 pages) I notice the peformance (duration, memory usage, ...) goes down significantly. Googling this problem I came across some posts that point out the same problem. For excel there is a solution with spreadsheetgear. I would like to know if there is a word alternative to this or if there are other solutions to generate word

Pulling data out of MS Word with pywin32

ぐ巨炮叔叔 提交于 2020-01-01 13:18:31
问题 I am running python 3.3 in Windows and I need to pull strings out of Word documents. I have been searching far and wide for about a week on the best method to do this. Originally I tried to save the .docx files as .txt and parse through using RE's, but I had some formatting problems with hidden characters - I was using a script to open a .docx and save as .txt. I am wondering if I did a proper File>SaveAs>.txt would it strip out the odd formatting and then I could properly parse through? I

Pulling data out of MS Word with pywin32

我与影子孤独终老i 提交于 2020-01-01 13:18:01
问题 I am running python 3.3 in Windows and I need to pull strings out of Word documents. I have been searching far and wide for about a week on the best method to do this. Originally I tried to save the .docx files as .txt and parse through using RE's, but I had some formatting problems with hidden characters - I was using a script to open a .docx and save as .txt. I am wondering if I did a proper File>SaveAs>.txt would it strip out the odd formatting and then I could properly parse through? I

How to find the page number from a paragraph using OpenXML?

余生颓废 提交于 2020-01-01 11:31:46
问题 For a Paragraph object, how can I determine on which page this is located using the Open XML SDK 2.0 for Microsoft Office ? 回答1: It is not possible to get page numbers for a word document using OpanXml Sdk as this is handled by the client (like MS Word). However if the document you are working with is previously opened by a word client and saved back, then the client will add LastRenderedPageBreak to identify the page breaks. Refer to my answer here for more info about LastRenderedPageBreak s

Saving a word document as an image

孤人 提交于 2020-01-01 10:51:36
问题 I am using the below code to convert a Word Doc into an image file. But the picture appears too big, and the contents don't fit - is there a way to render the picture or save the picture to size? private void btnConvert_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(txtFileName.Text)) { MessageBox.Show("Choose a document to convert", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); txtFileName.Focus(); return; } ApplicationClass wordApp = new ApplicationClass(); object

select a range of text from one Word document and copy into another Word document

房东的猫 提交于 2020-01-01 09:40:22
问题 I'm trying to use VBA to extract sentences in one Word document and put it into another Word document. So for example, if we need to find the title of the organization, we follow the algorithm: Search for "Title" Do (Take) each character after "Title" and (stop) until "Address" 回答1: The following works but there may be a more efficient way of doing this: Sub FindIt() Dim blnFound As Boolean Dim rng1 As Range Dim rng2 As Range Dim rngFound As Range Dim strTheText As String Application