Hi,
if i'm formatting a rtf-text bold it's printed in the color blue. I've used the TQRRichView (rvqrCtrls) component to print it in a quickreport. If i'm formatting a rtf-text italic it's printed red.
Thats realy confusing...
Greetings, ThY
Printed bold rtf text is colored blue
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Directly with a Stream (LoadRTFStream)
This is the rtf:
This is the rtf:
Code: Select all
{\rtf1\ansi\ansicpg0\uc1\deff0\deflang0\deflangfe0\paperw11906\paperh16838\margl1800\margr1800\margt1440\margb1440\viewscale100\viewzk0
{\fonttbl{\f0\fnil Arial;}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}
\pard\fi0\li0\ql\ri0\sb0\sa0\itap0 \plain \f0\b\fs20\cf1 - 1 Bad-u.Designheizk\'f6rper
\line \plain \f0\fs20\cf1 - 1 Bad-u.Designheizk\'f6rper
\par \plain \f0\b\fs20\cf1 Standard 1100x600mm\tab
\par \tab \tab o.Vent.NA50 RAL9016
\par \plain \f0\i\fs20\cf1 Standard 1100x600mm\tab
\par \tab \tab o.Vent.NA50 RAL9016\plain \f0\fs20\cf1 \par}
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Printint italic as red
I've also had the problem of italic printing red and came across this post. I wasn't sure how to fix it however so I thought I might post what worked for me here.
Your reply simply stated what the most likely situation was (RichView.RTFReadProperties.TextStyleMode = rvrsUseClosest).
I checked this and found it was true - the solution for me to fix the issue was to set this to "rvrsAddIfNeeded".
Hope this helps someone!
Your reply simply stated what the most likely situation was (RichView.RTFReadProperties.TextStyleMode = rvrsUseClosest).
I checked this and found it was true - the solution for me to fix the issue was to set this to "rvrsAddIfNeeded".
Hope this helps someone!
Re: Printed bold rtf text is colored blue
Thanks bglboss. Your solution helped me !
Also, I set RichView.RTFReadProperties.ParaStyleMode to rvrsAddIfNeeded to ensure band lines correctly appear
Also, I set RichView.RTFReadProperties.ParaStyleMode to rvrsAddIfNeeded to ensure band lines correctly appear