ms-office

How can doc/docx files be converted to markdown or structured text?

孤街醉人 提交于 2019-12-03 00:51:41
问题 Is there a program or workflow to convert .doc or .docx files to Markdown or similar text? PS: Ideally, I would welcome the option that a specific font (e.g. consolas ) in the MS Word document will be rendered to text-code: ```....``` . 回答1: Pandoc supports conversion from docx to markdown directly: pandoc -f docx -t markdown foo.docx -o foo.markdown Several markdown formats are supported: -t gfm (GitHub-Flavored Markdown) -t markdown_mmd (MultiMarkdown) -t markdown (pandoc’s extended

Oauth2 for SharePoint 365 REST

蹲街弑〆低调 提交于 2019-12-03 00:22:24
I'm trying to connect to Sharepoint Online (Sharepoint 365?) content using OAuth2 and the REST API. I need to do this from Python as it is an addition to an existing application. I have already managed to connect the application to Google Drive using OAuth2 and REST, so I think I understand the fundamentals of using OAuth2. I've tried a number of combinations of places to configure the client_id and client_secret and authenticate and receive access and refresh tokens. So far I have been able to receive a refresh token and use it to obtain an access token; however, I'm unable to use the access

“Office 2010 Add-In: Icons Gallery” - How to extract icons from backstage tab (docx)

余生长醉 提交于 2019-12-02 20:33:43
I downloaded " Office 2010 Add-In: Icons Gallery " that is docx file with two backstage tabs that hold icons. How can I extract the icons or use them in my application? I use ImageMso quite frequently in my Excel development. Having stumbled on another post, I took it a step further and put a package together to visually search, extract and save icons from Microsoft Excel as a file or copy and paste (with alpha channel transparency) to another application. I also compiled a list of 8,899 distinct ImageMso names from the various sources. I hope others can find this useful. Microsoft Office

Programmatically extracting slides as images from a PowerPoint presentation (.PPT)

好久不见. 提交于 2019-12-02 17:36:38
Given a PowerPoint presentation in .ppt format, what is the best way to programmatically and using only open source software extract an image representation (in say .jpg or .png ) of each slide in the presentation? The application will run in a Linux server environment, so installing Microsoft Office or Keynote is not an option. The functionality that I want to achieve programmatically is similar to: Keynote's export functionality ( File > Export... > Pictures > JPEG ) PowerPoint's Save As JPEG functionality ( Save As > Other Formats > JPEG ) You should probably give unoconv a try. According

How to get request digest value from provider hosted app?

安稳与你 提交于 2019-12-02 17:36:12
I am developing SharePoint 2013 Provider hosted app using javascript REST Api. In order to perform create (POST), or update (MERGE) operations on sharepoint items I need to set the 'X-RequestDigest' header with the request. When in SharePoint-hosted apps I was able to use the http://contoso.sharepoint.com/SharePointHostedApp/_api/contextinfo service to retrieve the request digest value; however, I am having trouble getting that value when in a provider hosted app. The first difference of provider hosted app is that now we need to make a cross-domain request since we are not running in a

VBA Extensibility in Outlook

可紊 提交于 2019-12-02 15:32:53
问题 I'd like to write a macro for Outlook 2007 that can add/remove modules in the VBA editor. The VBA Extensibility library looks perfect, but properties like Application.VBE seem to be inaccessible. In Excel, I would need to enable "Trust access to the VBA project object model". Unfortunately, this option is missing in Outlook 2007. Does anyone know of a way around this? Thanks in advance! 回答1: I worked around the limitations using SendKeys: Alt-F11 Ctrl-M Path to code module Enter Not elegant,

How do you use WiX to deploy VSTO 3.0 addins?

二次信任 提交于 2019-12-02 14:43:23
I want to deploy a VSTO 3 Application Level Word 2007 addin that I've written with Visual Studio 2008. I see that WiX has an extension named WixOfficeExtension that looks like it might have this functionality, but I can't find any documentation for it, and I can't discern it's purpose from the source code. Has anyone attempted this before, and were you able to pull it off successfully? This is the code I ended up using. I basically ported the examples from MSDN to use WiX. Note: This specific solution is only for a Word 2007 addin, but the case for Excel is very similar. Simply modify the

How can doc/docx files be converted to markdown or structured text?

一个人想着一个人 提交于 2019-12-02 14:21:44
Is there a program or workflow to convert .doc or .docx files to Markdown or similar text? PS: Ideally, I would welcome the option that a specific font (e.g. consolas ) in the MS Word document will be rendered to text-code: ```....``` . massives Pandoc supports conversion from docx to markdown directly: pandoc -f docx -t markdown foo.docx -o foo.markdown Several markdown formats are supported: -t gfm (GitHub-Flavored Markdown) -t markdown_mmd (MultiMarkdown) -t markdown (pandoc’s extended Markdown) -t markdown_strict (original unextended Markdown) -t markdown_phpextra (PHP Markdown Extra) -t

How to Fetch/Create calender by O365-iOS-Connect?

∥☆過路亽.° 提交于 2019-12-02 13:40:22
问题 I coding a iOS app using O365-iOS-Connect to connect my app to Office 365. My app can sign in to 365 account. But i can not find some docs how to Fetch/Create calender. O365-iOS-Connect Thanks and sorry for my bad english. 回答1: Steps to fetch outlook calendars in iOS are: I use MSGraph SDK & Azure AD v2.0 endpoint (for personal login) Note : You must know how to install pods and check this link for details: https://graph.microsoft.io/en-us/ Steps: Register your iOS application on Microsoft

Save all Shapes of slide into single JPG image

不羁的心 提交于 2019-12-02 12:43:56
问题 I have a small tool to export the pictures inside ppt documents to image files, so I can import them somewhere else. For this, I have been using the following piece of code: For Each slideShape In slide If slideShape.Type = msoPicture Then Call slideShape.Export(materialPresentation.Path & "\" & ecode & "_" & cont & ".jpg", ppSaveAsJPG) cont = cont + 1 End If Next slideShape However, in a different tool, I am required to export all the shapes of a slide at once, exactly like selecting them