473,382 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Task reminder not working via Citrix

Shakss2
19
Hi,

I have a application which creates a task in outlook on the click of a button.

I have made set reminder true.
It works fine when it tried on the desktop.

But wne tried the same application via citrix,
The task gets created but the reminder option is not getting checked (on the task screen) due to which the reminder does not popup.

This happens even after set reminder is true.

Expand|Select|Wrap|Line Numbers
  1. Public Sub AddOutLookTask()
  2.  
  3. Dim appOutLook As Outlook.Application
  4. Dim taskOutLook As Outlook.TaskItem
  5. Set appOutLook = CreateObject("Outlook.Application")
  6. Set taskOutLook = appOutLook.CreateItem(olTaskItem)
  7. With taskOutLook
  8. .Subject = "Due Date for Service Request ID: " & Form_testing.txtSERV_REQ_I & " is: " & Form_testing.dtDD
  9. .Body = "Due Date for Service Request ID: " & Form_testing.txtSERV_REQ_I & " is: " & Form_testing.dtDD
  10. .ReminderSet = True
  11. ' minutes from now.
  12. .ReminderTime = DateAdd("h", 10, Form_testing.dtDD)
  13.  
  14. .DueDate = DateAdd("h", 20, Form_testing.dtDD) ' Set the due date to
  15.  
  16. ' 5 minutes from now.
  17.  
  18. .ReminderPlaySound = True
  19. 'add the path to a .wav file on your computer.
  20. .ReminderSoundFile = "C:\Win95\media\ding.wav"
  21. .Save
  22. End With
  23. End Sub
Thanks in advance.
Shaq
May 26 '08 #1
3 2643
Stewart Ross
2,545 Expert Mod 2GB
Hi. I have very limited experience with Citrix, but I think I can see what might be wrong. At line 20 there is a specific-path reference to a sound file on drive C. When you access remote facilities via Citrix your local C drive is mapped to an aliased drive which is not C (at home I think my C drive is mapped by Citrix to H$ or somesuch - my normal 'home' drive on my work network is H). Absolute path references to drive C are bound to fail when remapped to other values by Citrix.

Why would this prevent your reminder from being ticked? Since the path reference will fail the Save will not be run, hence the reminder failure.

You could remove the absolute reference to the sound file (it is not good practice to include such references in any event), or put a save before the sound file reference as well.

You also need to consider explicit error trapping so that the code does not just throw an application-specific error if something goes wrong (as I think it will be doing at present).

-Stewart
May 26 '08 #2
Shakss2
19
Hi..

Thanks for the reply.
I did remove the below code.

.ReminderPlaySound = True
'add the path to a .wav file on your computer.
.ReminderSoundFile = "C:\Win95\media\ding.wav"

but if U check the complete code,
there is a line : .ReminderSet = True

Inspite of this line of code, the reminder on the task is not checked.

But the desktop copy does thsi fine.

Thanks,
Shaq
May 26 '08 #3
Stewart Ross
2,545 Expert Mod 2GB
Hi Shaq. Having removed the sound-related lines I suggest you set a breakpoint at the start of the Sub step through each line one by one. As the task is being set, but not the reminder, it suggests that you are accessing Outlook OK as an automation server. You need to make sure that the .Save step for the reminder is occurring correctly, as if the reminder is not being saved setting .ReminderSet true will have no effect.

Other than that I cannot think of any further suggestions to offer at present until you go through the debug/code step-through sequence.

My strong feeling is that you still need some form of error handling in your code, even if it is truly rudimentary (such as On Error Resume Next), to guarantee code execution. I wonder, for example, why the C: file assignment did not trigger an error? Anyway, step through the code and see that the .Save is being triggered. You will have access to the local variable window when you do this, and can check the values of variables set or accessed by your code.

-Stewart
May 26 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: James Ng | last post by:
I have posted this to the Citrix Developers' forum and have not heard anything yet. So I'd like to see if any other Java developers have experience this problem with their Java application in a...
12
by: Corey Burnett | last post by:
I have a client that has a split database (front-end/back-end). They are also using Access security - MDW file. The front end MDE file, the back end MDB file, and the MDW file are all located on...
33
by: DFS | last post by:
An application I wrote has been deployed on Citrix, and the Citrix admin tells me all users run the same .mde file. There aren't a lot of concurrent users, but even 2 could be cause for concern. ...
7
by: SK | last post by:
Hi, Would appreciate if anyone could help me on this. Basically my client having few branches across state. And they used Citrix in which to connect to the server side for accessing application...
4
by: DDF | last post by:
I am looking to create an app that works like the task feature in MSOUTLOOK. I want to incorporate a calendar in this app as well. I want to be able to enter some data in a and simulate a...
1
by: MariusI | last post by:
I've created a program which fetches data from the internet using the WebBrowser and HttpWebRequest classes. The program has been tested on several computers and everything was working fine until...
5
by: Art | last post by:
Hi, We have some applications that run on a Citrix server. I would like to run one of them, a reporting app, from within a VB.net application. If I log into the Citrix server with remote...
0
by: Paulson | last post by:
Dear Freinds I want to make a program that acts as a reminder for the users.I need to open up the Scheduled task wizard programmatically.If you type Tasks in the run command the Tasks...
5
by: THEAF | last post by:
hi, Does anyone know how i can create a task reminder using maybe a few things like modules, listbox, command buttons, textboxes and any other commonly used buttons. And do you know where i can...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.