ms-office

Copy PowerPoint Slides in Java (preferably)

允我心安 提交于 2019-12-11 03:42:50
问题 I have a Java program in which I want to copy PowerPoint slides from one presentation into another. I have looked into the "Slides" API in Apache POI, but can't find any reference to a capability like that there. Though the calling program will be Java, I'm open to the idea of the actual work being in another language. For example, I could run on Windows and call a COM component through JACOB or something. How can I best achieve this? Also for clarification, I need to support both PPT and

How to prevent Excel from handling strings containing a colon as formulas

夙愿已清 提交于 2019-12-11 03:32:02
问题 I am generating csv files, and some cells have the format nn:nnnn , i.e. digits separated by a colon. It's not a time format nor a date format, it's just text cells and I don't want them to be re-formatted at all. I've added some logic to my code in order to identify if it looks like a legal time format or a date, and if so, I wrap that string like this ="nn:nnnn" . But I'm not interested in adding those characters to all the cells. It almost solved my problem, but there are still some cases

c# “as” vs “()” conversion [duplicate]

孤者浪人 提交于 2019-12-11 02:55:05
问题 This question already has answers here : Casting vs using the 'as' keyword in the CLR (18 answers) Closed 2 years ago . Why the conversions between compatible reference types will compile (Excel 2010, .Net 4.5) in this case using Excel = Microsoft.Office.Interop.Excel; Excel.Application excelApplication = null; excelApplication = new Excel.Application(); Excel.Worksheet worksheet = workbook.Worksheets[1] as Excel.Worksheet; and in the case below it will not, although I saw exampales shown

Is there an Intent for viewing documents (Word, Excel, Powerpoint, PDF, etc.) in Android? [duplicate]

丶灬走出姿态 提交于 2019-12-11 02:45:46
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: android: how do i open another app from my app? Is there an Intent to view files such as word document (.doc), excel sheet, powerpoint (.ppt), pdf, etc. in Android? 回答1: All you can do is, emit intent of specified MIME type. Android will handle what application(s) is capable to open it. Something like this solution should work: View MS office files in an android application 来源: https://stackoverflow.com

Using Office Word to read doc files with PHP

依然范特西╮ 提交于 2019-12-11 02:39:21
问题 I am trying to use PHP with word.application to read a file. It simply will not open the file. It's echoing the right version. $w = new COM("word.application") or die("Is office installed?"); echo 'Loaded Word, version ' . $w->Version . '<br>'; $w->Visible = false; $w->Documents->Open(realpath('test.docx')); $content = (string) $w->ActiveDocument->Content; echo $content; $w->Quit(); $w->Release(); $w = null; I get the error: Uncaught exception 'com_exception' with message 'Source: Microsoft

Outlook Interop c# sort items not working

↘锁芯ラ 提交于 2019-12-11 02:22:12
问题 I have stumbled upon a problem where the Outlook items table sort method does not give desired results - despite the ascending or descending the method GetLast() always returns the same email item. Code as follows: Application olApp = new Application(); NameSpace olNS = olApp.GetNamespace("MAPI"); MAPIFolder oFolder = olNS.GetDefaultFolder(OlDefaultFolders.olFolderInbox); Explorer oExp = oFolder.GetExplorer(false); //olNS.Logon( false, true); result = new IOActionResult(null); oFolder.Items

Can VBE be invoked/used OUTSIDE of an Office Application?

心不动则不痛 提交于 2019-12-11 02:17:34
问题 This may be a silly question - I haven't found anything on Google about this. No new programs populate in the task manager when VBE is opened from an Office Application, and I don't see an executable that looks probable. DLL maybe? 回答1: Some Office applications provide the Run method for the Application class. For example, see Run Excel Macro from Outside Excel Using VBScript From Command Line. Yes, you can call VBA macro at runtime. There are applications that don't provide any specific

Developing Word add-ins for Macintosh

筅森魡賤 提交于 2019-12-11 01:59:44
问题 I have an add-in for Word 2007 developed using VS2008/.NET 3.5. What do I need to do in order for Mac users to use this add-in with their Word 2008? (or did MS make sure it would be impossible to do...) 回答1: The Mac version of Word is a totally different beast internally. AFAIK, the only documented "plugin" API for Word on the Mac is its AppleScript interface. It might be useful for what you want to do but you'd probably be close to starting from scratch. 回答2: Its not standard/possible. The

Microsoft Graph API Accessing basic info of a user that is outside tenancy

爷,独闯天下 提交于 2019-12-11 01:59:35
问题 I am developing a multi-tenant web app managing the mail, contacts and calendar of users. On the AzureAd management portal, I registered my app as multi-tenant and I manage to get OAuth tokens for both people out and inside my tenancy, replacing the tennantId by "common" when querying the Authentication Code and Token endpoints. Now, I would like to access calendar, mail and contacts info of people who signed in and consented to give permissions to my app. I started simple, by querying the

Office365 Sharepoint social.feed AAD Authorization

流过昼夜 提交于 2019-12-11 01:57:09
问题 I'm currently testing RESTfull API access to Office365 Sharepoint server using bearer authentication (oAuth2). I can succesfully get current files in the OneDrive via the /_api/web endpoint but get System.UnauthorizedAccessException on all _/api/social.feed endpoints. I granted all available Sharepoint rights in AAD to the (test) application, just to be on the safe side, the token says: [scp] => MyFiles.Write MyFiles.Read AllSites.FullControl AllSites.Manage AllSites.Write AllSites.Read The