-
- document close event.
by mcnamaragio
- 7 Replies
- Last post
by Cindy Meister
- Hello, I want to use the close event of document object but the thing is that it is still fired even when the user clicks on the close button but then chooses cancel when the prompt is displayed. The microsoft.office.tools.document class has shutdown event that I'd like to use but it is not possible to use this class from another application. What can I do should I create a component using VSTO an
-
- OutLook Signature
by mchuc7719*
- 8 Replies
- Last post
by Sue Mosher - Outlook MVP
- Hello to all,
I need to create an OutLook Add-in, this Add-in need to create a .html file in the location where the signature files are stored.
Now my outlook addin create the file in the location.
My question is, is posible programatically set as default OutLook signature my .html file
I apoligize my english.
Best Regards.
-
- How to get Document Content in byte array
by Satyen
- 7 Replies
- Last post
by Malleswar
- I am creating a MS Word Addin and want to access the content of the document as byte array. I tried doing SaveAs but then when I tried to read (FileStream) it gives me error back saying that 'The process cannot access the file because it is being used by another process'
Any ideas how to resolve this issue Note - I don;t want to close the document.
-
- removing Word blank pages
by gspross
- 7 Replies
- Last post
by Cindy Meister
- I have a Word document generated by another tool that, when printed (and in print preview), inserts blank pages throughout the document. Can I remove them at runtime using VSTO
Also, the page orientation switches thoughout the document, but when printing, the orientation may not return to portrait after a landscape page. Any help with this would be appreciated, otherwise, I will just make the w
-
- Security issue accessing outlook from a Word Add-in
by Mikkel Skovby
- 7 Replies
- Last post
by Sue Mosher - Outlook MVP
- Hello
I am currently developing a Word 2007 add-in (C# VSTO) that access some contact information in outlook (2007). I get the "A program is trying to access e-mail address info... etc." warning. How can this be avoided and is there any possiblity of deploying it automatically
I read a lot about group policy, and trusting COM add-ins, but the addin should be able to run on a standa
-
- Can you wrap a ChartObject in a Tools.Excel.Chart ?
by Gerard75
- 2 Replies
- Last post
by Mohit Gupta - MSFT
- Hi,
I setup my chart (embedded on a Worksheet, not a Chart Sheet) using one added at design time, using SetSourceData and so on. However I may have to add the chart at runtime so that I can delete the chart because I was having issues.
The issue was I set the chart up in a specific way, setting the source data, max scales on the axes etc. But when I try and change the max sc
-
- How to add words to MS Word custom dictionary
by Stoil Pankov
- 6 Replies
- Last post
by Cindy Meister
- I am trying to use the MS Word spell check in my application. It is fine for words witch are in the main dictionary. For my functionality to be complete I need to add the option of adding words to the custom dictionary so that they are not constantly shown as mistakes.
I am opening the .CustomDictionaries.ActiveCustomDictionary file and adding the new word but at that moment MS Word desele
-
- PowerPoint 2007 Add-in...Capture Size Change of PowerPoint Window ???
by D.C
- 2 Replies
- Last post
by D.C
- Hi,
I am working on a project which requires me to create an Add-in to work with PowerPoint 2007 .
I have created a WinForm to hold the buttons required for Add-in as the Add-in requires to have a Floating Toolbar.
Now here we don't have any event as WindowSize in PowerPoint like in Word.
I
want to change the location of the Floating Toolbar(WinForm) if the PowerPoint
W
-
- Memory corrupted when AddControl and Validation are used
by sameera
- 8 Replies
- Last post
by sameera
- Hi, I have a Excel VSTO project in which I populate a worksheet with data table that I fetch from elsewhere. While inserting data to the worksheet I insert validation rules to make cells readonly (XlFormatConditionOperator.xlEqual), to have drop down lists (XlFormatConditionOperator.xlBetween) etc. This was all working fine. Then there was a requirement to have Add/Update/Delete buttons for each o
-
- C# UserProperties
by AndyJump
- 14 Replies
- Last post
by Sue Mosher - Outlook MVP
- This has been driving me nuts :/
I have this method (SetArchived):
Code Snippet
public static void SetArchived(MSOutlook. MailItem mailItem, bool value)
{
if (mailItem.UserProperties[ARCHIVEDPROPERTYNAME] == null )
{
mailItem.UserProperties.Add(ARCHIVEDPROPERTYNAME, MSOutlook. OlUserPropertyType .olYesNo, false , MSOutlook. OlUserPropertyType .olY
-
- get started for VSTO SE and Excel 2003
by ZZhang
- 3 Replies
- Last post
by Creamportion
- Hello,
I am new to VSTO, and like to learn. Is there sample or walkthrough for VSTO SE and Excel 2003 I'd like to use new SE version and not office 2007.
Thanks!
-Z
-
- Context menu item calls a function several times
by Gastiflex
- 5 Replies
- Last post
by Cindy Meister
- Hi, I'm working on an add-in that adds context menu items in Word2007. The context menu is modified at the startup. I've added in the ribbon a button that calls a dialog box that allows the user to customize the context menu by selecting the items to display or not. The selected items are saved in the registry to display them at the startup. At the startup, the context menu works perfectely : the
-
- How can i use VSTO 2005 to open, modify ans save a word document directly on server(IIs on local machin) in asp.net application?
by Vijay Panchal
- 9 Replies
- Last post
by jinishans
- hi
I want to open , modify and save a microsoft document file directly on server (on IIS on my machine). Is it possible with VSTO 2005 with asp.net If yes then how. Pls help me.
Thank in advance
Vijay panchal
-
- SuperTip and Editbox
by Daniel Bj&&
- 1 Replies
- Last post
by Ji Zhou ¨C MSFT
- Hi, I have two problems, Problem 1, I want to remove the lowerpart of the SuperTip in my own ribbon. The part with the Gearwheel image and "Press F1 for help".. Cant find any information on how to do this... Second problem, i have an editbox, first time you press enter in it, it does a callback to my method, but if you press enter again it wont do the callback. So i would like to either
-
- VSTO Installation Requirements for Office 2007
by Douglas E. Johnson
- 5 Replies
- Last post
by Douglas E. Johnson
- I have Visual Studio 2005 installed. Must I purchase a copy of VSTO
2005 to develop projects for Office 2007 OR is the free download of
VSTO SE enough
My primary need is for data programming for Excel and perhaps Word.
Thank you.
-
- Hyperlink Click Event
by Roman Benko
- 3 Replies
- Last post
by Roman S. Benko
- Hi
I am using VB .Net 2005, Word 2007, and Access 2007. When a user clicks on a hyperlink in a Word document, is there a way to do some custom processing before the link location is opened For example, I would like to check to see if the target file exists. If it doesn't, I would like to extract it from the new "attachment" field in Access and copy it to the target location. Is there
-
- Several Questions regarding vsto SE and Office 2007 (ServerDocument.AddCustomization)
by Picho451970
- 2 Replies
- Last post
by Martin Sawicki - MSFT
- Hi all,
in Office 2003 and VSTO it was possible to create an AddIn as a DLL and then use ServerDocument.AddCustomization to apply the AddIn (custom task pane) to the document.
in Office 2007, I fail doing that - get the message " Could not create a persistence object for the specified file.", t rying to open an existing DOCX file.
any ideas why or how I should implement this
-
- Items returned in synchronization with SharePoint
by Lily Collins
- 3 Replies
- Last post
by Lily Collins
- I am writing an Outlook 2007 add-in with VSTO SE addin that synchronizes a MOSS 2007 calendar list with the default calendar in Outlook.
There is no coding in SharePoint, all of the coding is in Outlook (C#), so the synchronization is really between the SharePoint Lists.pst and the Outlook 2007 default calendar.
Exchange Cache Mode is on.
I have event handlers that catch any a
-
- Word MAil Merge Automation
by etrast
- 9 Replies
- Last post
by Cindy Meister
- I am trying to implement mail merge into our application using .NET as mentioned by c_shah. But the problem is, I am not sure what format the word document needs to be in. (ie., how to create mydoc.dot that is used in that example)
I tried word's inbuilt mail merge functionality to create a template document that can be used from our application. But every time I try to do that, word requires m
-
- Opening word template as a document
by Job Lot
- 4 Replies
- Last post
by Job Lot
- How can I programmatically open a template as a document When I use Application.Documents.Open method to open and pass FileName parameter as path to .dot file it opens the it in .dot format and not .doc
Please help.
Thanks
Code Block
object source = @"c:\temp\mytemplate.dot" ;
this .Application.Documents.Open( ref source, ref missing, ref mi
-
- accessing Current Outlook Application (Me.Application) from a form
by jdrawmer
- 2 Replies
- Last post
by jdrawmer
- Probably just another minor issue but i'm requiring to access the current outlook application (Me.Application from the class) from a custom form, to then access the currently selected item, but obviously Me.Application won't work as its in the form class, and ThisApplication doesn't have any desired affect, i was wondering how you can do it!
Thanks a lot, Jay
-
- How to automate a hyperlink in MS Word using VC++?
by Aldo Jan
- 2 Replies
- Last post
by Cindy Meister
- Hello, I have just started using OLE automation to edit some things in MS word documents using VC++. I have been using this website for the most part and with great results. The part that I am having trouble with now is how to pass a Range object as an argument. an example that works: GetAndInvoke(_pDispApp, OLESTR("Selection"), DISPATCH_PROPERTYGET, _dpNoArgs); _pDispSel = _vRes
-
- PowerPoint Add-In Deployment Problem for 2k7 and 2k3
by syedrizwanm
- 6 Replies
- Last post
by syedrizwanm
- Hi,
I have developed a PowerPoint Addin for office 2003 and 2007 using different project types in VS.Net IDE both having same functionality.
On development machine both the plugins work perfectly.
I am having a very strange problem trying to deploy on "one" machine which is office 2003 deployment only. If I deploy the older version of my add-in it works perfectly on that machine
-
- Excel worksheet ActivateEvent
by jacknsa
- 10 Replies
- Last post
by jacknsa
- Converting some VBA to VSTO. Trying to wire up worksheet event handler at run time - using VB. Works fine for most events (Deactivate, BeforeDoubleClick, etc) but can't assign ActivateEvent handler.
What am I missing
-
- range into array? subscript out of range vba excel
by eyewitness
- 5 Replies
- Last post
by AJ-1
- I have the following code using this array works: myArr = Array("test", "3", "5")
but when i try this: myArr = Range("a1:a3").Value it doesnt work.
This code fails then and it says:subscript out of range:
Set Rng = blad3.range("A:A").Find(What:=myArr(I), _ A