Quantcast
Channel: Visual Studio Tools for Office (VSTO) forum
Viewing all 5157 articles
Browse latest View live

nuget package for VSTO?

$
0
0

As I couldn't seem to find one I'm curious if there is a nuget package available for VSTO, or if anyone can recommend steps for building Add-ins on a cloud based system, like VSO. (I do not want to place the PIAs in source control)

Thanks

Al


Add-in add on Start-tab

$
0
0

Hello,

it is possible to add my add-in to the start tab and not as his own tab?

I´m using vs 2015.

greetings


Move custom task pane

$
0
0
I want to change the location(Left and Top) of a floating task pane. How can I do it?  

selam alazar simachew

Visio 2016: Installation problem with VSTO add-in

$
0
0

We developed an add-in for Visio with the Office developer tools in Visual Studio 2015. In order to run, the add-in requires the Visual Studio 2010 Tools for Office Runtime (VSTOR 2010).

The installation of our add-in works without problems with Visio 2010 and 2013, but with Visio 2016 the setup stops with an error message, because the file "MSVCR100.dll" is missing. We were able to reproduce this issue with various test add-ins on clean installations of Visio 2010, 2013 and 2016 on Windows 7, 8 and 10.

As far as I know, the VSTOR 2010 runtime is usually installed with Visio and Office 2016, and the problem does not seem to be a missing VSTOR - the setup of our add-in checks for the presence of VSTOR 2010 in the Windows registry (it is a prerequsite in our Visual Studio project) and we can see in the installation log that the check returns a positive result. Still, we run into an error as soon as the setup tries to call MSVCR100.dll.

To us this looks like a bug in Visio (and Office) 2016, as if Microsoft forgot to install a of copy MSVCR100.dll in the Windows/System32 folder during Office setup, as part of the VSTOR components.

Did anyone experience the same problem? Of course you may not see the problem if you upgraded to Office 2016 from a previous version of Office, because then the missing file in question may be on your system from the previous installation.

Thanks, Andrea

Using user32.dll on word Add-in and iPad compatibility

$
0
0

I used the user32.dll import call to move a custom task pane freely and it works pretty well. My question is, will this work on iPad as well? 

Below is a sample code that I included in my add-in project.

[System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "FindWindowW")]


selam alazar simachew

Add-in office 2007 / 2010

$
0
0

Hi all, i´m a little bit lost with the symptoms.... 

I´ve got a VSTO addin for Excel written using c# and visual studio 2010. 

The adding works great for office 2010, office 2013 even deploying them using an installer.

I´ve found in office 2007 is not running after the installer is complete. Curiously the addin is listed under the COM Addins but it doesn't load or run.

I´ve installed Office 2007 on my dev box and built the adding using Visual Studio 2010. The Addin runs good!

It seems to be a problem with the manifest or something.

Can anybody give me a hint?

Thanks in advance.


Build issue since change to Office 365

$
0
0

Hi all,

since I switched to Office 365 I get a build error for my office app. It is a panel app for excel.

1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\SharePointTools\Microsoft.VisualStudio.SharePoint.targets(450,5): error : Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========

Versions:

Office 365 ProPlus - en-us 15.0.4763.1003

Visual Studio Professional 2015 14.0.23107.0 D14REL

.NET Framework 4.6.00079

Office Developer Tools for Visual Studio 2015 ENU 14.0.23116


Customizing Menu of Office Applications (Not using AddIn Tab)

$
0
0

I know how to develop Add Ins for office applications using visual studio and c#. However, I was wondering if I can add tabs and run my applications from another menu such as shown below:

(I cannot add image because my account seemingly is not verified. Let me explain the menu I want to create tabs in):

If you open Word 2013. Click on File. The menu on the left hand side that contains tabs like Info,New and Save...I want to be able to add my custom tab there.

OR

If you click on Save/Save As I want to be able to add my custom tab beneath 'Computer'.

Is that possible?


How to properly copy, edit and save the copy of a mailitems to file without leaving it behind in the Outlook client.

$
0
0

