ms-office

Using POI or Tika to extract text, stream-to-stream without loading the entire file in memory

天涯浪子 提交于 2019-12-12 04:05:10
问题 I'm trying to use either Apache POI and PDFBox by themselves, or within the context of Apache Tika, to extract and process plain text from MASSIVE Microsoft Office and PDF files (i.e. hundreds of megs in some cases). Also, my application is multi-threaded, so I will be parsing many of these large files concurrently. At that scale, I MUST work with the files in a streaming manner. It's not an option to hold an entire file in main memory at any step along the way. I have seen many source code

Procedure Too Large

心已入冬 提交于 2019-12-12 03:53:35
问题 I received this error message - Procedure too large - in VBA. What is the reason and way out for this error? 回答1: You probably have one or more gigantic procedures/functions and I think VBA has a limit of 64k or something per procedure. You fix it by splitting that procedure up into multiple procedures that can then be called by the one procedure. So instead of having: Sub GiantProcedure() ... ' lots and lots of code End Sub You'd have something like: Sub GiantProcedure() ... ' a little bit

Send mail with specific mailbox defaults from Outlook with POP3 or Exchange

走远了吗. 提交于 2019-12-12 03:44:17
问题 With multiple email account Mailboxes attached to one Outlook client, how can I choose one of the Mailboxes (in code) and generate and send a MailItem that has all the default characteristics of that Mailbox, such as the default signature, reply-to address, priority etc. etc. Is there a way to do that easily using VBA? By easily, I mean how can it be done without explicitly identifying and copying all the required properties from one place to another. There are probably many more of them than

Conditional Formatting of Dates in Excel

萝らか妹 提交于 2019-12-12 03:37:03
问题 I am trying to make conditional formatting for Dates in Excel. The cells should change the color depeding on when the Date is due. If it is due in less than 30 days it should be red. If it is due in less than 60 days it should be yellow. If it is due in less than 90 days it should be green. If have following Formula =DATEDIF(TODAY();E:E;"d")<30 as a conditional formatting rule for the start. The strange part is that it works if I have it in a cell. It returns the value true for the values in

Have JS Office Add-in close or exit events for the document?

只愿长相守 提交于 2019-12-12 03:26:25
问题 I'm currently develop a JS Office Add-in, but I could'n find any reference in API Documentation (https://dev.office.com/reference/add-ins/) for an close document or exit document event. I need to suscribe it to show the user warning message about save plugin settings 回答1: There are no events like that in the current version of the Add-in API. 回答2: Try this code: window.addEventListener("beforeunload", function (e) { var confirmationMessage = "\o/"; (e || window.event).returnValue =

Is there any unique ID associated with each Powerpoint presentation file (.ppt or .pptx)?

时光怂恿深爱的人放手 提交于 2019-12-12 03:15:53
问题 I have checked MSDN and there seems to be no unique ID (UUID or whatnot) property in the Presentation object model ( https://msdn.microsoft.com/EN-US/library/office/ff746640(v=office.15).aspx ) According to the code example, a Presentation can only be identified by a name only. e.g. Presentations("Sample Presentation").Slides.Add 1, 1 Is there anyway I can identify a presentation by way of an ID? Hopefully it will looks something like this Presentations("067e6162-3b6f-4abc-a171-2470b63dff00")

Word: Create formula to subtract dates in Word

ⅰ亾dé卋堺 提交于 2019-12-12 02:55:19
问题 I have a form in Word 2010 and am trying to enter two dates and get the difference in days. I tried creating a table with one row and three columns. Instead of dates I entered numbers in the first and second column and in the third I entered the formula =B1 - A1 . With numbers it works, but not with dates. Is it possible to enter two dates and get the difference in days in Word 2010? I know I can easily do this in Excel, but since the form is extensive I would like to try to do it in Word.

How do I host a Microsoft Office document inside a Winforms application?

ぃ、小莉子 提交于 2019-12-12 02:53:25
问题 Anyone that can recommend an Word, Excel and PowerPoint viewer (no editing), that can be used as a component in Winforms? The viewer must support Office 2003, 2007 and 2010. The target is .NET 4.0. A free one is preferred ;-) But if its commercial its ok. Thanks in advance! 回答1: Generally your best approach to this is to have your users obtain the appropriate read-only viewers from Microsoft. Word Viewer Excel Viewer PowerPoint Viewer This is how the vast majority of document management

Enable Infopath button

百般思念 提交于 2019-12-12 02:43:48
问题 Ok so am fairly new to SharePoint and InfoPath but here is the thing. I have made this form in InfoPath. Section A gets data from a SharePoint library, Section B get data from another SharePoint library but that data is dependent on the data in Section A. Section C gets data from another different library but the data is also dependent on whats in Section A. So now I want the 'Show' button I have circled to be disable and enabled only when the queried record exists in the Library of Section C

Groovy - need to make a printable form

戏子无情 提交于 2019-12-12 02:03:49
问题 Probably need title help as I mean a literal paper form, not an HTML element. I have this PDF form I email everyone after they use my site, and I have to manually enter a couple fields the database knows. I am looking for a good method to have Groovy make a pdf or something like that. What I am going to attempt: Make the form in Word, save as XML, put XML as groovy String and ${someVariable} everywhere I need filled in. Open XML in Word and then print as PDF. Is there a better way? I have