Still having problems to save and load text and para styles
Posted: Fri Oct 20, 2006 7:31 pm
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 ?
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 ?