ms-office

Embedding objects into Microsoft Word and OpenOffice Writer

徘徊边缘 提交于 2019-12-06 10:26:12
问题 I am looking for some references on how to implement the following feature: ability to embed objects (e.g. diagrams) into word processors and being able to edit them in their respective "mother" application For example, MS Word and Visio work like this together, allowing the user to easily edit/tweak the diagrams after adding them to the word processor. I am interested in how this is done on the following platforms: Microsoft Word OpenOffice So far I know that: Microsoft Word -- uses OLE/COM

R - ReporteRs package - word template with dynamic values

十年热恋 提交于 2019-12-06 10:00:22
good day people, I'm working on a word based reports automation task. These reports are basically some standard text, a dozen or so charts, some numeric/trend text values that I need to populated based on logic. The trend text, numeric values or charts are to be generated from backend database. I'm able to produce a blank document with charts using database, the R packages I used are ReporteRs, RODBC, officer and corresponding dependency packages, ggplot2 for charts. However what I would like to achieve is, have a word document template with some sort of placeholders where I can put the charts

Java connection to / between Microsoft Windows Office Suite?

喜你入骨 提交于 2019-12-06 09:44:00
I read elsewhere (a response by "hazzen" here ) that .NET has "a binding for the entire Office suite outlined here that allows you to write COM-based methods that you can call from Office. It is intended for automation, but you can write any managed code you want and have Excel call into it." I'm interested in the same thing for Java. My present solution runs a standard Windows program that launches Java, whereupon any results are essentially sent to standard out and the intermediate program captures these and feeds the result back in to Excel - also using what amounts to std-out. There has to

Microsoft.ACE.OLEDB.12.0 bug in multithread scenario

ⅰ亾dé卋堺 提交于 2019-12-06 09:35:54
问题 I use in my x64 application the Microsoft Access Database Engine 2010 (part of Microsoft Office 2016) for working with mdb files. But, current version of Microsoft Access Database Engine 2010 (OLEDB provider Microsoft.ACE.OLEDB.12.0) have a bug. This engine crashes in multithread work. If I create two OLE DB (or ADO DB) connections with this provider in different threads, then one of them will crashed in Mso40UIwin32client.dll with exception 0xC0000005: Access violation writing location

Deploying Office 2010 addin

回眸只為那壹抹淺笑 提交于 2019-12-06 09:10:15
I've created two addins, one is shared addin (for Excel, Word and Outlook) and another one is for Outlook. They work fine on my machine (where I developed it). Framework used: 4.0 I've created a 'setup project' throught VS2010 following steps in Deploying an Office Solution by Using Windows Installer . When I run setup of it, shared addin runs fine. But the outlook addin does not work. This is log of 'Event Viewer' Event Type: Error Event Source: VSTO 4.0 Event Category: None Event ID: 4096 Date: 4/26/2011 Time: 7:37:52 PM User: N/A Computer: XXX Description: Customization URI: file:///C:

Word 2007 macros: is there an OnPrint event I can attach a macro to?

半城伤御伤魂 提交于 2019-12-06 08:59:21
问题 I'm looking to do a formatting check on word files before they get sent to the printer and it needs to be completely transparent to the user (no extra controls, just using the standard print options available through the UI). Is there an OnPrint or BeforePrint event, or something that can be used in that respect which I could attach a macro to, the same way I can with Open, Close, or Save? This feels like it should be simple... but those are famous last words. Thanks in advance, Rob 回答1: You

Accessing Ribbon Controls Programatically in an XML Ribbon

浪子不回头ぞ 提交于 2019-12-06 08:47:56
问题 For programming Office Add-ins using C# 4.0, Microsoft provides two different ways of creating and/or modifying the Ribbon interface: you can use the Ribbon Designer or define the Ribbon's layout in Ribbon XML. If you create a ribbon using the Ribbon designer, the class generated in the code behind has visibility to all the controls you've placed on the ribbon. So if I've placed a RibbonDropDown called "dropdown1", I could use the following code to add an item to it: RibbonDropDownItem item =

LinqToExcel on Windows7 64 bit with office 64bit

雨燕双飞 提交于 2019-12-06 08:33:44
问题 I have created windows forms application using linqtoexcel to read excel files it runs fine on windows 7 32/64 bit with office 32 bit but on windows 64 bit with office 64 it throws 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine Can anyone help me how I can run my application on 64bit office 回答1: You need to install Access Database Engine. More details Office Microsoft Access Database Engine 2010 Redistributable If your project use x86 LinqToXml install x86

C# Visual Studio: How to have multiple developers on a solution that references Office?

China☆狼群 提交于 2019-12-06 08:33:26
问题 When I add a reference to Office COM Library, I to go: References Add Reference Select the COM tab Select Microsoft Office 12.0 Object Library And magically named reference appears: Microsoft.Office.Core The Project.csproj file shows the details of the reference: <COMReference Include="Microsoft.Office.Core"> <Guid>{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}</Guid> <VersionMajor>2</VersionMajor> <VersionMinor>4</VersionMinor> <Lcid>0</Lcid> <WrapperTool>primary</WrapperTool> <Isolated>False<

Office Add-in development: Insert table in Word 2016

夙愿已清 提交于 2019-12-06 08:05:53
I am trying to insert a table using Office.js inside the body of a document but to no avail. I have used the following code: function insertSampleTable() { showNotification("Insert Table", "Inserting table...") Word.run(function (context) { // Create a proxy object for the document body. var body = context.document.body; body.insertTable(2, 2, Word.InsertLocation.end, ["a"]); // Synchronize the document state by executing the queued commands, and return a promise to indicate task completion. return context.sync(); }) .catch(errorHandler); } But upon clicking the button, it gives me the error