RTF-image size proplem with fastreport and wordpad under Win

General TRichView support forum. Please post your questions here
Post Reply
LuckySpacy
Posts: 7
Joined: Fri Nov 22, 2013 7:45 am

RTF-image size proplem with fastreport and wordpad under Win

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17562
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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).
Post Reply