Free Support Forum - aspose.com

Multiple portions within same textframe

hi can any body tell me how to add multiple portions in one paragraph of a text frame like following


<p:colorscheme colors="#ffffff,#000000,#a3aecc,#d84519,#d2d9e5,#a5aecc,#6c80bf,#002252">

</p:colorscheme>

Country: Country 1; Country 2, Country 3; Country 4; Country 5;
Country6,
Country7,Country8,Country9,Country10,Country11,
Country6,Country7,Country8,Country9,Country10,Country11,

Like above The Database Column Name should come in the left and that datashould come in the right of paragraph. is there any way to do like that....

and two Columns should be in different color

Dear mrkumar,

Yes, it is possible. The best way is that you create a table with two columns, then in one cell, you add country database column name and in other other cell, you add all the countries name.

e.g

-------------------------------------------------------------------------------

Cell cl=yourTable.GetCell(0, 0);

TextFrame tf=cl.TextFrame;

Paragraph para=tf.Paragraphs[0];

Portion port=para.Portions[0];

port.Text=CountryDatabaseName

port.ForeColor=Color.Red; //Database country name will be in red color

port.FontBold=true; //To bold it

cl=yourTable.GetCell(1, 0);

tf=cl.TextFrame;

para=tf.Paragraphs[0];

port=para.Portions[0];

port.ForeColor=Color.Green; //country names will be in green color

foreach(countryname)

{

Portion newCountry=new Portion(port);

newCountry.Text=countryName;

para.Portions.Add(newCountry);

}

hi msfaiz ,

is it possible with rectangles. because i have to many Columns(12) in one sige with including picture. can you please give me reply as i am sending my template. i required to give that template…

Can you please explain me how and in which version of PowerPoint did you create the last text box saying Description?