Maximum number of fonts was exceeded

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
yoxler
Posts: 5
Joined: Wed Sep 19, 2007 1:43 pm
Contact:

Maximum number of fonts was exceeded

Post by yoxler »

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.
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Post by larsa »

Hello

Yes, this problem only seems to exist in the .NET version. We will check it.


Lars Arvidsson
yoxler
Posts: 5
Joined: Wed Sep 19, 2007 1:43 pm
Contact:

Post by yoxler »

A ok, thats to bad. If you'll solve it, please post back so I can get a new version.
Post Reply