{"action":"created","issue":{"url":"https://api.github.com/repos/VBA-tools/VBA-Web/issues/199","repository_url":"https://api.github.com/repos/VBA-tools/VBA-Web","labels_url":"https://api.github.com/repos/VBA-tools/VBA-Web/issues/199/labels{/name}","comments_url":"https://api.github.com/repos/VBA-tools/VBA-Web/issues/199/comments","events_url":"https://api.github.com/repos/VBA-tools/VBA-Web/issues/199/events","html_url":"https://github.com/VBA-tools/VBA-Web/issues/199","id":136370349,"number":199,"title":"VBA-Web in Outlook","user":{"login":"Sophist-UK","id":3001893,"avatar_url":"https://avatars.githubusercontent.com/u/3001893?v=3","gravatar_id":"","url":"https://api.github.com/users/Sophist-UK","html_url":"https://github.com/Sophist-UK","followers_url":"https://api.github.com/users/Sophist-UK/followers","following_url":"https://api.github.com/users/Sophist-UK/following{/other_user}","gists_url":"https://api.github.com/users/Sophist-UK/gists{/gist_id}","starred_url":"https://api.github.com/users/Sophist-UK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sophist-UK/subscriptions","organizations_url":"https://api.github.com/users/Sophist-UK/orgs","repos_url":"https://api.github.com/users/Sophist-UK/repos","events_url":"https://api.github.com/users/Sophist-UK/events{/privacy}","received_events_url":"https://api.github.com/users/Sophist-UK/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-25T12:10:34Z","updated_at":"2016-06-16T00:08:39Z","closed_at":null,"body":"I am trying to make VBA-Web work in Outlook (to do automatic web services calls when particular emails arrive). Since these will be in the background and emails could come in in a bunch, I want these to run in the background. I am making progress towards making VBA-Web work in Outlook, but there is one issue I need some advice on...\r\n\r\nIn module `WebAsyncWrapper` subroutine `web_StartTimeoutTimer` it uses `Application.OnTime` to set an asynchronous timeout timer for the web call. `Application.OnTime` is an Excel specific method, so this doesn't work in Outlook.\r\n\r\nI have though about replacing this with an Outlook Task Reminder - but before I start coding this I thought I would ask why `WebAsyncWrapper` uses its own timeout timer, rather than using the `WinHttpRequest.SetTimeouts` and the OnError event?\r\n\r\nIt seems to me that:\r\n\r\n1. We should have an OnError event handler in any case to handle other errors\r\n2. Using SetTimeouts and OnError would be simpler and more compatible than Application.OnTime - and would have greater granularity (millisecs rather than secs).\r\n\r\nIf you agree with the principle, I am happy to code, test and submit as a PR. "},"comment":{"url":"https://api.github.com/repos/VBA-tools/VBA-Web/issues/comments/226355398","html_url":"https://github.com/VBA-tools/VBA-Web/issues/199#issuecomment-226355398","issue_url":"https://api.github.com/repos/VBA-tools/VBA-Web/issues/199","id":226355398,"user":{"login":"timhall","id":1211148,"avatar_url":"https://avatars.githubusercontent.com/u/1211148?v=3","gravatar_id":"","url":"https://api.github.com/users/timhall","html_url":"https://github.com/timhall","followers_url":"https://api.github.com/users/timhall/followers","following_url":"https://api.github.com/users/timhall/following{/other_user}","gists_url":"https://api.github.com/users/timhall/gists{/gist_id}","starred_url":"https://api.github.com/users/timhall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timhall/subscriptions","organizations_url":"https://api.github.com/users/timhall/orgs","repos_url":"https://api.github.com/users/timhall/repos","events_url":"https://api.github.com/users/timhall/events{/privacy}","received_events_url":"https://api.github.com/users/timhall/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T00:08:39Z","updated_at":"2016-06-16T00:08:39Z","body":"Hi @dlong500 this issue is particular to `WebAsyncWrapper` (an optional class). I know a few people that have used VBA-Web successfully with Outlook, so I'd say give it a try. Let me know if you run into any other Outlook-specific issues. "}}
{"actor":{"display_login":"timhall"}}