Frxrichview in Fastreport How to set up two different fonts [problem points: 100 points, knot person Liuliveryok]

Source: Internet
Author: User

Frxrichview in Fastreport How to set up two different fonts [problem points: 100 points, knot person Liuliveryok]

There are several paragraphs in Frxrichview, how to set a different font for the first paragraph of text?

Grateful prawns can give the answer!!!

Source: http://bbs.csdn.net/topics/390952125?page=1

Answer:

frxReport1->LoadFromFile(L "D:\\ccrun\\123.fr3" ); TfrxRichView *f = (TfrxRichView *)frxReport1->FindComponent( "Rich1" ); if (f) {      f->RichEdit->SelStart = 0;      f->RichEdit->SelLength = 10;      f->RichEdit->SelAttributes->Name = L "楷体" ;      f->RichEdit->SelAttributes->Size = 17;      f->RichEdit->SelAttributes->Color = clBlue; } frxReport1->ShowReport();

Frxrichview in Fastreport How to set up two different fonts [problem points: 100 points, knot person Liuliveryok]

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.