Quantcast
Channel: Outlook for Developers forum
Viewing all 6421 articles
Browse latest View live

Capturing the Move ribbon bar option in Outlook

$
0
0

In short, does Outlook expose an event which can be subscribed to so as to intercept a user clicking theMove ribbon bar option?

I would like to ascertain the target folder and process the movement of the mail object in the same way as existing code does when the user drags and drops an email from, say, the Inbox to another folder in the TreeView.

I am developing with Outlook 2013 but would like any solution to be applicable to any version from 2007 onwards.


makeEwsRequestAsync function in Outook 2016 Windows Desktop Client doesn't work

$
0
0

I'm developing outlook addin, and need to use makeEwsRequestAsync to create appointment in user's EWS. I tested in multiple combinations such as Mac/Windows, Chrome/Firefox, Office365/Exchange etc. However, only in Outlook 2016 for Windows + Exchange Server 2013 account doesn't work. 
Has anyone meet with this issue also? How can I solve this issue?

Thanks very much!

Outlook Reminder Window Focus

$
0
0

Hey guys,

I've been playing with the library in .NET and trying to review the MSDN help files for the iterop.  I've found the Application.Reminders section and have debugged it, but it's really overwhelming.  I seen examples on how to add reminders, appointments, etc.  But what I'm trying to do is manipulate the Reminder window itself.  Specifically when to bring it into focus and when not to. Can anyone point me in the right direction through these libraries or if it's possible through the interop libraries?

Adding Command Button to Email results

$
0
0

I have created an email form in Outlook to record the results of periodic audits performed in the factory. What I am trying to do now is create a command button on the form that will allow the recipient to one click and then send corrections to the audit to the audit team. 

I am trying to use a CommandButton but I am struggling a little bit to find a code to make that work. 

Basically, the supervisor will receive an email that says you had these discrepancies in our recent audit of your area. Please correct these discrepancies and then email the coordinator by clicking the button below. 

Can someone help with this? If it is not a CommandButton I am okay with that but an alternative would be good as well. I am not a coder, but I can follow directions and I know how to get around the applications pretty well. 

Thanks

Out of Office web service

$
0
0

Hi all together,

say is there a web service which you can use to get the "out of office" state of an user in Outlook (for example an AD user)? 

If yes where can I find informations about it? Found nothing on the internet.

I no is there another way to get this state from an external source/application like SharePoint?

Best regards,

André 

Make all computers able to view blu ray or dvd

$
0
0
Microsoft is a giant and they could easily make this happen without anyone else involved

Microsoft account is experiencing technical problems. Please try again later.

$
0
0

Hey . I am using outloop api .  When  user enters credentials for authentication . I get following error .

We're unable to complete your request

Microsoft account is experiencing technical problems. Please try again later.

I want to ask that this problem is from my side or Microsoft is having problem.

compose email with visual studio (VB), automatically inserting email address and subject, then leave it to the user to complete

$
0
0

Hi I program in visual studio (VB), I want to automatically insert an email address and subject, then open up this new email for the user, who will then complete the rest and then sent it manually.

Have tried the following. No new email message was found.

Thanks

Imports outlook = Microsoft.Office.Interop.Outlook
Public Class Form1

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click


        Dim OutlookMessage As outlook.MailItem
        Dim AppOutlook As New outlook.Application

        Dim objNS As outlook._NameSpace = AppOutlook.Session
        Dim objFolder As outlook.MAPIFolder
        objFolder = objNS.GetDefaultFolder(outlook.OlDefaultFolders.olFolderDrafts)

        Try
            OutlookMessage = AppOutlook.CreateItem(outlook.OlItemType.olMailItem)
            Dim Recipents As outlook.Recipients = OutlookMessage.Recipients
            Recipents.Add("myemail@hotmail.com")
            OutlookMessage.Subject = "Sending through Outlook"
        Catch ex As Exception
            MessageBox.Show("Mail could not be sent")
        Finally
            OutlookMessage = Nothing
            AppOutlook = Nothing
        End Try


    End Sub
End Class


How to Convert Outlook PST Emails to PDF ?

$
0
0

As a Outlook User I have a large amount of emails configured in my account and for portability and printing options I thought of converting my PST files into PDF but I didn't found any reliable solution for same. According to me it will be the best solution for keeping my selected emails in hard copy format and moving them from one place to another. All suggestions are welcomed and kindly provide me the apt solution for PST emails to PDF conversion.

Thanks in Advance to all!!!

Jack Rider

Outlook mail items appear as drafts in Web App inbox

$
0
0

Hello,

We develop an Outlook Add-in which processes mail items and saves the modified items afterwards. Now, we came across a strange problem with Exchange accounts: all processed mail items in the inbox are flagged as drafts - but only in the Outlook Web App, NOT in Outlook itself.

Checking the items with MFCMAPI, we could determine that no draft flag is actually set in the mail item itself.

