office-2010

Dependency walker hangs

三世轮回 提交于 2021-02-18 22:56:27
问题 I have a problem with my.xll addin when it loads on my clients PC. It crashes Excel at startup (possible because of missing dependent dlls). I know it is possible to use dependency walker in profile mode to find out what dlls are loaded when the .exe runs. When I try that dependency walker hangs when profiling Excel, and I can’t find out why. In a command window I ran this: C:\Program Files (x86)\Windows Kits\8.1\Tools\x86>start /wait depends.exe /c /f:1 /pb /pp:1 /pg:1 /oc:d:\temp\Log.txt "C

VBA Office2010 Shapes.PasteSpecial fails

蹲街弑〆低调 提交于 2020-02-04 04:04:12
问题 I have a problem while migrating my VBA code from Office2003 to Office2010. I would like to copy the text of a cell (Excel) to Powerpoint. Office2003 generated a new textbox and the style of the text was the same as in Excel. Now my code fails with Office2010 and I get the following message: runtime error -2147188160 (80048240) Shapes.PasteSpecial : Invalid request. Clipboard is empty or contains data which may not be pasted here. The clipboard is definitly not empty. The code is the

VBA cannot find my macro when it has parameters

空扰寡人 提交于 2020-01-17 01:24:09
问题 I am trying to write a macro that will be attached to a series of buttons in an Office 2010 backstage tab. Depending on the button clicked the Macro should be called with different parameters. The issue I am having is that if the Macro is defined as having parameters then VBA will display the "Macros" dialog box, with no Macros listed. Removing the parameters from the declaration will allow the macro to run, but it needs the Macros to make sense. The VBA being used is below: Sub NewDocs

How to export or create MATHML from MS word 2010?

浪尽此生 提交于 2020-01-05 12:26:46
问题 I have mathematical expressions in word document. Is it possible to export data as MATHML format? For example below formula existed in a word as a mathematical expression. Above expression should represent as below MATHML code. <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> <mrow> <mi>x</mi> <mo>=</mo> <mfrac> <mrow> <mo>−</mo> <mi>b</mi> <mo>±</mo> <msqrt> <mrow> <msup> <mi>b</mi> <mn>2</mn> </msup> <mo>−</mo> <mn>4</mn> <mi>a</mi> <mi>c</mi> </mrow> </msqrt> </mrow> <mrow

How to export or create MATHML from MS word 2010?

拟墨画扇 提交于 2020-01-05 12:24:08
问题 I have mathematical expressions in word document. Is it possible to export data as MATHML format? For example below formula existed in a word as a mathematical expression. Above expression should represent as below MATHML code. <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> <mrow> <mi>x</mi> <mo>=</mo> <mfrac> <mrow> <mo>−</mo> <mi>b</mi> <mo>±</mo> <msqrt> <mrow> <msup> <mi>b</mi> <mn>2</mn> </msup> <mo>−</mo> <mn>4</mn> <mi>a</mi> <mi>c</mi> </mrow> </msqrt> </mrow> <mrow

Word 2010: how to create a drop-down menu in qat (quick access toolbox)

别等时光非礼了梦想. 提交于 2020-01-04 13:42:16
问题 SHORT: I would like to add a drop-down menu to the quick access toolbar of any instance of Word 2010 via placing a customized .dotm-file in Word's startup folder. I fail in creating this customized .dotm-file . LONG: I've been writing a little "add-in" for Word 2010, first with VSTO, then figured out problems with the deployment, now with VBA. The add-in should simplify adding my company's logo and legal notice to documents (different combinations of logos & legal notices exist). In order to

Word 2010: how to create a drop-down menu in qat (quick access toolbox)

北城余情 提交于 2020-01-04 13:42:10
问题 SHORT: I would like to add a drop-down menu to the quick access toolbar of any instance of Word 2010 via placing a customized .dotm-file in Word's startup folder. I fail in creating this customized .dotm-file . LONG: I've been writing a little "add-in" for Word 2010, first with VSTO, then figured out problems with the deployment, now with VBA. The add-in should simplify adding my company's logo and legal notice to documents (different combinations of logos & legal notices exist). In order to

Word 2010: how to create a drop-down menu in qat (quick access toolbox)

…衆ロ難τιáo~ 提交于 2020-01-04 13:41:30
问题 SHORT: I would like to add a drop-down menu to the quick access toolbar of any instance of Word 2010 via placing a customized .dotm-file in Word's startup folder. I fail in creating this customized .dotm-file . LONG: I've been writing a little "add-in" for Word 2010, first with VSTO, then figured out problems with the deployment, now with VBA. The add-in should simplify adding my company's logo and legal notice to documents (different combinations of logos & legal notices exist). In order to

MAPIFolder deprecated so workaround for Outlook programming?

痴心易碎 提交于 2020-01-03 21:09:50
问题 MSDN says this of the MAPIFolder interface (Outlook programming with WPF): This interface is deprecated; do not use this interface. Instead use the interface Folder to access all method, property, and event members of the COM object Folder. I am trying to get the Drafts folder like so: Outlook.MAPIFolder oFolder = olNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderDrafts); How do I do the above without using the MAPIFolder (which is deprecated)? I guess I don't understand what MSDN is

Microsoft Word Interop automation FilePrintSetup Error

北慕城南 提交于 2020-01-02 09:56:07
问题 I am getting "There is a printer error." when tying to send a print job to a printer using automation on Windows 7 with Word 2010. Same code works fine on Windows XP box with Word 2007. I am not sure if Windows 7 or word 2010 is causing the error. Any help appreciated using Microsoft.Office.Interop.Word; ..... object oWordbasic = wordDoc.Application.WordBasic; object[] argValues = new object[] { value, 1 }; //first arg is a printer name String[] argNames = new String[] { "Printer",