Modifying fonts in Table cells


#1

We are in the process of upgrading our web application to .net 2.0 and during the process, I downloaded the latest Aspose.Slides dll. Two things failed when I made the changes.

1. The Notes of the slides no longer allow \r or \n in the text

2. All of the formatting in the tables that I create is lost. The code that I would use to change the items looks like the following (but don't seem to do anything anymore):

TextFrame frame = table.GetCell(x,y);

frame.Paragraphs[0].Portions[0].FontHeight = 12;

frame.Paragraphs[0].Portions[0].FontColor = Color.FromArgb(55,96,112);

I tried to download the .cs examples, but the I get an error from that URL, and looking at the .vb samples, it seems that I am following the style and modifying the correct objects.

So, can you tell me, what has changed so that I cannot do these two things now?

Thanks


#2
  1. Yes, it’s not possible to add text with \r or \n characters to a one Portion now.
    You should add separate Paragraphs.

    As a replacement for old feature Notes.Text property has read/write access now.
    You can set any text here and it will be correctly divided on Paragraphs.
    After that you can add some additional formatting.

    2. Aspose.Slides 2.4.7 is buggy and I deleted it from downloads.
    Please use 2.4.6. It doesn’t have problems with tabe cells.

#3

Thanks, things are working great now.