Any idea, how the web app determines whether an item should be handled as draft or not? We only see this problem when the client uses Outlook 2010/2013/2016 through Exchange. With IMAP, this doesn't happen.

Thank you in advance!

ActiveSync mail items won't get synced back to server

$
0
0

I have an Outlook add-in which makes some changes to the Outlook mail item and saves the changes afterwards.

My problem is that if I use an ActiveSync account, those changes won't get synced back to the server. Therefore, the mail items are different in the Outlook app and the web app.

Does anybody know more about the ActiveSync synchronisation procedure or why my changes aren't sent to the server correctly?

How to get 'RoamingSettings' stored with Office.js API from VSTO/COM add-in

$
0
0
Hello,

Office.js API has ability to store roaming settings into the user's mailbox. Please refer to RoamingSettings. Is it possible to retrieve and work with this settings from the code of VSTO/COM add-in. I cannot find the stored object with Outlook Spy anywhere. Basically I would like to share user settings for our Desktop Outlook add-in and Office 365 app.

Thank you.

Slava Ivanov

Task Custom Form - Date fields auto change the font size

$
0
0

Dear friends


Recently my custom form started acting up. Not sure what happened, but the font in date fields automatically change to a bigger size and instead of appearing, also as set, in the format dd-mm-yyyy, it shows like: wed, 14--10-2016

Any idea what might be causing this?

The date fields are set as font size 8, dd-mm-yyyy - 12-Oct-2016

After publishing the form, it resets and shows font size 12, and different format - Tue, 12-Oct-16

Really apriciate you help


Thanks in advance

How to edit a VBA file to allow copy and creation of subfolders

$
0
0

Here is what I have written so far. The problem is I have multiple subfolders that I am unable to get outlook to move those emails into the same subfolders in the destination. How do I edit my VBA to allow the copy and creation of the subfolders?

Sub CopyMail()

    Dim objOutlook As Outlook.Application
    Dim objNamespace As Outlook.NameSpace
    Dim objSourceFolder As Outlook.MAPIFolder
    Dim objDestFolder As Outlook.MAPIFolder
    Dim objVariant As Variant
    Dim lngCopyItems As Long
    Dim intCount As Integer
    Dim intDateDiff As Integer
    Dim strDestFolder As String

    Set objOutlook = Application
    Set objNamespace = objOutlook.GetNamespace("MAPI")
    Set objSourceFolder = objNamespace.GetDefaultFolder(olFolderInbox)

    Set objDestFolder = objNamespace.Folders("email address").Folders("Over 90 Days")

    For intCount = objSourceFolder.Items.Count To 1 Step -1
        Set objVariant = objSourceFolder.Items.Item(intCount)
        DoEvents
        If objVariant.Class = olMail Then

             intDateDiff = DateDiff("d", objVariant.ReceivedTime, Now)

            If intDateDiff > 90 Then

              objVariant.Move objDestFolder

               lngCopyItems = lngMovedItems + 1

            End If
        End If
    Next

    MsgBox "Copy " & lngCopyItems & " messages(s)."
Set objDestFolder = Nothing
End Sub

                                                   

Outlook Task - Combine yes/no and date field

$
0
0

Dear friends

I'm trying to do the following but can't seem to get it

In the custom form, we have several fields to be checked as they are done (yes/no field)

What we want is to have an automatic field that records the date in wich the check is done.

Anyone have a suggestion on how to accomplish this?

Really appreciatte your help

Thanks!



Updating Category field in Outlook 2016 using VBA

$
0
0

Previously, I had used a MAPI Outlook account and was able to create multiple categories associated with contacts in Outlook and have them synchronized across several clients. That went away when I was upgraded to ESA, which does not support category synchronization. I had been waiting for the upgrade of my account to Microsoft Exchange as it had been posted that "Categories" would now be synchronized. I had kept one of my Outlook clients as a MAPI protocol with my categories intact but not synchronized. When I was updated to Microsoft Exchange the categories were not included during this upgrade. I now want to use Outlook VBA to transfer these categories from a PST export of a former backup when my client account was still MAPI and the categories were specified for each contact.  I have been able to see the various Microsoft Exchange accounts (I have six different MS Exchange accounts in this client) using VBA and have been able to see individual contact items within the default account.  I have opened the PST file in this client and can see the contacts with the category information.  My problem now is how to select a specific account (not the default account) and to then select the category information from the Outlook data file and put this information into the selected account. I have been unable to find any code examples to solve this problem.  I'm not a professional programmer and know just enough to do some trial and error.  Normally, I get a lot of help with the Macro recorders in the other Office applications, but this capability is missing in Outlook.

Thanks in advance,

J. Austin


John A

Help with calendars

$
0
0

Hi guys.

Our software crew would like to make an app which would at the end produce a meeting request for Outlook users.

