Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / October 2006

Tip: Looking for answers? Try searching our database.

Localized ctc and custom button bitmap

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Patrick Ruzand - 26 Sep 2006 13:28 GMT
Hi,

this is a follow-up to my recent question about how to localize a ctc file.

As I said, I succesfully localized my ctc file. The problem is that one
command does not display its associated custom bitmap when the package is run
on a system with non-default locale. All other commands are using an
officeicon id and are displayed as expected.

FYI, My package project consists on:
.a ctc file. This ctc file defines a command that references a bitmap in a
bitmap strip (all other commands reference an office icon). The bitmap strip
is defined in the BITMAPS_BEGIN/END section of the ctc.
.a localized ctc file (a copy of the file above whose text have been
localized), with BuildAction = None.
.a resx file containing the bitmap strip.
.a localized resx file that references the localized cto file.
At build time, in a PreBuild event, I compiled the localized ctc file into a
cto which is referenced by the localized resx file.
So at the end, I have a satellite dll (mypackage.resources.dll) which
contains the localized cto.
When I test my package in the exp devstudio instance (using the default
locale), everything is ok: the command displays the expected labels and the
custom bitmap.
When I deploy my package in a french environment, the command labels are
displayed  in the expected language (ie in french). But the custom bitmap is
missing, ie the command button displays a blank icon.

I don't know what I missed. I first thought that I should add the bitmap
strip to the localized resx file too. I tried that but with no success (even
by changing the resource id of the bitmap strip in the localized ctc and
resx.).

Are you aware of such a problem ? Is it a known issue ? What did I miss ?

Thanks,
Patrick
Gary Chang[MSFT] - 27 Sep 2006 08:37 GMT
Hi Patrick,

This is a quick note to let you know that I am performing research on this
issue and will get back to you as soon as possible. I appreciate your
patience.

Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Gary Chang[MSFT] - 28 Sep 2006 08:48 GMT
Hi Patrick,

Would you please send an email to me directly? We would like to contact you
about this issue offline.
(Please remoce the "online" of my email address alias)

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Patrick Ruzand - 03 Oct 2006 10:36 GMT
Hi,

For the log:
the issue has finally been identified, and is not related to localization.
The problem came from the fact that my package was installed in the
GAC. In this configuration, there's a bug/limitation in the cto reader
that prevents it from finding the bitmap, and the buttons will not have
their icons.
The workaround is to install the package as a codebase assembly.

Thanks Gary and Mike for your help,

Patrick
Gary Chang[MSFT] - 03 Oct 2006 11:24 GMT
Thanks for the update, Patrick!

I am delighted to know we already found the root cause of this issue and
covered it. :)

Good Luck!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.