ms-office

Working with Office “open” XML - just how hard is it?

ぃ、小莉子 提交于 2019-12-04 14:01:28
问题 I'm considering replacing a (very) large body of Office-automation code with something that works with the Office XML format directly. I'm just starting out, but already I'm worried that it's too big a task. I'll be dealing with Word, Excel and PowerPoint. So far I've only looked at Word and Excel. It looks like Word documents should be reasonably easy to manipulate, but Excel workbooks look like a nightmare. For example... In Word, it looks like you could delete a paragraph simply by

Opening byte[] as a file without actually saving it as a file first

孤街浪徒 提交于 2019-12-04 13:07:55
What is the best way to open a Word file that was stored as a byte[] in a database? I have to store some documents in an Access database - Word files, 2003 and up - on an application that is strictly run off of a CD. Unfortunately they have to be in the database and can't be stored loose in folders. I'm storing them as an OLE object, and I can read and write them just fine as a byte[]. However, I don't know the best way of getting these documents back open in Word. Right now I'm using a FileStream to recreate the file in somewhere and then shooting off a System.Diagnostics.Process.Start

C# .NET Charts Libraries/Code? [closed]

寵の児 提交于 2019-12-04 12:39:48
I am creating some reporting software that will generate excel workbooks with charts and all related data. Besides the built in libraries and .NET Office integration features, is there any other tools or code that people found useful to creating similar projects? EDIT: I am targeting winforms. Matthew Groves I've used ZedGraph before, and I found it pretty good for a free library. If you are not already aware... Microsoft released these free charting controls for .NET http://weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx Nick

LinqToExcel on Windows7 64 bit with office 64bit

核能气质少年 提交于 2019-12-04 12:34:10
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 You need to install Access Database Engine. More details Office Microsoft Access Database Engine 2010 Redistributable If your project use x86 LinqToXml install x86 otherwise x64 version of Access Database Engine. For x64 Windows and x64 Office can be used also x86 LinqToXml and

Linux-based MS Office thumbnail generation

我的未来我决定 提交于 2019-12-04 12:33:11
I've been taken onboard to work on a PHP-based web application. One part of the application generates thumbnail images for MS Office documents on demand, and it uses MS Office + the VeryPDF docprint utility to do this. Because of this one requirement, the system is running on Windows Server 2003 + IIS. I would prefer to have the system running on a Linux server, rather than MS, as I have far more experience in administering Linux systems than Windows and we have no other in-house technical staff. Does anyone know a way to handle the document conversion using native Linux software? I would love

Accessing Ribbon Controls Programatically in an XML Ribbon

给你一囗甜甜゛ 提交于 2019-12-04 12:28:22
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 = Factory.CreateRibbonDropDownItem(); item.Label = submatrix.Name; item.Tag = submatrix; this.dropDown1

VSTO 4.0 Runtime Download Missing from MS?

浪尽此生 提交于 2019-12-04 10:48:39
问题 We have code that checks for the presence of the VSTO 4.0 runtime and downloads it, if missing. This has worked fine until today. It seems the VSTO runtime file has gone missing from MS. Does anyone know anything about this? Can we tell our clients it's an MS problem and will be cleared up shortly? Google doesn't find any comments about the file being removed. Thanks. 回答1: Note: the latest update to the VSTO Runtime (from November 2012) has merged the VSTO Runtime packages from two files (x86

JavaScript API does not work for Excel 2013?

别等时光非礼了梦想. 提交于 2019-12-04 10:43:59
I just got a change recommendation report for one add-in I submitted. It says Your add-in is not working in the Excel 2013 client on Windows 7 with Internet Explorer 11. I have always been testing my add-in in Excel 2016 and Excel Online . So I just installed Excel 2013 (version 15.0.4841.1000 , which includes SP1 ), indeed the add-in does not work. But it seems that few things work... For example, the following example function writes haha in Cell A1 under Excel Online , whereas, it does not anything in Excel 2013 . function test () { Excel.run(function (ctx) { var range = ctx.workbook

JavaScript API does not work for Excel 2013?

情到浓时终转凉″ 提交于 2019-12-04 10:42:11
I just got a change recommendation report for one add-in I submitted. It says Your add-in is not working in the Excel 2013 client on Windows 7 with Internet Explorer 11. I have always been testing my add-in in Excel 2016 and Excel Online . So I just installed Excel 2013 (version 15.0.4841.1000 , which includes SP1 ), indeed the add-in does not work. But it seems that few things work... For example, the following example function writes haha in Cell A1 under Excel Online , whereas, it does not anything in Excel 2013 . function test () { Excel.run(function (ctx) { var range = ctx.workbook

Set Publisher in Word Options Add-Ins Dialog

自作多情 提交于 2019-12-04 10:40:22
I have made an addin for Microsoft Word 2010 Beta using Visual Studio 2010 RTM. When I look at "View and manage Microsoft Office Add-ins" the publisher shows up as None. Would code signing with a Software Publisher Certificate fill in the Publisher field? The ClickOnce manifest is signed with a Code Signing certificate. Would signing the assembly with a strong name key file fill in the Publisher field? Is there a method using codesign.exe that would fill in the Publisher field? Note: Using signtool.exe to sign the addin dll with the certificate results in the publisher showing as None in Word.