vsto

Respond to Multiple VSTO Context Menus in VB.Net

五迷三道 提交于 2019-12-13 08:47:39
问题 Trying to build a VSTO w/ VB.Net. I did ask, it has to be VB.Net. Application Level ADDIN targeted at EXCEL My challenge is trying to build a context menu that has an indeterminate number of children. I can make the Menu, but I currently only get the onClick to fire for the last button. I have researched this quite thoroughly and I can not find a VB example. There are plenty examples in VB of adding a simple context menu. There are examples in C#, but you do something like this cb.Click +=

How to show a waiting dialog, in the meantime, still keep dealing with PowerPoint objects?

白昼怎懂夜的黑 提交于 2019-12-13 07:30:58
问题 I want to show a waiting dialog, in the meantime all the calculations concerning with PowerPoint objects still are running in the background. My purpose is during the time dealing with PowerPoint objects, I try to prevent the user from interfering with the UI. It seems that there is no way to deal with PowerPoint objects in the background. Is there any workaround for my case? Thanks Note: I am using VS Ultimate 2013, C#, PowerPoint 2013, vsto 回答1: Office applications use the single threaded

How to access a table within a range nested in another table?

a 夏天 提交于 2019-12-13 06:31:09
问题 In order to access the single table within a range (say, rngOuter) I used: tblOuter = rngOuter.Tables[1]; After I placed a nested table within a range (say, rngInner) within that outer range's table, I found that: tblInner = rngInner.Tables[1]; did not work. rngInner.Tables[1] references tblOuter, rather than the table within itself. In fact, Tables collection of rngInner has only one element, and that is tblOuter. In order to access tblInner, I have to get at tblOuter.Range.Tables[1]. Does

visual studio generated msi vs gpo: This advertised application will not be installed because it might be unsafe

心已入冬 提交于 2019-12-13 05:36:18
问题 I have outlook vsto addin with oneclick installer (vsto manifests etc) that is bundled with MSI. This is done to be able to install it with Group Policy (as I learned oneclick cannot be really deployed with GPO, it needs MSI). This msi works fine if I run it from limited account (UAC prompts) or admin account. Problem is that if it is deployed via GPO it shows: "This advertised application will not be installed because it might be unsafe (...)" I looked to stackoverflow and found that it

How does the absence of office PIA affect the performance of PowerPoint Add-in?

和自甴很熟 提交于 2019-12-13 05:05:36
问题 I want to know the impact of absence of Microsoft.Office.Interop.PowerPoint dll on the PowerPoint add-in performance. Assume that the launch condition to look for the presence of PIAs on user's machine has been removed during the development of the msi package. Thanks. 回答1: A PIA doesn't have anything to do with performance. It only contains declarations , [ComImport]s for the interfaces and co-classes in the Office object model. The CLR needs them to know how to make a call to them. A PIA

Determine Excel 2007 addin vs excel 2010 addin

此生再无相见时 提交于 2019-12-13 04:05:33
问题 I have received a MS Excel addin project build in VS2010. How do I determine whether it is Excel 2007 addin or Excel 2010 addin project ? 回答1: Technically, the answer of Mitja is correct. In practice, this is not entirely accurate. As far as I know, this can only be checked by running add-in in Excel 2007 and 2010. Most likely, it will work in both cases. Checking of the version of Microsoft.Office.Interop.Excel assembly does not help, as Microsoft.Office.Interop.Excel 12.0 works fine in

c# excel 2007 print preview ribbon

眉间皱痕 提交于 2019-12-13 03:47:20
问题 is it possible from c# to add some groups, buttons,... to excel-2007's print preview ribbon... why? i wanted to put some images on that ribbon so that user by selecting the image will be able to put it on a sheet (where ever on that sheet by dragging it) and print it with that sheet... many thanks! 回答1: You do this the same way you add a group to any existing excel ribbon tab. Create a VSTO add-in project and add a Ribbon XML class. Inside the ribbon.xml file, this will give you a group with

How to replace image of a picture shape in PowerPoint?

天涯浪子 提交于 2019-12-13 03:34:28
问题 Is there any way to replace the image of an existing picture shape in PowerPoint from code? Thanks 回答1: If it's a linked image, either overwrite the linked image file with a new file or point the link at a new file. Or if the shape is picture filled, you can fill it with a different picture instead. That can distort the picture if its proportions don't match the shape's proportions; instead, you can change the aspect ratio of the shape to match that of the picture if need be. To change the

VSTO: Cached exchange mode VS LastModificationTime

北战南征 提交于 2019-12-13 02:56:50
问题 I am developing a VSTO Outlook Add-In that is relying on the LastModificationTime property of Outlook Appointment. The problem is when Cached exchange mode is turned On, the LastModificationTime property auto updates each time I close Outlook. Is there possible solution I can use to get the date and time when user changed the appointment, instead of date and time when cached exchange mode changed the appointment? Seeing that there are not a lot of responses I wanted to describe my problem in

Can I use VSTO instead of Open XML to manipulate altChunk features?

混江龙づ霸主 提交于 2019-12-13 02:36:55
问题 I would like to embed one Word document (call it "hidden.docx") into another Word document (call it "host.docx"). The document hidden.docx would not be visible at all when host.docx is opened in Word by an end-user. Document hidden.docx would only be carried inside host.docx, sort of as unstructured cargo data. All research I have done points me to the use of something called altChunk offered by the Open XML SDK. I have installed Open XML SDK and got a sample working: http://msdn.microsoft