Working in Windows 7 / Office 2007 with VSTO I want to perform the following steps;

  1. get a reference to a mailitem.
  2. create a copy of the mailitem.
  3. edit the copy.
  4. save the edited copy to a file as .msg file (to be uploaded by a database).
  5. if the copy is somewhere within outlook still then delete it.

I understand from this thread question that I need to use the MailItem.Copy function to create a copy and then use the "Move" function to move it somewhere else.

I have also read this forum question on the Copy function which has some thing interesting to me from Ken Slovak 

"I often will create an RDOMail item in the hidden Items collection in Drafts if I want to save it but not have it show up the UI"

What is the name of the folder or item within the Drafts folder that is hidden? Can I move my mailitem here after I have copied it withOUT using Redemption?

If I can save to the drafts folder is this folder synced to exchange? I would like the mailitem copy to not be saved on the exchange server.

If the drafts folder is not an option to move to, then what is a reliable place to move to that is not linked to the exchange server.  For example do I need to go to the effort of creating my a .pst and put my copy/temp file in there.

Adding squigglies to Word document

$
0
0
Is it possible in VSTO to add squigglies to a Word document? (like the red squiggly for spelling errors)

How to generate a new Powerpoint slide?

$
0
0

Hi,

    I have been using following code to generate ppt on button click. Usually I will create the first slide as blank slide and duplicate it to no of slides I need to generate. Now I want to apply theme to my ppt. I went ahead and applied theme to the first slide.

            PowerPoint.Application ppt_application = new PowerPoint.Application();
            PowerPoint.Presentation ppt_presentation = ppt_application.Presentations.Add(MsoTriState.msoTrue);
            PowerPoint.CustomLayout ppt_layout =                         ppt_presentation.SlideMaster.CustomLayouts[PowerPoint.PpSlideLayout.ppLayoutTitle];

            ppt_presentation.PageSetup.SlideWidth = 720;
            ppt_presentation.PageSetup.SlideHeight = 540;
            PowerPoint.Slide slide;
            PowerPoint.TextRange text;
            PowerPoint.Shape shape;

            slide = ppt_presentation.Slides.AddSlide(1, ppt_layout);
            slide.Shapes[1].Delete();
            slide.Shapes.Placeholders[1].Delete();
            slide.ApplyTheme(@"C:\Users\Karthik\Desktop\custom.thmx");

The theme has the first slide with a line, image at center and logo at bottom left. The rest of the slides don't have the image at center but has the line and logo.

Since I duplicate the first slide, the theme of first slide applies to the rest of the slides( the image at center applies to the rest of the slides as well)

 The scenario is the same even if  I try to apply theme to the first slide or the ppt_presentation object.

Please help me to generate new slide instead of duplicating the first slide.

Disable Security Pop-up

$
0
0

Hi, 

I've been looking around and reading articles about disabling the pop-up of " you should only open attachments from a trustworthy source", but none of the solutions seem to work 

Any suggestions ???

Thanks,

Set MailItem readonly while a ProgressBar is shown

$
0
0

I'm creating an Add-In for Outlook with VSTO.

Before sending a MailItem some special tasks will be done within the send-event. While this tasks are done, a modal form with a progress bar will be shown. That works fine. But while the progress bar is shown, the user cannot interact with Outlook. Whole Outlook is frozen.
-> I want that the user can interact with Outlook while the tasks are done on the MailItem to be send.

So I created a new thread for the special tasks including showing the progress bar.
Following steps will be done in the send-event:

Check a bool variable if the tasks were already done.

  1. If tasks aren't done yet, sending will be canceled and a new thread will be created and started for the tasks.
  2. After the tasks are done, a bool variable will be set into true (= tasks were already done).
  3. Also the send-method of the Mailitem will be called.

This also works fine. But then the modal form with the progress bar isn't modal anymore.. The user can interact with Outlook (good!). But he can also interact with the MailItem while the tasks are running and the progress bar is showing (not good!)...

