Hi,
I’m working on a project with an automatic generation of powerpoint.
I have to add bullets. On my test machine, I have bullets that appear, but when I test from another machine, I have a blank square instead of bullet.
My code:
case “[data]”:
System.Drawing.Color color = tf.Paragraphs[0].Portions[0].RawFontColor;
tf.Paragraphs[0].HasBullet = true;
tf.Paragraphs[0].BulletColor = Color.DarkRed;
tf.Paragraphs[0].BulletCharacter = Convert.ToChar(“➔”);
tf.Paragraphs[0].Portions[0].Text = maTable.Rows[j][“Inno_Sentence” + langue].ToString();
tf.Paragraphs[0].Portions[0].RawFontHeight = 18;
Paragraph para = new Paragraph();
Portion port = new Portion();
tf.Paragraphs.Add(para);
tf.Paragraphs[1].Portions.Add(port);
para = new Paragraph();
port = new Portion();
tf.Paragraphs.Add(para);
tf.Paragraphs[2].HasBullet = true;
tf.Paragraphs[2].BulletColor = Color.DarkRed;
tf.Paragraphs[2].BulletCharacter = Convert.ToChar(“✓”);
tf.Paragraphs[2].Alignment = TextAlignment.Left;
tf.Paragraphs[2].RawTextOffset = 400;
tf.Paragraphs[2].RawBulletOffset = 400;
tf.Paragraphs[2].Portions.Add(port);
tf.Paragraphs[2].Portions[0].RawFontColor = color;
tf.Paragraphs[2].Portions[0].Text = maTable.Rows[j][“Rang_Name”].ToString();
tf.Paragraphs[2].Portions[0].RawFontHeight = 16;
para = new Paragraph();
port = new Portion();
tf.Paragraphs.Add(para);
tf.Paragraphs[3].Portions.Add(port);
para = new Paragraph();
port = new Portion();
tf.Paragraphs.Add(para);
tf.Paragraphs[4].HasBullet = true;
tf.Paragraphs[4].BulletColor = Color.DarkRed;
tf.Paragraphs[4].BulletCharacter = Convert.ToChar(“✓”);
tf.Paragraphs[4].Alignment = TextAlignment.Left;
tf.Paragraphs[4].RawTextOffset = 400;
tf.Paragraphs[4].RawBulletOffset = 400;
tf.Paragraphs[4].Portions.Add(port);
tf.Paragraphs[4].Portions[0].RawFontColor = color;
tf.Paragraphs[4].Portions[0].Text = maTable.Rows[j][“Coun_Name” + langue].ToString();
tf.Paragraphs[4].Portions[0].RawFontHeight = 16;
break;
Nasty
(sorry for my bad english )