We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.Sldies issue

i m using latest version of Aspose for slide

when my slide created the text is coming

Click to edit Master subtitle style

here is the code:
/Instantiate the License class Aspose.Slides.License license = new Aspose.Slides.License();
//Pass only the name of the license file embedded in the assembly license.SetLicense(“D://” + “Aspose.Total.lic”);
// The path to the documents directory. string dataDir = Path.GetFullPath(“D://”);
DataSet dt = new DataSet();
dt.ReadXml(@“d:\Test.xml”);
//Opening the presentation file by passing the file path to the constructor of Presentation class Presentation pres = new Presentation();
pres.Masters[0].Background.Type = BackgroundType.OwnBackground;
pres.Masters[0].Background.FillFormat.FillType = FillType.Solid;
pres.Masters[0].Background.FillFormat.SolidFillColor.Color = Color.BlueViolet;
//ISlide sld = (ISlide)pres.Slides[0];
IAutoShape ashp;
ISlide sld;
ITextFrame txtFrm;
IPortion port;
IParagraph para;
sld = pres.Slides.AddEmptySlide(pres.LayoutSlides[0]);
sld.SlideNumber=1;
/*Slide title and subtitle start */ ((IAutoShape)sld.Shapes[0]).TextFrame.Text = “Welcome To Rave technologies”;
((IAutoShape)sld.Shapes[1]).TextFrame.Text = “Northgate Group Company”;
sld = pres.Slides[0];
IShape shp = sld.Shapes[0];
txtFrm = ((IAutoShape)shp).TextFrame;
para = new Paragraph();
para = txtFrm.Paragraphs[0];
port = para.Portions[0];
port.PortionFormat.LatinFont = new FontData(“Verdana”);
port.PortionFormat.FontBold = NullableBool.True;
port.PortionFormat.FontItalic = NullableBool.True;
port.PortionFormat.FillFormat.FillType = FillType.Solid;
// port.PortionFormat.FillFormat.SolidFillColor.Color = Color.OrangeRed;
port.PortionFormat.FillFormat.SolidFillColor.Color = Color.FromArgb(0x33, 0x33, 0xCC);
port.PortionFormat.FontHeight = 35;
/*Slide title and subtitle End */ for (int i = 0; i < dt.Tables[0].Rows.Count; i++) { // ISlideCollection slds = pres.Slides; sld = pres.Slides.AddEmptySlide(pres.LayoutSlides[0])
;
sld.SlideNumber =i+ 2;
ashp = sld.Shapes.AddAutoShape(ShapeType.Rectangle, 100, 100, 500, 150);
//Add ITextFrame to the Rectangle // ashp.AddTextFrame(dt.Tables[0].Rows[i][“Text”].ToString());
ashp.TextFrame.Text = dt.Tables[0].Rows[i][“Text”].ToString();
txtFrm = ashp.TextFrame;
port = txtFrm.Paragraphs[0].Portions[0];
port.PortionFormat.LatinFont = new FontData(“Times New Roman”);
port.PortionFormat.FontBold = NullableBool.True;
port.PortionFormat.FontItalic = NullableBool.True;
port.PortionFormat.FillFormat.FillType = FillType.Solid;
port.PortionFormat.FillFormat.SolidFillColor.Color = Color.OrangeRed;
port.PortionFormat.FontHeight = 25;
ashp.FillFormat.FillType = FillType.NoFill;
DataRow[] builds = dt.Tables[1].Select(“pptheader_id =’” + dt.Tables[0].Rows[i][“pptheader_id”].ToString() + “’”);
foreach (DataRow buildRow in builds)
{ para = new Paragraph(); para.ParagraphFormat.Bullet.Type = BulletType.Symbol;
para.ParagraphFormat.Bullet.Char = Convert.ToChar(8226); para.Text = buildRow[0].ToString();
para.ParagraphFormat.Indent = 25; para.ParagraphFormat.Bullet.Color.ColorType = ColorType.RGB;
para.ParagraphFormat.Bullet.Color.Color = Color.Black; para.ParagraphFormat.Bullet.IsBulletHardColor = NullableBool.True;
//Setting Bullet Height para.ParagraphFormat.Bullet.Height = 100; txtFrm.Paragraphs.Add(para);
}
} //Printing the total number of slides present in the presentation
pres.Save(dataDir + “HelloWorld.Ppt”, Aspose.Slides.Export.SaveFormat.Ppt);


This message was posted using Email2Forum by Tahir Manzoor.

hi
attached in my xml

Hi Omkar,

Thank you for sharing the file and sample code.

I checked your mentioned issue with the latest version of Aspose.Slides for .NET v14.8.0 and I am unable to reproduce your mentioned issue. Please download and try the latest version and in case you still face any issue, please share a sample application, output file, your system environment i.e. OS, .NET Framework, MS PowerPoint version etc. with us to further test the issue.

Also, you can check the attached generated file for reference.

Thanks & Regards,