.doc

Generate doc file in ionic

大城市里の小女人 提交于 2019-12-12 02:09:22
问题 I need to generate doc file in ionic but there is no such plugin available. Is it possible to generate doc file in cordova app? I have searched for that but only found file opener plugin . I am using jspdf to generate Pdf but client wants to edit that report. Please suggest me. 回答1: I searched and there is no such plugin available currenly. 来源: https://stackoverflow.com/questions/42086773/generate-doc-file-in-ionic

find a result from a .doc type that store in a varbinary(max) column

坚强是说给别人听的谎言 提交于 2019-12-11 06:37:08
问题 i want to write a query with Full-Text-Search on a column with varbinary(max) type that stored a .doc/.docx(MS-Word) file. my query must returns records that contain a word in stored file. is this possible? if yes,how?(please write an example) if yes,can we write that for other language(e.g Arabic,Persian or a UniCode characters)? thank you beforehand. 回答1: What you're looking for is fulltext indexing, which has been greatly improved in SQL Server 2008. For an introduction, I would recommend

Download a <div> to .doc or .docx using JS

末鹿安然 提交于 2019-12-11 02:44:19
问题 Say I have dynamic content of a div : //a button to click, or something <button type="button">Download Content as a .doc</button> //Div to be downloads as .div <div class="gc"> //Generated content <h1>A Header</h1> <p>A Paragraph</p> <ul><li>A</li><li>List</li><li>Here</li></ul> </div> What ways can you suggest approaching this without using server side help? I am open to JS, as I am currently learning this, and can access the div with Jquery, just looking either for a simple answer or a hint

Edit Microsoft-office .doc file in java using Apache POI

风格不统一 提交于 2019-12-08 03:43:26
问题 I'm writing java code to achieve the followings. 1.Read given Microsoft-office document(.doc) file. 2.Search for given string in the file. 3.Delete the given String located in any place. 4.Insert or replace any given string at specified position. 5.Write and save the updated file content into new .doc file. I have written a code to read, search, insert or replace, delete and save the file and it's working good, but i couldn't able to preserve the text format(such as font color, font size,

how create a Word document from a template or existing document with Java?

谁都会走 提交于 2019-12-07 17:52:16
问题 I have a document template where some fields are static and others are dynamic. I need to replace some data (name, last name, salary) and generate the new file. What library do you recommend to do this? Is POI appropriate? I am working with Spring, Java EE6 and Oracle. 回答1: You can give Apache POI a try but the HWPF and XWPF part of POI which are required to manipulate word files are really complicated to use - you need to have at least a good understanding how a word file is structured!

Counting pages in a Word document

戏子无情 提交于 2019-12-07 13:56:06
问题 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 < files.length; i++) { POIFSFileSystem fis = new POIFSFileSystem(new FileInputStream(files[i])); HWPFDocument wdDoc = new HWPFDocument(fis); int pagesNo = wdDoc.getSummaryInformation().getPageCount(); pagesCount += pagesNo; System.out.println(files[i].getName

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

 ̄綄美尐妖づ 提交于 2019-12-07 13:09:56
问题 How can I update the page header of a .docx file using the Apache POI 3.7 API? 回答1: First up, call getHeaderFooterPolicy() on your XWPFDocument, which returns a HeaderFooterPolicy. From that, you can identify the appropriate header for your page (eg Default, First Page etc) Once you have the appropriate XWPFHeader that you want to change, then you can go about editing it as any other document part. You can fetch the tables, the paragraphs etc, then remove them, add new ones, change the text

Storing math equations from .doc MS Word file & restoring them

你。 提交于 2019-12-06 10:03:30
问题 I'm processing Microsoft Word files which contain math equations and images. I need to get these InlineShapes objects and store them as is & then restore them when needed. I know how to get InlineShape objects from file, the problem is how can I store them. Saving them as images is not an option! 回答1: using System; using System.Drawing; using System.IO; using System.Threading; using Page = System.Web.UI.Page; using Microsoft.Office.Interop.Word; using Microsoft.VisualBasic.Devices; public

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

若如初见. 提交于 2019-12-06 09:41:44
问题 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 possible then) How to convert ".doc" file to ".docx"? without using Word automation or any paid SDK like Aspose.Words . Searched a lot, I found open source solution for .docx only. This is to be done on Server so no Word installed there. 回答1: Take a look