-
- PropertyAccessor.GetProperty Method (C#)
by EagleWizard
- 11 Replies
- Last post
by EagleWizard
- Code Snippet
Outlook. PropertyAccessor pa;
pa = m_olMail.PropertyAccessor;
string propname = "http://schemas.microsoft.com/mapi/proptag/0x0030001E" ;
string sprop = pa.GetProperty(propname).ToString();
I'm using this code to access a property of a mail object in Microsoft Outlook 2007, but I always get a DISP_E_TYPEMISMATCH error
"Message "Typ
-
- Open a template as a document programmtically
by kamald
- 4 Replies
- Last post
by kamald
- Hi,
i want to open a template as new document programattically in word 2007. how can I do that
Thanks,
Kamal
-
- BUG? Data Island cache not updating immediately
by DancesWithBamboo
- 8 Replies
- Last post
by DancesWithBamboo
- I have 2 Word documents that have a parent-child relationship to each other. Document B pulls a string from the data island inside of Document A using the ServerDocument (client side...no web or server here). Both documents are open at the same time. What happens is that when I update the cached string field in A, B doesn't see the updated value until after A has been closed, reopened, and then sa
-
- Possible to Programmatically Discard Checkout?
by CharlieDigital
- 1 Replies
- Last post
by MSDNuser181
- Greetings All,
For a document which is checked out from a SharePoint workspace, is it possible to programmatically discard the document checkout from an add-in
The most reasonable API call would seem to be:
Word.ActiveDocument.CheckIn(false, ref comments, false)
But I have been unsuccessful with this call, which raises the error:
System.Runtime.InteropServic
-
- Question regarding Addin Event Handlers
by WizKid730
- 9 Replies
- Last post
by Sue Mosher - Outlook MVP
- Assuming this sample code line....
This Adds an Event Handler to the Item Reply
((Outlook. ItemEvents_10_Event )currentlySelectedMailItem).Reply += new Microsoft.Office.Interop.Outlook. ItemEvents_10_ReplyEventHandler (my_Reply);
This handles the Event and removes the Event Handler
void my_Reply( object Response, ref bool Cancel)
{
if (Response is Outlook. MailItem
-
- Network Deploy Problems
by Neil Weber
- 4 Replies
- Last post
by younglee
- I am having problems with the network deploy of a Word document code behind. Word comes up but the code behind is not executed. I have successfully deployed the assembly locally (outside of Visual Studio). Looking at the web server access log after loading the document, I see requests for the ".application" and ".dll.manifest." There is no request for the ".dll" which
-
- FV result is being different from Pure Math Calculation ?
by Rushati
- 1 Replies
- Last post
by Cindy Meister
- Could anyone please help me to rectify the following problem.
Compounded ROI Term(Yrs) Term (Months) TotTerm Instalment Halfyearly 8% 6 0 =(6+(0/12)) 6 1000 (=8%/2) =6*2 =1000/2 2 0.04 12 =500
If I use Excel FV Function like this FV(0.04, 12, -500, 0, 1)
The result becomes 7813.42
But if I calculate in
-
- Retrieve list of supported label definitions
by Bruce Baker
- 1 Replies
- Last post
by Cindy Meister
- Hi
From our VB.net 2005, using VSTO 2007 - is it possible to retrieve the list of label options including
a) label manufacturer - e.g. Microsoft, Ace Label, etc
Then for each label manufacturer - each label type including type , height, width, page size
In essence I want to have in my app pretty much the same type of dialog as you get in word 2007.
If so, any pointers to
-
- Outlook configuration Problem
by Mark Hogan
- 13 Replies
- Last post
by Sue Mosher - Outlook MVP
- I am getting error 0x80040F04 while accessing properties of Objects from Outlook. I can not test on these computers as they are not my systems (I am not having these issues and neither are most users, but some have this error). Basically, when ever the program tries to access a property, such as Name, the VSTO throws error 0x80040F04. They have Office 2003 installed and the proper support files. T
-
- ieframe.dll failed to register
by David H.256282
- 3 Replies
- Last post
by Carpet King
- I have an Outlook add-in written in VS2005 (VSTO 2005, not SE) targeted at Outlook 2003.
The add-in contained a reference to the Web Browser Control because the add-in allows the user to click a link that will open up a browser window to a page in an intranet ASP.Net application that is related to the Outlook email or contact record.
However, when IE7 got pushed to my development machine, t
-
- Setup Project Custom Action to set CasPol
by Denis Pitcher
- 6 Replies
- Last post
by Bhupathi Venkatesh
- Ok, final piece to my project. I need to be able to set the CasPol settings as part of a script run in my setup project.
The wonderfully clear MS documentation sugggests that it should be easy to create a custom action to do so, yet all the wizard allows you to do is add files, not add a custom script to run the caspol settings.
Can someone point me to a good resource for doing this I need
-
- Using the Microsoft Office Document Imaging 2003 Viewer Control
by ron nash
- 3 Replies
- Last post
by Ji Zhou ¨C MSFT
- Do we need to have office 2003 installed to be able to use the above.
I have the MDIVWCTL.DLL but can not seem to add it / use it within the IDE
http://msdn2.microsoft.com/en-us/library/aa167614(office.11).aspx
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1758099&SiteID=1
-
- VSTO Excel Formatting & Socket Communications ?
by Onyx Ind
- 4 Replies
- Last post
by Onyx Ind
- Hello-
I've created a small VSTO C# 2005SE Application that uses the Action Pane as a Graphical Interface allowing Production Machine operators to load data from an MSExcel2003 Spreadsheet into a PLC (Dedicated device that controls machine functions) over a Synchronous Socket.
Socket Comm
As a machine controls guy, I am a bit out of my element... but so far, so ok. All data transfer
-
- Output Window Grid for Database Projects
by Bobby T.
- 1 Replies
- Last post
by Misha Shneerson - MSFT
- Does anyone know how to turn on the grid in the output window for SQL Query output in Visual Studio Professional 2005
If so, send me a message at
robert.letts@tdsecurities.com
I am at the orifice now.
Bob
-
- office 2007 question??? (Please help me!)
by Lei Hua
- 6 Replies
- Last post
by Ji Zhou ¨C MSFT
- p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
a:link, span.MsoHyperlink
{color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;color:windowtext;}
span.EmailStyle18
{font-family:Arial;color:navy;}
@page Section1
-
- Addin not loading
by gpeterson69
- 3 Replies
- Last post
by Ji Zhou ¨C MSFT
- Hi there,
I created an addin which has been loading fine up to now when I run it from VS2005 to test. The only problem I had before with it not loading was when my xml Ribbon was not formed well e.g. space in the id field. I've checked that and there is no problem there. (I used the custom UI tool to check the form) I had started to add code to my project to create an excel object so that I
-
- Outlook Contacts Primary Key
by Jassim Rahma
- 4 Replies
- Last post
by Jassim Rahma
- I want to develop a system which has the same outlook fields but in SQL Server with an option to update Microosft Outlook from the SQL Server data.. I want to what field should I check to avoid duplication
keep in mind that name is not unique!!
-
- Only have Office 2007 installed, can't install VSTO 2005 (1st ed.) templates
by NCGordon
- 5 Replies
- Last post
by McLean Schofield - MSFT
- Help!
How can I get the templates from VSTO 1st ed. onto my machine running Office 2007 and VSTO 2d ed. VSTO 1 won't let me install it on my machine that has only Office 2007 on it.
(I put Office 2007 on a testing machine because I still have to write and support tools for Office 2003, and did not want the versions of Office to conflict.)
Tech info: I'm running Win XP SP2 and
-
- Add Image to Outlook ToolBarButton w/VSTO 2005 SE for OL2003+
by Tadwick
- 2 Replies
- Last post
by Tadwick
- Hi,
I've googled and searched MSDN including this forum and there seem to be a myriad ways of adding images to Office command bar buttons. One article
http://msdn2.microsoft.com/en-gb/library/ms268864(VS.80).aspx
points out that the technique therein does not apply to VSTO 2005 SE. Can anyone suggest a straightforward method of doing this with VSTO 2005 SE and not using the ribbon since I
-
- Copying PowerPoint Slides using C#
by andyfraser
- 2 Replies
- Last post
by andyfraser
- Hi,
I have written a small C# application that merges one or more Powerpoint presentations into one master presentation using the code shown below. This works great except for the fact that the styles of the source presentations do not get copied across (i.e. I can see the presentation text and images and transitions but my slide background fades do not appear). I would really appreciate so
-
- To format a column of Excel to Text
by Anpiro
- 1 Replies
- Last post
by Dennis Wallentin
- Hi! I am trying to format a column to text and cannot. The failure this one in (Excel. Range) worksheet. Cells [1, 3]) .EntireColumn. NumberFormat = "*"; I must use another method but not which Can they help me
-
- JournalItems: Adding Contacts and Companies
by Apuhjee
- 4 Replies
- Last post
by Apuhjee
- Could someone please post some example code for creating a new JournalItem associated with a Contact Attempting to set either the ContactNames or Companies properties is seeming to have no effect.
We have a large Access database of customers with an associated phone log that we're trying to get into Outlook. Without the ability to programmatically link Contacts and JournalItems, we
-
- QueryInterface for interface Excel._Application failed. (VS 2003)
by edwinzzz
- 3 Replies
- Last post
by Dennis Wallentin
- Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oExcel As Excel.Application
Dim oBook As Object
Try
oExcel = New Excel.Application
oExcel.DisplayAlerts = False
oBook = oExcel.Workbooks.Add
MessageBox.Show("DONE")
Catch ex As Exception
TextBox1.Text = ex.Message
-
- Unable to cast object of type 'System.__ComObject' to type 'Microsoft.Office.Interop.Outlook.ApplicationClass'.
by AndersL
- 4 Replies
- Last post
by AndersL
- Hi,
I am trying to create an add-in for Outlook 2003, using VS2005, C#2.0, O2003PIA and VSTO. Outlook SP2 is installed.
I have created an Outlook add-in project, but get a cast exception when I am trying to create the application object - which I need to be able to add a button in UI.
I have been searching forever, but the only thing I find are people having trouble accessing AppointmentI
-
- Addin does not load when ActiveSync accesses Outlook
by Markus_77
- 2 Replies
- Last post
by Ji Zhou ¨C MSFT
- Does anyone know if there is a way to solve or go around the following issue
Steps to reproduce behaviour:
1. Install a VSTO2005 SE Outlook addin. 2. Let ActiveSync connect to a mobile device and sync. This will start Outlook.EXE, but no UI. 3. Start the Outlook UI. The addin loads properly. 4. Close the Outlook UI. Outlook will be minimized to the system tray. The ShutDown event of the