I'm still having problems to save and load text and paragraph styles to a IniFile.
I have tried this code to save:
ini := TiniFile.create(ExtractFilePath(ApplicationExeName) + 'Font.ini');
try
textstyle.savetoIni(ini, 'font', 'fontP');
finally
ini.free;
end;
And this code to load:
ini := TiniFile.create(ExtractFilePath(ApplicationExeName) + 'Font.ini');
try
textstyle[0].loadfromIni(ini, 'font', 'fontP', false, 101);
finally
ini.free;
end;
When it is loaded the whole style becomes weird.
Can someone help me on this problem, please ?
Still having problems to save and load text and para styles
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: