PC Review


Reply
Thread Tools Rate Thread

Citrix/Outlook COM Add-in PasteFace button issues

 
 
Anthony
Guest
Posts: n/a
 
      8th Jun 2005
Hi,

I have an Outlook COM Addin which adds toolbar buttons and menus. Images
are added to the CommandBarButtons using the following code (Clipboard
is a VB object)

Clipboard.SetData LoadResPicture(CStr(myPic), _
vbResBitmap)
newCtl.PasteFace

The clipboard is stored before any images are copied (preserving any
user's data) and restored once all images have been pasted. This code is
quite extensive and includes 'user32' library methods Open and
CloseClipboard, Get and SetClipboardData. I can provide the full list if
this will help.

This is extensively tested in a standard Windows environment where there
are no issues with button faces.

The issue arises when the addin in used in a Citrix environment. The
toolbar buttons are added and are functional except quite often there
are no button images, sometimes there are, sometimes there are not.

Can any assist?

Thanks in advance,
Anthony


*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
 
Michael Bauer
Guest
Posts: n/a
 
      8th Jun 2005
Hi Anthony,

I donīt know Citrix, itīs just a try: Did you set the
CommandBarButton.State property to one of the msoButtonIcon* values?

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook


"Anthony" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I have an Outlook COM Addin which adds toolbar buttons and menus.

Images
> are added to the CommandBarButtons using the following code (Clipboard
> is a VB object)
>
> Clipboard.SetData LoadResPicture(CStr(myPic), _
> vbResBitmap)
> newCtl.PasteFace
>
> The clipboard is stored before any images are copied (preserving any
> user's data) and restored once all images have been pasted. This code

is
> quite extensive and includes 'user32' library methods Open and
> CloseClipboard, Get and SetClipboardData. I can provide the full list

if
> this will help.
>
> This is extensively tested in a standard Windows environment where

there
> are no issues with button faces.
>
> The issue arises when the addin in used in a Citrix environment. The
> toolbar buttons are added and are functional except quite often there
> are no button images, sometimes there are, sometimes there are not.
>
> Can any assist?
>
> Thanks in advance,
> Anthony
>
>
> *** Sent via Developersdex http://www.developersdex.com ***


 
Reply With Quote
 
Anthony
Guest
Posts: n/a
 
      8th Jun 2005
Thankyou for taking the time to reply.

This is only an issue when Outlook - with the COM Add-in - is run in a
Citrix environment, otherwise there are no problems. The buttons already
have the property 'MsoButtonStyle' set to 'msoButtonIcon'.

It seems to be an issue with the way the bitmap images are pasted onto
the buttons - possibly a clipboard issue within the Citrix
environment...?

Regards,
Anthony


*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
Michael Bauer
Guest
Posts: n/a
 
      8th Jun 2005
Ok, sorry, I canīt help in that case.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook


"Anthony" <(E-Mail Removed)> wrote in message
news:O8E$zC$(E-Mail Removed)...
> Thankyou for taking the time to reply.
>
> This is only an issue when Outlook - with the COM Add-in - is run in a
> Citrix environment, otherwise there are no problems. The buttons

already
> have the property 'MsoButtonStyle' set to 'msoButtonIcon'.
>
> It seems to be an issue with the way the bitmap images are pasted onto
> the buttons - possibly a clipboard issue within the Citrix
> environment...?
>
> Regards,
> Anthony
>
>
> *** Sent via Developersdex http://www.developersdex.com ***


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pasteface method crashing outlook pasteface method crashing outlook Microsoft Outlook Form Programming 7 17th Sep 2009 03:41 PM
Citrix and XP SP2 connection issues Allen Miyake Windows XP General 2 18th Oct 2004 05:15 PM
XP and Citrix issues on the workstation allenmiyake@majaro.com Windows XP Help 0 30th Sep 2004 11:49 PM
Pasting picture in Excel increases size (Pasteface, Custom Button) Chris Microsoft Excel Programming 3 24th Mar 2004 02:44 AM
Citrix performance issues Kevin Windows XP Performance 0 8th Jul 2003 05:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:11 AM.