Page 1 of 1

RTF-image size proplem with fastreport and wordpad under Win

Posted: Thu Jun 11, 2015 8:40 am
by LuckySpacy
RTF-image size proplem with fastreport and wordpad under Win 8.

My settings:

rv.RTFReadProperties.TextStyleMode := rvrsAddIfNeeded;
rv.RTFReadProperties.ParaStyleMode := rvrsAddIfNeeded;
rv.RVFOptions := rv.RVFOptions + [rvfoSaveTextStyles];
rv.RVFOptions := rv.RVFOptions + [rvfoSaveParaStyles];

rv.RTFOptions := rv.RTFOptions - [rvrtfSaveJpegAsJpeg];
rv.RTFOptions := rv.RTFOptions + [rvrtfSaveBitmapDefault];


My Version: v14.9.3


This is a rtf-file wich was saved with TRichviewEdit.
If i want to print this file with fastreport the imagesize is under Win 8 not the same as in TRichviewEdit
It is the original size.
Under Win 7 it is the same imagesize as in TRichviewEdit.

If you want to test it then open this rtf-file with wordpad under Win7 and under Win8.
You can see the different.
Fastreport behaves exactly.

Do you have an idea how I can solve the problem under Win8?

Oh, I would like to attach the RTF file, but it is unfortunately too big.
But maybe you already know the problem and can help me without rtf-file.

Posted: Tue Jul 07, 2015 10:33 am
by Sergey Tkachenko
This problem was discussed further in email.
It looks like WordPad/FastReport in Windows 8 cannot read scaled bitmap images from RTF properly.
A solution was found - save them as PNG, they are loaded correctly by WordPad/FastReport (but they cannot be read by WordPad/FastReport in Win7, so the application should use PNG only when generating RTF files for Windows 8's WordPad/FastReport).