vsto

How do I open the "Save As" dialog box in Outlook using VSTO and get the user entered filename

I'm creating a VSTO add-in for Outlook. As part of this add-in, I need to be able to allow the user the save a grid as a CSV file. When the user clicks on the "Export" button on the grid, I want to pop up the "Save as" dialog box, allow the user to select a file/enter a file name and location. When the user clicks ok, I need a way for my...

this action exceed the number of page breaks you can manually add to a worksheet. a worksheet can contains up to 1026 horizontal page breaks

Hi, I developed a excel add ins using VB.NET 2005. and in this when i adding page break below error is occurred :- This action exceed the number of page breaks you can manually add to a worksheet. a worksheet can contains up to 1026 horizontal page breaks So can any one suggest how i insert more than 1026 page break or any other s...

PowerPoint 2003 with PowerPoint 2007 compatibility pack save as pptx

Hi, I want to create and save a PowerPoint presentation as PPTX using PowerPoint 2003 PIA, with office 2007 compatibility pack installed? is it possible how do i achieve this? PropertyValues.PptPresObj.SaveAs(_pptTemporaryFilePath, PpSaveAsFileType.ppSaveAsPresentation, _ MsoTriState.msoFalse) T...

Programmatically extract embedded file from PowerPoint presentation

I am working on a VSTO PowerPoint add-in which involves recording and playing sounds. I was requested at the last minute to allow users to pick the device that will play the sound, like Skype does. In general, I don't think it is possible to specify what device PowerPoint should use, except by selecting the default device in the contr...

How to get Outlook Redemption.dll to self register during a click once install?

can't seem to figure it out... I need to copy Redemption.dll to a folder (eg. C:\Program Files (x86)\Redemption) and then regsvr32 it. I also need this to happen if Redemption.dll already exists on a users machine (i want to replace and re-register it with the dll included in my click once installation) btw, this is a vsto outlook plug...

What if any links exist to free Excel "helper" class libraries for C#?

I'm looking for any available free Excel "helper" classes that are written for .net (doesn't have to be C#). I'd like to evaluate what others consider to be useful and generic static (and non static) helper methods. Can be targeted at VSTO or regular Office automation, although that probably doesn't matter. I guess I should also point o...

accessing SmartArt shapes when the SmartArt is inside a Placeholder (powerpoint 2007)

I need to go through each shape of a smart-art in PowerPoint 2007. When shape.Type=msoSmartArt then I could simply go through the shapes in shape.GroupItems. However, when shape.Type == msoPlaceholder && shape.PlaceholderFormat.ContainedType==msoSmartArt then shape.GroupItems is empty. How can I access the smart-art shapes in such a cas...

Office 2007 PIA registry entry installed indication

I must install Office 2007 PIA as a prerequisite along with my Office 2007 add-in. The bootstrapper I am using requires me to specify a registry entry to be checked if prerequisite is installed or not. Normally, various packages set Installed DWORD value to 1 in some registry path to indicate that a package is installed. Which registry...

Run a CLR application at medium UAC integrity level?

I've been developing a C# (WinForms) application that uses the Office 2007 PIAs to integrate with Outlook 2007. In my dev environment, UAC is disabled and all of my functionality works, but my test environment is Vista 32-bit with UAC enabled. In the test environment, Outlook runs at medium integrity level by default (when started by th...

VSTO: How to forbid the context menu of chart in presentation slide ?

I'm developing an add-in of Powerpoint in VSTO. When I have inserted a chart into the slide, and I don't want show the context menu when user right-click the chart. I forbid some command button of powerpoint, <command idMso="TabChartToolsDesign" getEnabled="GetVisible"/> <command idMso="ChartChangeType" getEnabled="GetVisible"/> <comm...

How to create a "log file" message in the Deleted Items folder from an Outlook Addin

I have an addin that synchronized the contacts folder with an outside source. The Sync happens daily (or manually on demand) and takes a while. Users have asked for the addin to provide information about the sync so that they know it completed successfully, etc. Since the Outlook API doesn't provide a way to add information to the sta...

Excel Automation: Protect single worksheet from deletion by user.

VSTO 4.0 / Office 2007 In an Excel document-level automation project, I have a worksheet that must not be deleted from the workbook. I am afraid that a careless user might delete it by accident, which currently causes a lot of grief (exceptions galore). I can not protect the entire workbook, because the user must be able to create, del...

Slides.InsertFromFile deletes hyperlinks from SmartArt (PowerPoint 2007)

(Powerpoint 2007) I have a slide with a "Vertical block List" Smart-Art. It contains several bullets, some of which have hyperlinks in the text. When I use Slides.InsertFromFile to insert that slide into another presentation, the text of the hyperlinks is still underlined but the link address is empty. (same happens with a "Basic block...

Weird occasional InvalidCastException in Excel interop

I am developing a fairly comprehensive Excel add-in, applying a lot of ops. Take a workbook, save under new name, apply actions (add names, change formulae, etc). Generally it works fine, but from time to time .Net throws an InvalidCastException on virtually any of my CTypes. When I acknowledge the error and run the code again (without ...

Word 2007 VSTO wants to intercept certain document changes

I have developed Word 2007 VSTO in VS2010 using C#. I want to be able to receive notifications about some of Document's collection changes, e.g. InlineShapes. I am also eager to intercept (be notified of) Insert/Picture or when a file is being dragged and dropped onto a Document. Is that possible? I have spent a significant time looking...

VSTO addin dependency resolution

I have a VSTO addin, which works fine. I am trying to give it a plugin-loading mechanism so that others can add plugins to my plugin. I sounds horrific, I know, but it seems to best option for now. I publish my addin to a folder called 'Published'. This creates the application manifest (Symbols.application) and also a folder called S...

How can we load managed.xll file programatically? Ex go to Tools--> Add-In Manager Select our .xll file in Excel

Hi, how load managed.xll file programaticall when setup is installing in the client machine Thanks in advance Mehar ...

Is there a way to make one selected slide to be protected?

I'm developing add-in for Powerpoint 2007 now. I need a way to protect some selected slide in presentation,if the slide is protected, the user cannot do anything on the slide. any suggestion? ...

VSTO Ribbon Drop Down not Populating

I'm writing a Word template in Visual Studio 2010, .NET Framework 4.0 and for the life of me I can't get a drop down in the ribbon control to populate. When I step through the code it looks like it's working fine, but there's nothing in the drop down. Here's my code: 'The comments property has a value of "100-00001,100-99999,110-99999" ...

VSTO Deployment not working on Computer without Visual Studio

I have written a Outlook 2007 Add-In. I added a Setup Project to it, and it built the dependencies itself. When installed on a computer without visual studio, I get the following error message in the "Trust Center COM Add-in Manager": "Load Behavior: Not Loaded. The Managed Add-In Loader Failed to Initialize" Detected Dependencies ...