So question is, how can I block the MailItem, set it into readonly or something different to avoid that the user can modify the MailItem while showing a progress bar?

C# .net, Excel Addin - un expected error message - object reference not set to an instance of object

$
0
0
m using an Excel AddIn which is created using VSTO and build  will be done for different platforms(Win XP , win 7 - With 32 bit & 64 bit). It is throwig a pop up message box, saying that "object reference not set to an instance of object". This happens only with windows XP excel 2010. kindly let me know, if anyone can help on this.

Oulook OST Manipulation

$
0
0
Hello,

Is there a way to programatically modify the contents of an OST file?  I was wondering if it was possible to change the replyto address of emails contained within an OST file.

How can i check equation & images one by one sequencwise in word file using vsto c#?

$
0
0

Hi,

Can anyone help me?How to fixed it?

Developing Office 365 Add-in's crashes Outlook.

$
0
0

We have recently upgraded to office 365, we are trying to create a new add-in for outlook, however creating a default add-in using all default options in visual studio 2015, crashes outlook.
Steps to reproduce:

  1. Create a new Project in Visual Studio 2015, of type "Outlook 2013 and 2016 VSTO Add-in".
  2. Right Click Project, Select Add, then New Item and select "Outlook Form Region"
  3. Select "Design a new form region", click next (this is the default option)
  4. Select a "Separate" Region as the type, click Next (this is the default option)
  5. Select the default suggested name.
  6. Select only Mail Message (IPM.Note) when asked which messages classes. (this is the default option)
  7. Build and Run Project.
  8. In Outlook create a new message,
  9. Add an attachment. (Adding the attachment causes the crash!)
  10. Click the button to show the form region.
  11. The Form region is shown, then outlook crashes.


Your help would be appreciated
 Glen.

Outlook addins are not displayed

