ms-office

How can I programmatically find the correct Microsoft Office product version number (and service pack)?

心已入冬 提交于 2019-12-10 18:04:56
问题 I'm having trouble finding a consistent version number for several Office products. This post led me to these KB articles which suggest different ways to find the service packs for Office 2007 and Office 2010 products. However, the file versions of the Office .exe files are not consistent with the chart. Using the Excel 2010 installed on my machine as an example: Help > About info from Excel: Microsoft Excel 2010 (14.0.6106.5005) SP1 File version by viewing the properties of Excel.exe: 14.0

Getting System.Runtime.InteropServices.COMException Error in Server Side Generated Excel

只愿长相守 提交于 2019-12-10 18:04:16
问题 We have a web application that generates excel spreadsheets and run macros on the server side. It then sends them to different individuals via email. It is a part of a legacy reporting style which we are transitioning but still supporting on our new application which we delivered as a website in IIS. I know it is a bad practice to do Office Automation as I saw info from Microsoft that this is not supported. It is also indicated in the answer here opening excel error: System.Runtime

Can you install Office 2007 PIA's without office

一笑奈何 提交于 2019-12-10 17:23:40
问题 First of all, my question is not quite the same as Is Office 2007 PIA deployment possible without Office 2007? I am not looking to use the PIA's yet. The IT engineers would ideally like to deploy the 2007 PIA's to everyone's computers before they upgrade Office 2007. This way there is fewer things that have to go right all at once. I am wondering if this is possible 回答1: My best experience is deploing PIA with your application/add-in, because there are some awkward factors, which can be

Convert Open XML Excel files to HTML

。_饼干妹妹 提交于 2019-12-10 17:06:48
问题 I'm developing printing solution for MS Office 2007. Office automation is not right for me, because it requires Office to be installed. Open XML Document Viewer is solution for converting Word files (.docx) to HTML format by XSLT transform, but it works only for .docx. Can the same technology be used for Excel spreadsheets files? 回答1: You could use this article XSL transformation of SpreadsheetML to HTML as a starting point to develop your own transform. You can also look at the open source

Calling an External VBA from VBScript

て烟熏妆下的殇ゞ 提交于 2019-12-10 16:34:29
问题 I am using a program called mathtype to pull some equation objects out of a word document. I've written code in VBA that works perfectly using their API, but I have to translate it to a VBScript file. I have looked all over google, but have not found any solution on how (If it is even possible) to call a VBA library from VBScript. VBScript can't see the MathTypeSDK Objects/Functions. If not possible, how would I encase the macro I need to run in a globally available word file and call it from

COM object with CLSID {00024500-0000-0000-C000-000000000046} is either not valid or not registered

孤街浪徒 提交于 2019-12-10 16:28:05
问题 In my application there is a functionality to show an excel sheet.Due to some reason we need to uninstall Microsoft Office. Now the above functionality is not working and I am getting following error. COM object with CLSID {00024500-0000-0000-C000-000000000046} is either not valid or not registered. Any Ideas how do I resolve this without re-installing Microsoft Office? 回答1: Given that you've uninstalled Office the COM object you need will be unregistered. The only way is to either reinstall

Find linebreaks in a docx file using PHP

旧巷老猫 提交于 2019-12-10 16:00:40
问题 My PHP script successfully reads all text from a .docx file, but I cannot figure out where the line breaks should be so it makes the text bunched up and hard to read (one huge paragraph). I have manually gone over all of the XML files to try and figure it out but I cannot figure it out. Here are the functions I use to retrieve the file data and return the plain text. public function read($FilePath) { // Save name of the file parent::SetDocName($FilePath); $Data = $this->docx2text($FilePath);

how can I manually install the Office 2007 PIAs on a computer with no Office installed?

末鹿安然 提交于 2019-12-10 15:45:43
问题 I have seen a few other questions regarding the Office 2007 PIAs, in particular: Can you install Office 2007 PIA's without office? (3) Is Office 2007 PIA deployment possible without Office 2007? This question is different. In my experience, it is not possible to install Office 2007 PIAs when Office 2007 is not already installed on the machine. I run the MSI, it displays a dialog for about 5-7 seconds saying "Please Wait while Windows configures Office 2007 Primary Interop Assemblies..." and

MS Word: Preserving vector graphics (SVG) when saving document as PDF

邮差的信 提交于 2019-12-10 14:49:33
问题 Microsoft recently added SVG support to Word 2016. But when trying to save a document containing a SVG vector graphic as PDF the graphic will be converted to a raster image. I tried to change the Image Size and Quality Options (-> "do not compress images in file" and "high fidelity") but this had no effect whats-o-ever. My second approach was to use the "Microsoft Print to PDF"-printer but this didn't preserve the graphics either. Is there a way to preserve the scalability of my graphics when