Maybe a little bit dumb question: "Do you perhaps know what kind of SDK can they use, or what are the requirements to create a calendar request"?

With best regards


bostjanc

Pasting Hyperlinks into an existing email after Saving Attachments to a local Drive

$
0
0

Hi All

I have some code that save attachments from an email to a local drive and pastes the location of the attachments at the top of the email body as plain text.  I have been looking for solution that will paste the locations as hyperlinks rather than plain text but have failed miserably.  Can anyone help.advise on how I change the code so I past the path as a hyperlink.

In addition is there anyway of ignoring signature block attachments as I don't need to save those.  My current code is below for information.

Any help/advice would be appreciated.

Public Sub SaveAttachments()
Dim objOL As Outlook.Application
Dim pobjMsg As Outlook.mailItem 'Object
Dim objSelection As Outlook.Selection

' Get the path to your My Documents folder
strFolderpath = CreateObject("WScript.Shell").SpecialFolders(16)
On Error Resume Next

' Instantiate an Outlook Application object.
Set objOL = CreateObject("Outlook.Application")

' Get the collection of selected objects.
Set objSelection = objOL.ActiveExplorer.Selection

For Each pobjMsg In objSelection
    SaveAttachments_Parameter pobjMsg
Next

ExitSub:

Set pobjMsg = Nothing
Set objSelection = Nothing
Set objOL = Nothing
MsgBox ("Attachment(s) have been saved to the Customer EDD Drive......")
End Sub

Public Sub SaveAttachments_Parameter(objMsg As mailItem)
Dim objAttachments As Outlook.Attachments
Dim i As Long
Dim lngCount As Long
Dim strFile As String
Dim strFolderpath As String
Dim strDeletedFiles As String

' Get the path to your My Documents folder
strFolderpath = CreateObject("WScript.Shell").SpecialFolders(16)
On Error Resume Next

' Set the Attachment folder.
strFolderpath = "D:\Test Attachmemnts\"
'strFolderpath = "Y:\03 - PMO Admin\07 - Documentation\22 SAVED ATTACHMENTS\"
' Get the Attachments collection of the item.
Set objAttachments = objMsg.Attachments
lngCount = objAttachments.Count

If lngCount > 0 Then

    ' We need to use a count down loop for removing items
    ' from a collection. Otherwise, the loop counter gets
    ' confused and only every other item is removed.
    For i = lngCount To 1 Step -1

        ' Save attachment before deleting from item.
        ' Get the file name.
        strFile = objAttachments.Item(i).FileName

        ' Combine with the path to the Temp folder.
        strFile = strFolderpath & objMsg.SenderName & " _ " & Format(objMsg.ReceivedTime, "yyyy-MM-dd h-mm-ss") & " _ " & strFile

        ' Save the attachment as a file.
        objAttachments.Item(i).SaveAsFile strFile

        ' Delete the attachment.
        objAttachments.Item(i).Delete

        'write the save as path to a string to add to the message
        'check for html and use html tags in link
        If objMsg.BodyFormat <> olFormatHTML Then
            strDeletedFiles = strDeletedFiles & vbCrLf & "" & ""
                Else
            strDeletedFiles = strDeletedFiles + "<br />" & "" & "" & strFile & ""
        End If
    Next i
End If

' Adds the filename string to the message body and save it
' Check for HTML body
'.htmlbody = RangetoHTML(Rng) & "(The file with the full details can be found <a href='" & sFullName & "'>here</a>.)"
If objMsg.BodyFormat <> olFormatHTML Then
    objMsg.Body = "The attachment(s) were saved to: <a href='" & strDeletedFiles & "'></a>" & vbCrLf & objMsg.Body
        Else
    objMsg.HTMLBody = "The file(s) were saved to: <A " & strDeletedFiles & ">URL Text</A>" & "<br />" & objMsg.HTMLBody
End If
objMsg.Save
ExitSub:

Set objAttachments = Nothing
Set objMsg = Nothing
Set objOL = Nothing
End Sub


Tony


TKHussar

Holiday with Outlook Calendar

$
0
0

Hi

We are doing the holiday request system in C# and Sqlserver.  

I’ve been asked to integrate our holiday  table which is stored in an SQL Database with an outlook calendar, so that all holidays show in outlook etc.   

Has anyone any experience in this and if so could you help point me in the right direction?

Regards

Pol

 



polachan

Mails getting deposited to Outbox folder only, if I handle Outbox folder's ItemAdd event.

$
0
0

I had developed a VSTO plugin and had handled ItemAdd event of Outlook folders viz. Inbox, Outbox, and SentItems. So whenever for new MailItem we click onItemSend it doesn't get Sent, it's deposited to Outbox folder only. And if I skip handling ItemAdd event of Outbox folder then it works fine.

Can anyone please help.

Regards.


Viewing all 6421 articles
Browse latest View live


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