Maximum number of fonts was exceeded
Posted: Thu Jan 03, 2008 1:53 pm
Hi,
I'm trying to set fonts in my document, but when opening the excel document this error pops:
"some text formatting may have changed in this file because the maximum number of fonts was exceeded. it may help to close other documents and try again."
The code I'm using is (it's in a loop):
aSheetHoliday.Cell[j, HolidayPosition].FontStyle := [xfsBold];
I've tried something like:
XLS.Sheets[0].ApplyFormat.Font(2,12,8,14,Fnt);
earlier but that hade the same result, ...fonts was exceeded.
I'm using the .NET version if that has anything to do with it.
I'm trying to set fonts in my document, but when opening the excel document this error pops:
"some text formatting may have changed in this file because the maximum number of fonts was exceeded. it may help to close other documents and try again."
The code I'm using is (it's in a loop):
aSheetHoliday.Cell[j, HolidayPosition].FontStyle := [xfsBold];
I've tried something like:
XLS.Sheets[0].ApplyFormat.Font(2,12,8,14,Fnt);
earlier but that hade the same result, ...fonts was exceeded.
I'm using the .NET version if that has anything to do with it.