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 5848381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:51:04+00:00 2026-05-22T12:51:04+00:00

I am trying to write a small formatted test in RTF using the C#

  • 0

I am trying to write a small formatted test in RTF using the C# RichTextEdit control, but I can’t seem to get it right. This is how I want to to look:

         Key Value
 Another key Another value
 A third key Value

The rtf code im using is this:

{\rtf1\ansi\ansicpg1252\deff0
{\fonttbl
{\f0\fswiss\fcharset0\fprq2\fttruetype Tahoma;}}

\kerning0\cf0\ftnbj\fet2\ftnstart1\ftnnar\aftnnar\ftnstart1\aftnstart1\aenddoc\revprop3{\info\uc1}\deftab720\viewkind1\paperw11905\paperh16837\margl1440\margr1440\widowctrl
\sectd\sbknone\colsx360\pgncont\ltrsect
\pard\plain\ltrpar\ql\sl240\slmult1\itap0\par{
\trowd 
\cellx2288\pard\plain\ltrpar\qr\f0\fs14\sl240\slmult1\intbl\b\  Key \cell
\cellx6721\pard\plain\ltrpar\ql\f0\fs14\sl240\slmult1\intbl  Value \cell
\row

Two problems remaining;
No matter what I have tried putting in, I can’t remove the border around the table.
The Key column is aligned to the left, not the right.

So are there any RTF people out there who can help?

  • 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-05-22T12:51:04+00:00Added an answer on May 22, 2026 at 12:51 pm

    The Rtf control in .net is pathetic and only implements a tiny portion of the rtf commands and tables is the massive hole that barely works at all. basically if you want to do any thing like that you need to integrate a decent text editor.

    microsoft expects you to put a word window in to support it but this throws up no end of issues as can you guarantee that your user has the right version of office or even if they use office at all.

    i’ve been looking into this for a while and have yet to find a rtf control that works even many of the commercial ones only fix one or 2 of the errors. you best be is to go for HTML

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

Sidebar

Related Questions

I am just trying to write a small web page that can parse some
I am trying to write a small media player using GTK+ and GStreamer and
I'm trying to write a small class library for a C++ course. I was
I'm trying to write a small script to change the current directory to my
I'm trying to write a small app that monitors how much power is left
I'm trying to write a small wsgi application which will put some objects to
Begginer's question. I'm trying to write small piece of code in Visual Studio (VB.net)
Im trying to write a small class to better understand bit flags in c++.
I am trying to write a small application that checks each value in the
I've been trying to write a small file server. I got it to the

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.