wants to display rows in a powerpoint using vs2008
-
Hi to all, I am currently working on vs2008 generating powerpoint presentations. I have a problem in representing the entire set of data into a table using vs2008 in a powerpoint Can anyone suggest me in this matter how to proceed Thanks inadvance
sai krishna
-
Hi to all, I am currently working on vs2008 generating powerpoint presentations. I have a problem in representing the entire set of data into a table using vs2008 in a powerpoint Can anyone suggest me in this matter how to proceed Thanks inadvance
sai krishna
-
Hi to all, I am currently working on vs2008 generating powerpoint presentations. I have a problem in representing the entire set of data into a table using vs2008 in a powerpoint Can anyone suggest me in this matter how to proceed Thanks inadvance
sai krishna
-
How are you creating the Powerpoint presentation? Are you using the PIA's or some other method?
hi i m creating a predefined template in that i want to bind the database values into the powerpoint using vs2008 in a form of grid i want to display the table values into the powerpoint
sai krishna
-
hi i m creating a predefined template in that i want to bind the database values into the powerpoint using vs2008 in a form of grid i want to display the table values into the powerpoint
sai krishna
-
OK, but what are you using to generate the the powerpoint presentation? Are you importing Microsoft.Office.Interop.PowerPoint?
yes scott iam importing that namespace i m writing in my button click event like this { int count = 0; string strTemplate = string.Empty; int shpCount = 1; //core.MsoTriState objTriState = core.MsoTriState.msoTrue; string strPPTName = @"d:\EDPresentation.pptx"; string strPPTPath = @"D:\PPT-Opty1\PPT-Opty\"; strTemplate = strPPTPath + "Presentation5.pptx"; Application objApp = new ApplicationClass(); _Presentation objPres = objApp.Presentations.Open(strTemplate, core.MsoTriState.msoFalse, core.MsoTriState.msoTrue, core.MsoTriState.msoFalse); Slides objSlides = objPres.Slides; TextRange objTextRng; for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { objSlides.InsertFromFile(strTemplate,count, 1, 1); _Slide objSlide = objSlides[ds.Tables[0].Rows.Count-1]; //for (shpCount = 1; shpCount <= objSlide.Shapes.Count; shpCount++) //{ Microsoft.Office.Interop.PowerPoint.Shape objShape; // foreach (DataColumn dc in ds.Tables[0].Columns) // { // if (objSlide.Shapes[shpCount].AlternativeText.Trim().Equals(dc.ColumnName)) // { objShape = objSlide.Shapes[shpCount]; objSlide.Shapes.AddTextbox(MsoTextOrientation.msoTextOrientationHorizontal, 100, 100, 100, 80); objShape.TextFrame.TextRange.Text = ds.Tables[0].Rows[i][dc.ColumnName].ToString(); } objPres.SaveAs(strPPTName, PpSaveAsFileType.ppSaveAsPresentation, core.MsoTriState.msoTrue); objPres.Close(); objApp.Quit(); }
sai krishna