w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Create a Microsoft Outlook Task from Lotus Notes
with testing (and googling) I have found that .Recipients.Add("Joe Soap") will correctly add the name "Joe Soap" to the "Send To" field providing that "Joe Soap" has previously been defined as a contact in Outlook.

Categories : Vba

How to handle Outlook's "Outlook is using an old copy of your data file (.ost). Exit outlook and blablabla" error at an API level using VBScript?
You could try to avoid the use of outlook.ost at all. Turn off cached mode (for Exchange) or turn off any Send/Receive settings for folders. Close Outlook and rename outlook.ost to .old. Open Outlook and check too see if outlook.ost is not created again.

Categories : Api

Rx - How to create IObservable from Task such that unsubscribing cancels the task?
Here's the simplest way I can think of, using Observable.Create: static IObservable<int> SomeRxWork() { return Observable.Create<int>(o => { CancellationTokenSource cts = new CancellationTokenSource(); IDisposable sub = SomeAsyncWork(cts.Token).ToObservable().Subscribe(o); return new CompositeDisposable(sub, new CancellationDisposable(cts)); }); } static Task<int> SomeAsyncWork(CancellationToken token); The initial way I hinted at in the comments is actually rather verbose: static IObservable<int> SomeRxWork() { return Observable.Create<int>(async (o, token) => { try { o.OnNext(await SomeAsyncWork(token)); o.OnCompleted(); } catch (OperationCanceledEx

Categories : C#

Gradle create multiple task types in one task
There is no zip method in Gradle. You can either use a task of type Zip (preferred), or use the Ant zip task. Also, you wouldn't typically go through a staging directory, but put contents into the zip right from their original locations. If necessary, you would declare another task that creates an exploded zip (and shares much of the Zip task's definition).

Categories : Gradle

