Hi Julian,
please do the following steps to reproduce:
- New Project
- TWPRichText and TButton on Form
- WPRichText1.DefaultIOFormat := 'RTF'
- ButtonOnClick : WPRichText.SaveAs();
- Some Text in WPRichText
- ButtonClick
- Save in txt format.
- Open file with notepad, format is RTF...
I think problem starts in WPCTRRich at line 3098
if DefaultIOFormat <> '' then def := DefaultIOFormat
else def := TextSaveFormat;
Thanks
Patrick
#1
♥ 0
6.1k Views
2 users
read 1 min
Which filter did you select in the combo?
#2
♥ 0
is there anything in the Version 5.30 solving this problem?
Regards
Patrick
#5
♥ 0
You can add this line (at the end)
then case dia.FilterIndex of
2: def := 'HTML' + '-__' + def; // Reuse the options defined in the format !
3: def := 'ANSI' + '-__' + def;
4: def := 'WPT' + '-__' + def;
1: def := 'RTF' + '-__' + def;
end
else def := 'AUTO' + '-__' + def; //<----------- !!!
But you should use
DefaultIOFormat := 'AUTO'
#6
♥ 0
This category is archived. No new posts are possible.