index > Visual Studio Tools for Office > Two questions for creating Outlook AddIn with VSTO

Two questions for creating Outlook AddIn with VSTO


Hello,

I am using VSTO to create Outlook AddIn and have following questions:

1) In the calendar view, I want to find the time range (startDateTime and endDateTime) when a user selects certain range using mouse. Basically, I want to allow a user to select the time range with cursor and group all the appointments that fall within that time range in a group. I looked extensively through OOM but couldn't find any way to determine the time range for calendar selection.

2) Is there any way to modify (e.g. add an additional menu item) in the right click conext menu that pops up on the calendar view? I can create additional toolbar and menubar at the top, but couldn't find any way to add additional menu items in the popup context menu.

thanks in advance,

-Bijal

Bijal Modi

Hi Bijal,

To answer #1, unfortunately there isn?? a way in Outlook to determine the range that is selected in the calendar.

Ryan Gregg
For #1, there is a possible workaround: Create a new appointment using the New button on the toolbar and use the date/time values from that appointment. See http://www.outlookcode.com/codedetail.aspx?id=616 for a VBA sample.
Sue Mosher - Outlook MVP
reply 3

You can use google to search for other answers

 

More Articles

Update KB908002 not installing during word-addin setup
i need help creating a macro for a button
VBA for Powerpoint
Identify a Word Range
auto parsing HYPERLINKs
Cannot find wrapper assembly for type library "Microsoft.Off...
Can destroy active inspector ?
Serious Error while debugging
Print an excel file
Getting events when the contents of a Word Range is modified.
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

SmartTag in MS WORD
NamedRanges....weird
Getting XPath expression for an XMLNode
_ComObject specified cast exception call…
IIS
Error:"The Assembly could not be fo…
Trying to force installer to use VSTOR.e…
create a new worksheet in a excel file u…
Embedding VSTO Spreadsheet in .NET Windo…
How to change Axis TickLabel Position of…
Deploying a Word Solution with an Action…
XML View and how to change reading pane …
.h include files not Found!!
basic mailmerge function
Ribbon in Excel 2003

Hot Articles

vsto - .Net framework 2 security - publi…
API request: Document is definitely bein…
.net application with an excel interface
How to do something when create a new wo…
Any size restrictions of Interop.Word.Xm…
Measure the width of a string contained …
How to use InfoPath with VS .Net
outlook addins created with VB6
Microsoft Visual Debug Library problem i…
Position cursor after inserted nodes
Problem when Publishing VSTO office 2007…
How to check the Message if it has been …
Definig custom help for user defined fun…
DocumentChange event is fired when dialo…
Question on VSTO for Exchange

Recommend Articles

Binding shortcut-keys in Word
Load and Save XML Page using MSAccess
IDTExtensibility2.OnConnection not calle…
Microsoft Office Solution Accelerator fo…
Override send event
Developing Smart Tags with .NET 2.0
VSTO Outlook Addin - How to disable regi…
Hide Gridlines in worksheets
Speed -- reading values in Excel
Can't open Office projects with VS 2005 …
Display Master-Detail information in Exc…
Where is my cursor?
Excel question
Creating word template with bookmarks. i…
Visual Studio Tools for Office "V3&…