RichTextBox supporting line spacing and Printing

Source: Internet
Author: User

I originally planned to use the word Ole editing function, but I don't know what's going on. The word's RTF editing inserts an image, and the image displayed in RichTextBox is rather vague. I have to change it myself.

The exrichtextdemo on codeproject adds the image and text insertion method.

Google hasn't found any control that can set the RTF spacing for a long time.

The spacing settings and printing are added on the basis of exrichtextbox. Currently, only these functions are required. After other functions are used, they are added.

Current rtfedit problems:

Garbled characters will appear in Chinese when appending text functions;

There is a logic problem with font settings, but it is okay to directly input Chinese characters. If you do not select a font, you can simply format all the text;

Do not press Ctrl + V to paste the inserted image. If there is a problem with the inserted image, click the button to insert the image.

You can fix these problems as soon as possible.

CodeBasically, find another one and put it together for the people who need it. Now I find that it is sometimes used. net conflict. To add a line spacing setting, there is basically no way (maybe I still want to learn). When I think of a sentence in program windows, Win32 API is omnipotent, the line spacing control is the API used.

Source code download

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.