New email create event in outlook 2010 using C#
You can use this code this.Application.NewMailEx += new Outlook.ApplicationEvents_11_NewMailExEventHandler(olApp_NewMail); private void olApp_NewMail(String itemCollection) { //write some code here }

Categories : Visual Studio 2010

how to create button in Outlook Mac 2011 programatically?
I don't know if you can add a button or not, but you could write an AppleScript and have it available from the Script menu. Open the AppleScript Editor app. Choose "Preferences..." from the menu Click on the icon called "General". Check the checkbox called "Show script menu in menu bar". Now, you should see a script menu in the upper, right-hand part of your menu bar. Develop a script such as the following for testing: set thisAccount to choose from list {"Account 1", "Account 2", "Account 3"} if thisAccount is equal to false then return display dialog "The account chosen was: " & thisAccount Save this script in the folder: ~/Library/Scripts Depending upon your version of OS X, the folder ~/Library may be hidden. If so, you can use a command such as the following, from Terminal,

Categories : Osx

Unable to create a contact in Outlook using VBA from excel
You have to create the item from the application itself (i.e. your runoutlook Outlook Object) and then move it to the desired folder. Starting at where you encounter the error, you can update your code with the following // Creates a contact Item in the default Contacts folder Set olitem = runoutlook.CreateItem(olContactItem) With olitem .FullName = Trim(Range("A" & i).Value) .Company = Trim(Range("B" & i).Value) ' may need to change to "CompanyName" .Email1Address = Range("G" & i).Value .Move DestFldr:=myfolder2 // moves the contact to the indicated folder .Save End With As for the deletion of all the contacts, you can try this code instead Do While myfolder2.Items.Count <> 0 myfolder2.Items.Remove (1) Loop

Categories : Vba

Create an Outlook plugin using VS Express Edition
Do not create a new instance of the Outlook.Application object. Use the instance passed to you on startup. More than that, if you are processing the Application.Startup event, you already have a pointer to the Application object, what do you need a new one for?

Categories : C#

Create macro in Outlook to extract data from reports
Option Explicit 'Requires me to define all variables that are called in the sub 'Declaring my global variables below Dim emailText As String 'Used to capture email text Dim xlSheet As Object 'Set the xlSheet that you are working on Dim olItem As Outlook.MailItem 'Setting outlook mail item Dim xlApp As Object 'No idea what this is used for Dim xlWB As Object 'Used to open the workbook Dim dbApp As Object 'No idea what this is used for Dim dbTable As Object 'Used to open the workbook Dim bXStarted As Boolean 'Boolean operator to tell if excel is started Dim cXStarted As Boolean 'Boolean operator to tell if access is started Dim vText As Variant Dim vPara As Variant Dim sText As String Dim vItem As Variant Dim oRng As Range Dim i As Long, rCount As Long, sCount As Long Dim sLink A

Categories : Excel

How to program availability check and to create new meeting to Outlook?
Exchange natively shows user calendar availability exposed in EWS (Exchange Web Services), your network administrator must configure Exchange server enabling EWS. But guess what... Office 365 (as I know) have EWS services enabled, due exchange is part of office 365 offer. As EWS are normal Web services you should create a "service stub" or proxy in whatever you use in java to create services references mapping wsdl files. Exchanged EWS is my preferred solution. Hope this helps. This is the reference page, this link show how to use the service references from C# to make the right API calls. http://msdn.microsoft.com/en-us/library/exchange/aa494212(v=exchg.140).aspx static void GetUserAvailability(ExchangeServiceBinding esb) { // Identify the time to compare free/busy information

Categories : Java

Create Outlook Appointment from MS Project Tasks w/ VBA Script
I tried this Macro and it worked, you just need to transfer the Macro to your global templates and add it as an Add in to the ribbon to use it whenever needed. http://www.clearlyandsimply.com/clearly_and_simply/2009/09/export-microsoft-project-tasks-to-outlook.html

Categories : Vba

How to create an E-Mail in Outlook and make it visible for the User
For me this works nicely according to a tutorial on vogella.com. I also tried your minimal code sample and got no error during OLE client creation. I used SWT 4.3, by the way. A little off-topic, but does it have to be Outlook? I mean, do you just want to automate e-mail sending - you could use JavaMail and do it headlessly, i.e. without automating an actual GUI client. The only reasons I can imagine for wishing to use Outlook or another e-mail client are: You need the sent message in your out-box for reference. Outlook is connected to an Exchange server which is configured to not accept SMTP connections as used by JavaMail. You might want to compose a basic message and show it to the user so she can add attachments or edit the text interactively before sending. But if it is just abou

Categories : Java

VS "Send Query to Outlook" does not work if VS is running as administrator and outlook is not
Disable UAC on your system. If you do this then all processes launched by a member of the Administrators group on your system will be run with full administrative rights by default (like XP and previous).

Categories : Windows

Azure Video Upload Task is getting failed @"My PlayReady Task" Error: MediaProcessor : An exception occurred during the execution of the task
What playready license server are you using ? From code perspective everything seems to be looking good. Since playready protection preset has not be included in sample, i assume it looks similar to example in following article: http://msdn.microsoft.com/en-us/library/windowsazure/dn189154.aspx Please make sure that value in licenseAquisitionURL is accessible from public network and your keySeedValue, or a keyID and a contentKey are still valid.

Categories : Azure

Outlook 2007 Add-In Does Not Load on Outlook 2013
Is it not showing any error when you set the environment variable "VSTO_SUPPRESSDISPLAYALERTS" with value "0"? Did you also checked if it is in disabled items list in File => Options => Add-Ins => Manage choose disabled items?

Categories : C#

Why does task wait for Task.Run before executing next code but not for Task.Factory.StartNew?
I'm too not comfortable with all this plumbing but I'll try to answer. First why your second code does not work: you give StartNew an async delegate which is something like Func<Task> so StartNew will return a Task<Task> and you wait on the outer task which ends immediately as it consists in returning the inner Task (not really sure about that) then you await the continuation of the inner task, the inner thread of execution, what you intended to do; but I guess it should be the same if you awaited directly the inner task itself this way: await await Task.Factory.StartNew(async ... Why your first code works: according to the MSDN documentation Task.Run directly returns a Task object, the inner task I guess so you directly await for the inner task, not an intermediate one, so

Categories : C#

When to Create a New Task
Well, the example is specifically showing how to use Task.FromResult, which your second code doesn't use. That said, I disagree with the usage of Task.Run in the example. I'd write it like this, myself: public static Task<string> DownloadStringAsync(string address) { // First try to retrieve the content from cache. string content; if (cachedDownloads.TryGetValue(address, out content)) { return Task.FromResult(content); } // If the result was not in the cache, download the // string and add it to the cache. return DownloadAndCacheStringAsync(address); } private static async Task<string> DownloadAndCacheStringAsync(string address) { var content = await new WebClient().DownloadStringTaskAsync(address); cachedDownloads.TryAdd(address, content); retur

Categories : C#

How to create periodic task
You can try with Observable.Timer which Returns an observable sequence of timer.

Categories : C#

Outlook add-in using redemption in 32 and 64 bit Outlook version
The correct dll will be loaded by the COM system, not your code. As long as both versions are correctly installed and registered in the registry, your code will work without any modifications. Note however that you will not be able to install the 64 bit version of the dll on a 32 bit machine. You might want to look into using RedemptionLoader - you will skip COM registration completely, and RedemptionLoader will load the right dll for you based on the process bitness.

Categories : Misc

Create task in existing MSP project using PSI
Strange behaviour, but any way. I changed the following rows : backendProject.ProjectDataSet project = projectClient.ReadProject(task.ProjectId, backendProject.DataStoreEnum.WorkingStore); projectClient.QueueUpdateProject(jobId, sessionId, project, false); with these ones: backendProject.ProjectDataSet project = new backendProject.ProjectDataSet(); projectClient.QueueAddToProject(jobId, sessionId, project, false); and all worked. Looks like you can add task only to not initialized project.

Categories : C#

how can i create in vb.net a reminder of a task every two weeks
As I understood from your comments, you are interested just in the interval-analysis part, that is, in determining whether today's date is before/after the given conditions as defined in your database (with start_date and frequency). Here you have a sample code to take care of this: Dim start_date As Date = Now.AddDays(-14) 'start_date value to be taken from the DB Dim frequency As TimeSpan = TimeSpan.FromDays(14) 'Number of days as a function of the given frequency in your DB; this is for 2W. Dim elapsedDays As TimeSpan = Now.Subtract(start_date) If (elapsedDays >= frequency) Then 'NOTIFY USER -> it has passed, at least, "frequency" number of days from "start_date" If (elapsedDays > frequency) Then Dim addDays As Integer = elapsedDays.Subtract(frequency).Days

Categories : Database

Ant task : how to create Base 64 images
OK, I've found a way: To do it, I've used an 'exec' task which call a php script. In this script, I call php's base64_encode function. For more details about including base64 converted images to your CSS using PHP, see http://devin.la/blog/base64-encode-images-css-script-mobile. Finally, to wait until my new CSS file is ready, I use the 'waitfor' ant task.

Categories : CSS

Rails, Create a Task in multiple environment?
I found a solution doing this : task :initialize_global_settings => :environment do puts "Generating all global settings parameters..." parameters = ["few", "parameters", "here"] environments = ['development', 'test'] environments.each do |environment| Rails.env = environment puts " Running Task in "+environment+" environment " parameters.each do |param| glob_set = GlobalSetting.new(:field_name => param, :field_value => "") if glob_set.save puts "#{param} created" else puts "#{param} already exist" end end puts " Parameters have been set" end end It works but I've got a conflict between same variables set in test and development environment and I don't

Categories : Ruby On Rails

create a GUI for task scheduler using python script
I personally would use an ObjectListView widget rather than a ListCtrl as I find ObjectListView to be easier to update. Either way, for the Add/Edit frame, you can just add an argument called "fields" or some such and set it to None. class AddTask(wx.Frame): #------------------------------------------------------------ def __init__(self, parent, id, title, fields=None): Then you can call it the normal way for Adding data. However, when you go to call it for Editing, you will pass a list (or a dict) of the values from the ListCtrl to fill in the fields in this frame. You'll need to add something like if fields: # set the values of the widgets as necessary self.field.SetValue("Task Name")

Categories : Python

asana javascript bookmarklet to create a new task
I suspect that if you check the javascript console in your browser you'll see that it's rejecting the cross-site request. The Asana API doesn't currently support CORS (though we plan to in future), so the usual rules apply: you can only make requests to the same host:port as the current website.

Categories : Javascript

Create task with multiple queues in FreeRTOS?
You've got 3 bugs. First is that you've swapped the order of the queues when you try initializing xADCQueues. Second, you should pass xADCQueues as the 4th argument to xTaskCreate. Third, your xADCQueues struct is created on the stack, which means that after vStartADCtasks returns, that struct is destroyed and overwritten. Replace your vStartADCtasks with this xQueues xADCQueues; void vStartADCtasks( xQueueHandle xOLEDQueue, xQueueHandle xButtonQueue ) { xADCQueues.buttonQueue = xButtonQueue; xADCQueues.OLEDQueue = xOLEDQueue; xTaskCreate( vGetAltitude, "Get Altitude", 240, (void *) &xADCQueues, 2, NULL ); } or don't bother creating xADCQueues at all, but just make xButtonQueue and xOLEDQueue global variables. I don't see anything wrong with doing that for embedded sys

Categories : C

Create a little python applet in a linux task bar
Status icon is most generic solution, but legacy. Appindicator was designed for ubuntu to easy keep icon and menu in taskbar. There is examples in several languages http://developer.ubuntu.com/resources/technologies/application-indicators/ What is your Desktop Shell? Each shell has a better way to keep applet on taskbar. Some of these solutions has compatibility with other shells (appindicator has support in KDE, Gnome2, Gnome Shell and maybe others).

Categories : Python

Create a background task in IntelliJ plugin
Here is the general solution ApplicationManager.getApplication().executeOnPooledThread(new Runnable() { public void run() { ApplicationManager.getApplication().runReadAction(new Runnable() { public void run() { // do whatever you need to do } }); } });

Categories : Java

Create a do-nothing TPL task to complete with a result when triggered
Use TaskCompletionSource<T>. Create the source like this: var source = new TaskCompletionSource<ReturnType>(); Task task = source.Task; // Hand this off to the awaiting code. When the event occurs, set the result like this: source.SetResult(theResult);

Categories : Dotnet

Django Celery create only one task, not periodic
You could create your own admin or extend the current one to support what you want. Give your tests names and create a model that stores the name and the arguments to use. Then you can have a link/button that runs the task on demand. Or, you could use a Django Form to enter custom arguments each time rather than storing them in a database model.

Categories : Python

How to create task from custom mediator in WSO2?
Tasks are independent..when server starts up they start to execute in the configured pattern.. // I want to create a task every time I called the custom mediator// What is the usecase here? I think , you can have task logic inside your custom mediator

Categories : Wso2

Create and immediately run a Windows task once (as admin)
It doesn't work. I just figured out how to create a task from an XML definition file from the command line. It fails if the task wants to be executed with admin rights and registering it as no effective admin. So schtasks is no way around the UAC confirmation – only the Task Scheduler GUI is. In fact, the process behing this window, mmc.exe, is already started as admin (with no UAC confirmation), so it's obvious that creating such admin tasks is possible there. I'm giving up on bypassing the UAC confirmation. Instead I'll just start the setup executable under a different local administrator account for which I do know the password (with psexec probably). It won't have the test user's profile and environment and may do some details a bit different, but after all this is a way that should

Categories : Windows

Unable to create BItmapImage inside separate Task
Only the UI thread can instantiate a BitmapImage. You should try with the Deployment.Current.Dispatcher.BeginInvoke method: public void ProcessFrames(){ while (true) { dataSemaphore.WaitOne(); if (nFrameCount>0) { MemoryStream ms = new MemoryStream(previewBuffer1); Deployment.Current.Dispatcher.BeginInvoke(() => { BitmapImage biImg = new BitmapImage(); biImg.SetSource(ms); ImageSource imgSrc = biImg as ImageSource; capturedFrame.Source = imgSrc; }); } } }

Categories : C#

failed to create task or type checkenv Cause The name is undefined
<checkenv /> is required for the Android build, it's in a library in the Android SDK directory. I had the same problem and discovered the cause was a bad directory in the local.properties file required by build.xml and buildAndroid.xml. Here's a sample of my local.properties file: # This file is automatically generated by Android Tools. # Do not modify this file -- YOUR CHANGES WILL BE ERASED! # # This file must *NOT* be checked into Version Control Systems, # as it contains information specific to your local configuration. # location of the SDK. This is only used by Ant # For customization when using a Version Control System, please read the # header note. sdk.dir=/Users/myusername/android-sdk-macosx This gets generated automatically when I'm in Eclipse, but when Eclipse is cl

Categories : Android

Create an Autofac service around a background thread or task
Maybe, you can use NCron (https://code.google.com/p/ncron/). NCron is a light-weight library for building and deploying scheduled background jobs. Also, you can use Autofac integration to perform dependency injection for your NCron jobs (https://code.google.com/p/ncron/wiki/DependencyInjection).

Categories : Asp Net

how to create an Edit Task on local database samples?
Go thorough bellow link here is example of local daabase in windows phone 8 with sqlite. Windows Phone 7 Native Database Programming via Sqlite Client for Windows Phone SQLite-WinRT: Database programming on Windows Phone and Windows 8 How to use SQLite in Windows Phone Hope it will help you

Categories : C#

Ruby-on-Rails Create Record from Rake Task
It seems that your task task :import_users => [:environment] requires another parameter (the environment), try to run it as rake import_users_csv:import_users:development for instance. EDIT: You actually don't have the namespace, your task is called with rake import_users:development

Categories : Ruby On Rails

Using Powershell script to create folder in Task Scheduler
Use schtasks.exe. Maybe an answer is in this topic: SchTasks.exe to create a task folder schtasks /create /xml "MyTask.xml" /tn "My Task FolderMy New Task"

Categories : Powershell

Android How to create a recurring task that will happen every friday?
Store the timestamp of your last update in SharedPreferences. Use AlarmManager with INTERVAL_DAY. When it wakes up your app, check if it's Friday, or has been more than 156 hours since the last update. If it is, run your updates. Alternatively, check the last update time when launching, and if it's been more than a x days since the last update, update then.

Categories : Android

How to open outlook mail (.oft) format in outlook template when used in in jsp?
If you are using Tomcat, you can explicit the mime-type for this file in <tomcat-root>/conf/web.xml : <mime-mapping> <extension>oft</extension> <mime-type>application/vnd.ms-outlook</mime-type> </mime-mapping> Searching more, I've not found any official documentation about the above configuration as if you can set it in <application-root>/WEB-INF/web.xml, you can try a custom Filter : @WebFilter(urlPatterns = "*.oft") public class MimeTypeFilter implements Filter { public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException, IOException { response.setContentType("application/vnd.ms-outlook"); chain.doFilter(request, response); } public void init

Categories : Jsp

© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.