Результаты (
английский) 1:
[копия]Скопировано!
When you add the same documents using the ImportFormatMode. KeepSourceFormatting, creates a lot of styles. In MSW has a limit on the maximum number of styles (4079), contained in document http://support.microsoft.com/kb/211489#appliesto.At AW we do check on exceeding this limit in the StyleCollection. GetNextFreeIstd ().To resolve this problem, you can do a search in your gallery in the StyleCollection. ImportStyleKeepSourceFormatting () and in case of being of the same style,You can not add, and use the imeŝijsâ. Now when a style with the same name we pereimenovyvaem style and add it to the new name to the collection.It should be noted, however, that such a solution will change the behavior of the DocumentBuilder. AppendDocument method (.) The second option is to introduce a new public method that will iterate through the styles in the model and remove the same. A disadvantage of this approach is a small probability that a limit to the number of styles can be exceeded the AppendDocument (),If the original document is very many styles (close to limit).
переводится, пожалуйста, подождите..