$
0
0
  • When using debugging or published versions of Outlook Addins, they do not show up in the outlook application.
  • I've attempted with two new addin projects (Ribbon + simple button) to see if it might have been configuration issues, but those do not work either.
  • I've attempting both Excel and Word (existing and new addins) and those do work.
  • I've tried everything in the Stackoverflow thread with various solutions (can't post links)
  • When viewing the addins in outlook they're installed, enabled and active. 
  • No errors are thrown (neither with VTSO_SUPRESSDISPLAYERRORS 0) and no logs are generated with VTSO_LOGALERTS 1. 
  • The registry keys are correct (can't post images)

How come the addons are not shown in Outlook?


Event log entry:

-----------------------------------------------------------------------------

Outlook loaded the following add-in(s):


Name: Microsoft Exchange Add-in
Description: Exchange support for Unified Messaging, e-mail permission rules, and calendar availability.
ProgID: UmOutlookAddin.FormRegionAddin
GUID: {F959DBBB-3867-41F2-8E5F-3B8BEFAA81B3}
Load Behavior: 3
HKLM: 1
Location: C:\Program Files\Microsoft Office 15\Root\Office15\ADDINS\UmOutlookAddin.dll
Boot Time (Milliseconds): 0

Name: Skype Meeting Add-in for Microsoft Office 2013
Description: Skype Meeting Add-in for Microsoft Office 2013
ProgID: UCAddin.LyncAddin.1
GUID: {A6A2383F-AD50-4D52-8110-3508275E77F7}
Load Behavior: 3
HKLM: 1
Location: C:\Program Files\Microsoft Office 15\Root\Office15\UCAddin.dll
Boot Time (Milliseconds): 16

Name: Outlook Social Connector 2013
Description: Connects to social networking sites and provides people, activity, and status information.
ProgID: OscAddin.Connect
GUID: {2163EB1F-3FD9-4212-A41F-81D1F933597F}
Load Behavior: 3
HKLM: 1
Location: C:\Program Files\Microsoft Office 15\Root\Office15\SOCIALCONNECTOR.DLL
Boot Time (Milliseconds): 0

Name: OneNote Notes about Outlook Items
Description: Adds Send to OneNote and Notes about this Item buttons to the command bar
ProgID: OneNote.OutlookAddin
GUID: {93E5752E-B889-47C5-8545-654EE2533C64}
Load Behavior: 3
HKLM: 1
Location: C:\Program Files\Microsoft Office 15\Root\Office15\ONBttnOL.dll
Boot Time (Milliseconds): 265

Name: Invoegtoepassing McAfee-e-mailscan
Description: Outlook-invoegtoepassing voor McAfee-e-mailscan
ProgID: mfeotlkaddin.scan
GUID: {6D51AC3F-7048-4C0F-9831-18E4F701EF86}
Load Behavior: 3
HKLM: 1
Location: C:\Windows\SysWow64\MfeOtlkAddin.dll
Boot Time (Milliseconds): 32

Name: liEWFDRFAGDRFAH
Description: liEWFDRFAGDRFAH
ProgID: liEWFDRFAGDRFAH
GUID: {00000000-0000-0000-0000-000000000000}
Load Behavior: 3
HKLM: 0
Location: file:///G:/TFS/**** Office Addons/Main/UploadandOffice/liEWFDRFAGDRFAH/bin/Debug/liEWFDRFAGDRFAH.vsto|vstolocal
Boot Time (Milliseconds): 375

Name: ****.Office.Outlook
Description: ****.Office.Outlook
ProgID: ****.Office.Outlook
GUID: {00000000-0000-0000-0000-000000000000}
Load Behavior: 3
HKLM: 0
Location: file:///G:/TFS/****Office Addons/****.Office.Outlook/Published/****.Office.Outlook.vsto
Boot Time (Milliseconds): 437

Name: Microsoft SharePoint Server Colleague Import Add-in
Description: The Add-in allows Microsoft SharePoint Server to import colleague suggestions based on your Outlook content
ProgID: ColleagueImport.ColleagueImportAddin
GUID: {EFEF7FDB-0CED-4FB6-B3BB-3C50D39F4120}
Load Behavior: 3
HKLM: 0
Location: C:\Program Files\Microsoft Office 15\Root\Office15\ADDINS\ColleagueImport.dll
Boot Time (Milliseconds): 0

Run operation in UI thread from background thread

$
0
0

Hi

My Outlook initialization is asynchronous (using TPF with an StaTaskScheduler) - but when it is done, I'd like to execute certain operations that access the outlook object model - so GUI thread it is.

I know how to do it in WPF and Winforms, but what about a VSTO add-in? 

Regards

Stephan

Signing the .vsto with a certificate which is protected by a password

$
0
0

I'm creating an Add-In for Outlook and want to sign my project (the .vsto-file) with a certificate.

For that I use "Sign the ClickOnce manifests" in the properties of the project in Visual Studio 2015. With choosing "Select from File..." I can select my .pfx certificate. It's password protected, so a dialog will open asking for the password. All this works fine! I can build my project and my .vsto-file is signed with my certificate.

The problem is in building my project using TFS. I get following error:

C:\Program Files (x86)\MSBuild\14.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (2883, 0)

Unable to find code signing certificate in the current user’s Windows certificate store. To correct this, either disable signing of the ClickOnce manifest or install the certificate into the certificate store.

C:\Program Files (x86)\MSBuild\14.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (2883, 0)
Cannot import the following key file: . The key file may be password protected. To correct this, try to import the certificate again or import the certificate manually into the current user’s personal certificate store.

I already installed the certificate on the TFS (on local machine) by double-clicking it. But it doesn't solve my problem...

I already tried to installed Windows SDK 7.1 (like recommended in another post). Actually we have SDK 8 on TFS. With tryin to install SDK 7.1, I got the error, that I have just a pre-release version of .NET 4.0 installed. So I tried to install .NET 4.0, but I got the error, that this version is already installed...

I already tried to use "Sign the assembly" with choosing a strong name key file in Visual Studio. But I got the error, that the certificate and the private key cannot be found for the decryption...

I already tried using a certificate without a password. This works fine with building on the TFS. But this is no solution in my case...

I would be so thankful to get help :)


Viewing all 5157 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>