-
- ThreadAbortException after programmatically closing a doc when >1 doc open
by simon mcinnes
- 3 Replies
- Last post
by Misha Shneerson - MSFT
- Hi,
We have a VSTO based Word app that gets into problems when we try to close a Word document programatically. At a certain point we call thisdocument.Close from within the customization project.
This works fine if only one VSTO document is open in Word. However if more than one VSTO doc is open then we get a ThreadAbortException raised. At that point our code will continue to run but Word
-
- Get outlook 2003 path
by YaelS
- 12 Replies
- Last post
by Sue Mosher - Outlook MVP
- Hi, I need to get into my C# com add-in code the user outlook directory.. (where save a new directory on a computer: File-->manage data files-->open folder) C:\Documents and Settings\Owner\Local Settings\Application Data\Microsoft\Outlook
there I want to open/create a txt file. So, How to get this path from vs.net 2003 Thank you!, Yael.
-
- Open VSTO template using word.exe and /t switch
by Khalid K.
- 2 Replies
- Last post
by Cindy Meister
- Greetings again,
I created another very simple "Hello World" VSTO Word Template application. I compiled it and deployed it to the following directory:
c:\projects\testing\WordTemplate15\Doc3.dot
I gave explicit FullTrust security to the above folder and to the entire "c:" for that matter.
When I open the template by browsing through File Explorer, a document bas
-
- ServerDocument.AddCustomization throwing COMException HRESULT: 0x80040407
by victtim
- 7 Replies
- Last post
by victtim
- Hi,
I have upgraded a Excel VSTO 2003 solution to VSTO 2005. Now, I am about to deploy this to my end-users. However, I need to automatically migrate the existing Excel workbooks created which refer to the 2003 Solution (via _AssemblyName0 and _AssemblyLocation0 custom properties) to use the new 2005 solution.
I realize this involves embedding a Runtime Storage Control activeX component wit
-
- Licensing Issue for Access Developers Extensions
by Accrj19
- 2 Replies
- Last post
by Accrj19
- Hello, if anyone can help me or point me in the right direction, it would be greatly appreciated.
Where I work, we have 3 people that would like to have the Access Developers Extensions (ADE's) and the Package Wizard for the purpose of distributing Access 2003 applications to users who do not have Access on their machines.
We were wondering if this meant that we need to purchase 3 li
-
- Limit WinForm to Single Instance with C#?
by Tadwick
- 2 Replies
- Last post
by Tadwick
- I have a windows form that cannot be loaded as modal. How can I ensure that if a user tries to load another instance of the form it checks that an instance exists and makes that one active
I asked this question in the Windows Forms General forum but I couldn't adapt the suggested solution to my VSTO project. If anyone can shed some light on this, I'd be very grateful.
Thanks, Tad
-
- Outlook today folder with a Web page did not load an user control
by MauricioUY
- 8 Replies
- Last post
by X4U
- Hi, I'm working with Outlook 2003, Windows XP and .Net framework 1.1. I had made a web page which have a windows .net user control embedded (in an object tag).
This control runs ok in IE and if I browse this in Outlook it also runs ok, BUT if a put this web page like the deafault web page of Outlook Today folder this page loads but not the user control....
It seems like a security problem..
-
- Storing additional data in an Excel application-level customization
by crissnet
- 1 Replies
- Last post
by Dennis Wallentin
- Hi all,
I need to store some additional data for some cells in a VSTO Excel 2007 add-in.
This could for example, data that the user need not see or edit.
I also need to detect changes of cells's value.
I have try to use a namedRange object but this is an Host control, and Host control are only available in document-level customizations.
The Range object is avaible in applicatio
-
- VSTO & Outlook custom regions
by Jan Kučera
- 6 Replies
- Last post
by Sue Mosher - Outlook MVP
- Hi,
Is there any support for Outlook Custom Regions in VSTO 2005 SE I mean sample FormRegionStartup class like with Ribbon.... (and perhaps without needing to modify registry manually)
I have tried to follow a couple of walkthroughs (both MSDN and from Outlook blogs) but I have a little successs.
System.ArgumentException: The value entered for the DesignMode property is not valid. En
-
- Customization code not running
by AllTec
- 3 Replies
- Last post
by Ji Zhou ¨C MSFT
- Hi On one of my environment , custom code writtern using VSTO SE for my Word application is not getting executed. I did published the Word document to my machine and tried to open word document from published folder but code is not running. Security won't be constraint as I am trying to open from pulished folder. It is running fine on another environment. I need quick help. Thanks AllTec
-
- My Outlook Add-In didn't work on another computer
by Patrick Ebert
- 1 Replies
- Last post
by X4U
- Hello,
I have written an Outlook Add-In by using C# and VSTO2005SE. On my development-computer this Add-in works well. If I use the setup-project to install my Add-In on another computer in first everything seems to be ok. The setup forces the computer installing the 2.0 .Net Framework and the VSTO-Runtime Environment if it¡¯s not installed yet. But while starting Outlook, it changes the regis
-
- Excel 2007 - Failed insert the Picture into correct position by VB 2005
by Leo Ng
- 2 Replies
- Last post
by Leo Ng
- Dim lExcelApp As Microsoft.Office.Interop.Excel.Application
.
.
.
.
lExcelApp.Range( "C3" ).Select()
lExcelApp.ActiveSheet.Pictures.Insert( My .Application.Info.DirectoryPath & "\Pic\" & "Pic1.gif" ).Select()
lExcelApp.Range( "D5" ).Select()
lExcelApp.ActiveSheet.Pictures.Insert( My .Application.Info.DirectoryPath &am
-
- outlook add-in causing bo:heap warning
by royalhale
- 13 Replies
- Last post
by royalhale
- I created an add-in for Outlook 2003 using VS 2005. I built this add-in using VSTO SE as well as with the Shared-add-in template. This add-in places a button on the reply to and new email forms that can be used to send the email data to a webservice function that records it in the database and then calls the send function of Outlook.
Most of the time this works great no matter which build I use
-
- You changed one of the recurrences of this item, and this instance no longer exists. Close any open items and try again.
by Kulvinder
- 2 Replies
- Last post
by Kulvinder
- Hi,
I am getting the following error when i am trying to fetch the AppointmentItem associated with a RecurrenceException in its Exceptions collection :
You changed one of the recurrences of this item, and this instance no longer exists. Close any open items and try again.
My code is as below :
Code Snippet
public partial class ThisAddIn
{
pri
-
- Overwriting the save file dialog
by arj03
- 3 Replies
- Last post
by Dennis Wallentin
- Hi According to my knowledge Office has it's own save file dialog, different from the Windows save file dialog. I was wondering if it was possible to overwrite this with dialog Or if it was possible to extend it in some way. Like if one wants to add a new field for entering extra information when storing a file. Thanks.
-
- How to merge 2 Word docs, and also 2 Powerpoint presentations?
by Neal Hudson
- 8 Replies
- Last post
by Cindy Meister
- Hi,
Not sure how to go about doing this one:
I've got 2 word documents that I want to merge into 1 document programmatically, using .NET - any thoughts
I also need to do the same for 2 Powerpoint presentations
Thanks
-
- visio shared add-in not working on other computers
by BradyGuy
- 2 Replies
- Last post
by BradyGuy
- I have developed a com add in using the new project wizard. I selected shared add-in from the new project wizard. (BTW I am not sure this is a VSTO question but it appeared that most visio com related questions where in this forum)
It works just fine on my development laptop. However, when I use the setup program on another computer the add-in does not work. I get no indication that the add
-
- Commandbar, cannot force to active
by gorgar
- 3 Replies
- Last post
by gorgar
- Hello! I've created a word commandbar add-in that is created on startup and deleted on shutdown. When Word is launched from a third party software application, my add-in toolbar is created but forced to being inactive. Is there any way to ensure this toolbar stays active My code: Private Sub ThisAddIn_Startup(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Startup Try
-
- Create Appointment Item Hidden From User
by Grant Carthew
- 4 Replies
- Last post
by Grant Carthew
- Hi,
I am making an Outlook Add-in for Office 2007 using VSTO 2005 SE. I am querying an SQL Server for Outlook Appointment Item details, and then creating the Appointment Items. When this process runs a typical user will end up creating anywhere from 10 to 100 Appointment Items.
This all works fine but at the moment it is visually disruptive due to the Appointment Item creation process show
-
- loading a form in add-in through Reflection fails
by Anupam99
- 4 Replies
- Last post
by Shirish Pulikkal
- I am creating a outlook 2003 plugin in VS2005 team edition.
Normal form instantiation works and the addin shows up my custom forms just fine. however i am trying to dynamically load a form through something like:
Assembly myassembly = Assembly.LoadFrom("e:\\sampleform1.dll"); .............
The above code gives an exception: {"Could not load file or assembly 'sampleForm1, Ve
-
- Apply decmial numbers to Excel Ranges
by volker.katz
- 4 Replies
- Last post
by volker.katz
- Hi, I've a very basic problem on applying decimal numbers on Excel Ranges. Right now, I'm doing this like this:
Code Snippet
Excel.Range someRange;
someRange.Value2 = "1234"; This works fine. But if I've a decimal number, it doesn't work. I've tried several possibilities:
Code Snippet
someRange.Value2 = "1234.45"; someRange.Value2 = "1234,56&qu
-
- Need help with add-in for microsoft Outlook
by Rope
- 0 Replies
- Last post
by Rope
- Hi there,
Me and a buddy are working on something. And we're having some problems with the Context Menu (the right-click menu).
We wanted to add a button only when the Selection[1] was an mailItem with a certain subject and certain attachments.
This works, however. We also only want the button to appear when the mailitem is right-clicked. Because when you for example right-click t
-
- VSTO OBA starter kit
by pratibha2007
- 10 Replies
- Last post
by pratibha2007
- Could someone point me to the VSTO/OBA starter kit download link. I couldnt find it on the Microsoft website.
Thanks
-
- Couple more VSTO Apppliation-Level Add-In Deployment Questions
by Greg M
- 3 Replies
- Last post
by Cullen Morris
- Thanks in advance for reading this. I'm making progress (I think in this), and have 2 more questions.
Bit of background:
I am building an Excel 2003 appliation level add-in using VSTO SE. Solution references approximately 6 class library projects that are bundled with the add-in project. All projects in solution have signed strong names.
Problem:
Despite successful build and se
-
- VSTO SE Excel Add-in Path
by jk_uk2
- 3 Replies
- Last post
by jk_AnalysisServices
- Hi,
I have an Excel 2003 add-in that I'm currently developing using VSTO SE. I'm stuck on a little problem that I hope someone can help with.....
The add-in must open up an Excel template, that I will send as part of the install package to be in the same directory as the add-in itself.
Therefore, I would have thought that opening up the template would be simple. However, I can