vsto

Is there a list of IDs for the Outlook MAPI namespace?

南楼画角 提交于 2019-12-22 06:37:17
问题 I'm working on an Outlook add-in and I'm looking for a complete list that relates that MAPI properties to there names that is a little less vague than this. There is plenty of documentation on how to access those properties, but I'm not having much luck finding anything that tells me what any of the properties are. P.S. I've seen this post on the subject but I would really like more info on the subject. Alternatively, if there is information on extending the Out of Office Assistant, the would

Add controls to existing ribbon group in Office (VSTO)

六月ゝ 毕业季﹏ 提交于 2019-12-22 05:49:27
问题 I find numerous examples on how to add a new group to an existing ribbon, and this works just fine. What I cannot figure out is how I can add new controls to an existing group on an existing ribbon. Say I want to add my own command to the "Proofing" group on the "Review" tab. I'm developing this in VS2010 for Office2010, but I guess the same approach would work on Office 2007 as well. Any pointers or help is appreciated, or if it's not possible to do (without too much hacking) I can live with

VSTO Word activate ribbon tab

ⅰ亾dé卋堺 提交于 2019-12-22 05:37:07
问题 I have the following ribbon.xml in my word vsto add-in: <tab id="TabLetters" getVisible="IsLettersTabVisible" label="Letters"> <group id="LettersGroup" label="Letters"> <toggleButton id="NewWithTemplate" label="New using template Controls" size="large" imageMso="FileNew" onAction="NewTemplated" /> </toggleButton> </group> </tab> And the following code behind the click event: public void NewTemplated(Office.IRibbonControl control, bool value) { CloseDocument(); var doc = Globals.ThisAddIn

first blank row in excel

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-22 05:16:12
问题 Is there a way to find first available blank row in excel sheet using vsto or c# ? I have been searching for hours but cant find any thing related to it. Any help in this regard will be greatly appreciated 回答1: If App is your excel application, you can loop throught the rows starting from number 1 and look for the first empty using CountA function (it returns the number of non empty cells for a Range): int rowIdx = 0; int notEmpty = 1; while (notEmpty > 0) { string aCellAddress = "A" + (+

Is there a way to capture HotKeys/Shortcuts in Excel VSTO using only C# and no VBA?

混江龙づ霸主 提交于 2019-12-22 04:44:16
问题 So I want to capture some key-commands in our Docuement-level Excel VSTO addin. I can't seem to find a way to do it, other than to use VBA and have our addin talk to the VBA. Any help/examples would be greatly appreciated. I am using Excel 2007. 回答1: You can only do this through API calls to subclass Excel and watch for key commands. This is older, but it still applies. 回答2: One method involves using the 3rd party solution from Addin-Express . Their product includes the ability to add a

Install VSTO WITHOUT using Clickonce

[亡魂溺海] 提交于 2019-12-22 04:13:18
问题 I just created my first VSTO Add-In for Excel. I'm trying to find a way to install the add-in on the end users machine easily. If I copy the the .dll and try to add it from the COM Add-Ins manager in Excel I get this error: <ProjectName>.dll is not a valid Office Add-in. If I use the publish wizard, it does not give me an option to select where to install the files on the client PC. Instead, it uses the path to the installation files. So, how can I install my VSTO add-in without using the

VSTO custom taskpane on multi DPI system shows content twice

半城伤御伤魂 提交于 2019-12-22 03:43:23
问题 I am building an office addin using VSTO. On systems with multiple monitors with different DPI settings, the contents of my custom task pane is drawn twice on the monitor with the higher DPI settings: Only the smaller version is actually responding to user input. The larger version seems to be simply an upscaled image. I have tried playing around with diverse DPI related settings like: AutoScaleMode on my user control. I tried all options, no change. Setting the process to DPI aware - or not

How to return XLOPER (Excel Variable) to VBA directly from a c++ dll?

依然范特西╮ 提交于 2019-12-22 01:23:41
问题 I have no idea how to handle XLOPER type variable in VBA. There are plenty of web pages explaining the relationship between Xloper variable , c++ DLL and XLL add-in, however i need to write c++ function in a dll returning a xloper directly to VBA without XLL framework. (No need of User Defined Function since functions from the dll will be called by the VBA code - not by Excel users). Indeed i'm coding a Excel VSTO and i need to call c++ code from it. I found that xloper variable are very

Clear Microsoft Office Add-Ins cache

十年热恋 提交于 2019-12-22 00:32:44
问题 I wrote some code in an add-in for Microsoft PowerPoint 2007. I executed it. It said there was a problem. With help from a fellow member here, I rectified the problem. I compiled the new code and ran it. It still considers the old code and ignores the new one and still throws the same problem. The two versions of code are radically different in that they do not share the variables that the problem reports, thus my reason for being sure that the problem isn't in the code now. Clearly, MS

Save and Open Remote Documents

冷暖自知 提交于 2019-12-21 23:19:05
问题 I know nothing about microsoft office development, but I would like to build a prototype of a plugin will allow a user to Save and Open documents from a remote repository. Perhaps later build in a version control system on the server - but the server side piece is about the easiest portion of it (in my case). Perhaps I should focus on getting this to work for one office application at a time - say MS WOrd (unless folks think excel is easier to work with). And lets target Office 2007 (as that