Questions tagged [.doc]

A file extension for word processing documents; most commonly for Microsoft Word.

"doc" (an abbreviation of 'document') is a file extension for word processing documents; most commonly for Microsoft Word. Historically, the extension was used for documentation in plain-text format, particularly of programs or computer hardware, on a wide range of operating systems.

This document format has been superseded by the "docx" format as of Microsoft Word 2007 going forward.

155 questions
0
votes
1 answer

Adding Digital Signature to a word document using Open XML Format in C#

I've created a test word document using openxml. My next step is to add a digital signature at the end of the word document after a button click. Could someone if possible share a code for creating and adding a digital signature to a word file or…
0
votes
1 answer

Problem in printing Russian characters in rendering .docx in Rmarkdown

I am trying to render a .docx file using Rmarkdown that includes Russian characters in the dataframe --- params: title: "Encoding Issue" output: bookdown::word_document2: reference_docx: Word_template.docx classoption:…
u.ahmed
  • 1
  • 1
0
votes
0 answers

Apache POI HWPFDocument help insert a hyperlink

Is it possible in CharacterRun how to set that this is a hyperlink? Or is there some other way? Help me please.
0
votes
1 answer

Replacing a phrase in a `.doc` file with python

I have a .doc file that contains text, I need to replace a particular phrase with another one in this document. I tried using python-docx but it doesn't support the .doc format. I also tried using the normal string replace functionality but it's…
Hassan Anwer
  • 347
  • 2
  • 14
0
votes
0 answers

Decrypting .doc file with syncfusion

I"m trying to open a .doc (word 1997-2003) with Syncfusion, in c#. I get the following error: "Specified password "x" is incorrect!", while it is correct... I do not have the same problem with .docx files, so I thought maybe Syncfusion does not…
Danib
  • 21
  • 1
0
votes
1 answer

Bash: How to add text to a .MS Word (doc) file or an .html file?

I am a beginner in bash and have been trying to solve one annoying problem - I cannot add text to a MS Word (.doc) file. I managed to extract text but not insert one. I tried using sed command but it ruins the file - I suppose because it adds the…
DonK
  • 1
0
votes
2 answers

Extract bullets from word document using aspose.words in C#

I need to extract the text with the bullet style from a word document in C#. I am using the aspose.words library but a solution with a different library is also welcome. I can already upload documents and extract the text with heading1 styling. but…
Richard
  • 7
  • 4
0
votes
0 answers

How do I download Word document attachments from gmail?

I'm trying to download a word document attachment from my Gmail account using imbox in Python, but when I decode the attachment I get a bunch of unreadable bytes (utf-8 won't decode them, and they are mostly null bytes). Does Imbox just not work…
linguini
  • 44
  • 4
0
votes
0 answers

remove broken text from FileReader.readAsText results

I am trying to read in .doc files using FileReader, and use it to extract the text. Upon getting results I am getting a lot of broken characters, the first paragraph I get contains: ��ࡱ�>�� !#����…
Carter
  • 101
  • 1
  • 7
0
votes
1 answer

Aspose generated doc file turns underscores into white space for some users

I am updating archaic code that creates memos. The code was written to use bookmarks inside of manually created template.doc files that aspose can write to. The problem comes from this chunk of code. foreach (Addressee infoAddressee in…
0
votes
1 answer

How to pass variable in bash command?

I am trying to convert multiple .doc files to .docx format using antiword. How to write a command like this: for file in os.listdir(directory): subprocess.run("antiword file > file+'.docx'") it shows this error: [Errno 2] No such file or…
JaySabir
  • 322
  • 1
  • 10
0
votes
1 answer

Multiple docx file read collectively

I'm trying to make a framework under which a folder will contain multiple word document which python will read collectively & would provide me an output with all the SSN in that file. I'm done with the solution also, i.e. I'm able to build the…
0
votes
0 answers

How to create Watermark on .doc extension files using Java (Apache poi)

I am trying to create a watermark on .doc file and .docx file, I achieved the .docx extension watermarking using the apache-poi 4. But I Cannot rewrite the code for the .doc extension using the same approch. I tried to swap XWPFDocument with…
Sameesh
  • 315
  • 8
  • 18
0
votes
2 answers

How to attach .docx and .doc files to the email from memory stream?

I'm doing the file attachment through memory stream because temporary storage is not an option. Here I did a Jpeg image attachment. I looked at other file types with which you could do the same by switching the MediaTypeNames, and unfortunately .doc…
0
votes
0 answers

Html text string to .doc file conversion

I have a string variable which contains formatted html text and I have to convert that into .doc file using apache-poi. I got this solution by using docx4j for .docx file, but client wants the solution by using apache-poi that is html string to .doc…
stackUser
  • 545
  • 3
  • 9
  • 21