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. - Public Sub AddOutLookTask()
-
-
Dim appOutLook As Outlook.Application
-
Dim taskOutLook As Outlook.TaskItem
-
Set appOutLook = CreateObject("Outlook.Application")
-
Set taskOutLook = appOutLook.CreateItem(olTaskItem)
-
With taskOutLook
-
.Subject = "Due Date for Service Request ID: " & Form_testing.txtSERV_REQ_I & " is: " & Form_testing.dtDD
-
.Body = "Due Date for Service Request ID: " & Form_testing.txtSERV_REQ_I & " is: " & Form_testing.dtDD
-
.ReminderSet = True
-
' minutes from now.
-
.ReminderTime = DateAdd("h", 10, Form_testing.dtDD)
-
-
.DueDate = DateAdd("h", 20, Form_testing.dtDD) ' Set the due date to
-
-
' 5 minutes from now.
-
-
.ReminderPlaySound = True
-
'add the path to a .wav file on your computer.
-
.ReminderSoundFile = "C:\Win95\media\ding.wav"
-
.Save
-
End With
-
End Sub
Thanks in advance.
Shaq
3 2643
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
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
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
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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.
...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
| |