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
4
votes
5 answers

How read ".doc" file or how to Convert it to ".docx" using ASP.NET

Here are two problems that I am facing, among these two problems one should be solved, to make my project work. So Here are those: How to read ".doc" file, without using Word automation or any paid SDK like Aspose.Words. (If first one is not…
Ishan Dhingra
  • 2,442
  • 5
  • 31
  • 42
3
votes
6 answers

Editing a .doc in PHP

I am trying to replace strings in a word document by reading the file into a variable $content and then using str_ireplace() to change the string. I can read the content from the file but I str_ireplace() does not seem to be able to replace the…
Joshua Bambrick
  • 2,669
  • 5
  • 27
  • 35
3
votes
3 answers

Updating a .docx file's page header using Apache POI

How can I update the page header of a .docx file using the Apache POI 3.7 API?
Jalal Sordo
  • 1,605
  • 3
  • 41
  • 68
3
votes
3 answers

How should I be saving .doc documents to a SQL Server database

I am saving a .doc file to a SQL Server database as varbinary(max) using the C# code below. I am able to save the file, but when I retrieve the file back and want to display the contents on the web page, my code is downloading the file and I am in…
Tan
  • 778
  • 3
  • 18
  • 36
3
votes
2 answers

How do I display a Word document in a rich-edit control?

I'm building a Delphi app and I want to read a Word document and display it in a rich edit. How can I do that?
Andrei
  • 61
  • 2
  • 3
3
votes
1 answer

Undefined Index in PHP $_POST Array

I've a page index.php where I added a search form that's connected with the database. So that When users search any word, result would show up from database. Once results generated on the page I want users to export the result into a .doc file. I…
Mehreen
  • 85
  • 7
3
votes
2 answers

How to attach MS word document in Qt GUI application?

I wrote a Qt widget application. In the file menu I want to insert an MS word document as a user manual. Is there any way to do it? I checked Qt help and various blogs but none of them gave me a clear solution.
3
votes
1 answer

Extracting data stored tables in .docx file with C#

When I run the following code on a .docx file the child2.innerText will print out the information I am after (although without seperating text from the seperate columns of the table). My problem is that the associated innerXml is completely…
user1815201
  • 463
  • 3
  • 16
3
votes
2 answers

Counting pages in a Word document

I'm trying to count pages from a word document with java. This is my actual code, i'm using the Apache POI libraries String path1 = "E:/iugkh"; File f = new File(path1); File[] files = f.listFiles(); int pagesCount = 0; for (int i = 0; i <…
BackSlash
  • 21,927
  • 22
  • 96
  • 136
2
votes
1 answer

creating an emailable or printable document using an Android app

Can anyone recommend a good source (either a tutorial or book?) on how to generate a .doc file from an Android App? I am completely new to programming and don/t understand most of what I read as answers here, hence the need for a recommendation: I…
2
votes
0 answers

Upload Word File => Use TinyMCE to convert contents to well-formed HTML => Insert into TinyMCE

Has anyone experimented with allowing users to upload a word file (.doc, or .docx), and use TinyMCE to do the Word => HTML conversion? (And ultimately place the converted HTML in the editor) I'd like to use TinyMCE for this conversion because it is…
Hayden
  • 163
  • 1
  • 9
2
votes
1 answer

Is there any way to format converted docx file to text in php?

Hello I want to format in a nice way the converted doc or docx file to text in php? The code below is the class that I used to convert docx file to text. class DocxConversion{ private $filename; public function __construct($filePath) { …
Eys
  • 21
  • 4
2
votes
0 answers

Reading text that has parentheses

I am attempting to read a .docx file into Python. The file is organized into two tables (it's messy), one with Chinese characters and the other with English. However, it seems that when I am reading the text from these tables, the parentheses do not…
JahKnows
  • 2,618
  • 3
  • 22
  • 37
2
votes
1 answer

c# Load a .docx file into a richtextbox taking too long

I intent to load a word document into a richtextbox. I have the below code. Which yes is working, but it is taking waaaay to long to load. OpenFileDialog ofd = new OpenFileDialog(); ofd.Filter = "Word Documents|*.doc; *.docx"; if…
BiKe
  • 83
  • 1
  • 12
2
votes
0 answers

storageFolder.CreateFileAsync throws UnauthorizedAccessException

I am creating a UWP app, in which am storing file in local folders. Everything working fine untill i try saving a .doc file. 1) I am saving file with extensions (ex: filename.mp3 , filename.flv , filename.png). 2) I am not getting any exception…
1
2
3
10 11