Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9026675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:34:48+00:00 2026-06-16T06:34:48+00:00

I was trying to make a button that converts the selected text to traditional

  • 0

I was trying to make a button that converts the selected text to traditional Chinese using

private void totradbutton_Click(object sender, RibbonControlEventArgs e)
{
    Word.Range currentRange = Globals.ThisAddIn.Application.Selection.Range;
currentRange.TCSCConverter(Word.WdTCSCConverterDirection.wdTCSCConverterDirectionSCTC,true,true); 
}

however when the button is run on some selected text, the text is not changed to traditional Chinese. I have tried it on simplified, traditional, and a mixture and still nothing happens. I have put a message box in to check that the code is run, which it is. The return type of TCSCConverter is void, so it does not return a converted form.

The manual page
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word.range.tcscconverter.aspx does not seem to be too enlightening.

There doesn’t seem to be any change to currentRange.text

Please can someone explain my mistake to me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T06:34:50+00:00Added an answer on June 16, 2026 at 6:34 am

    Although I am unable to determine why it doesn’t work, a work around is to use the strConv function in the Microsoft.VisualBasic Assembly:

    currentRange.Text = Microsoft.VisualBasic.Strings.StrConv(currentRange.Text, VbStrConv.TraditionalChinese);
    

    This seems to work without problems for already converted text or paragraph breaks, though there may be other problems I have not spotted.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Xcode, I'm trying to make a button that changes it's text, relative to
Trying to make a toggle button that hides/shows the right window/pane. Here is a
I am trying to make a PyGtk Gui, that has a button. When the
I am trying to make this button using CSS3: But my button looks like
I'm trying to make a button in Flash Builder 4.5 that is multi-lined (specific
I'm trying to make a small button in an Android app that lets the
I am trying to create a text input field that converts the input text
So I'm trying to make a button that launches the OpenFeint achievements page, but
I'm new to jQuery and Javascript. I'm trying to make a button that I
Still a newbie here, forgive me. I'm trying to make a button that will

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.