Click here to Skip to main content
15,918,668 members
Home / Discussions / C#
   

C#

 
GeneralRe: Excel issue or dumb user? Pin
EliottA27-Nov-09 1:45
EliottA27-Nov-09 1:45 
AnswerRe: Excel issue or dumb user? Pin
cburlacu27-Nov-09 1:57
cburlacu27-Nov-09 1:57 
Questionwants to display rows in a powerpoint using vs2008 Pin
dsaikrishna26-Nov-09 19:04
dsaikrishna26-Nov-09 19:04 
AnswerRe: wants to display rows in a powerpoint using vs2008 Pin
dan!sh 26-Nov-09 19:31
professional dan!sh 26-Nov-09 19:31 
AnswerRe: wants to display rows in a powerpoint using vs2008 Pin
ScottM126-Nov-09 22:08
ScottM126-Nov-09 22:08 
GeneralRe: wants to display rows in a powerpoint using vs2008 Pin
dsaikrishna26-Nov-09 22:32
dsaikrishna26-Nov-09 22:32 
GeneralRe: wants to display rows in a powerpoint using vs2008 Pin
ScottM126-Nov-09 22:37
ScottM126-Nov-09 22:37 
GeneralRe: wants to display rows in a powerpoint using vs2008 Pin
dsaikrishna26-Nov-09 22:47
dsaikrishna26-Nov-09 22:47 
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

QuestionAbout dateTimePicker problem Pin
miss YY26-Nov-09 18:01
miss YY26-Nov-09 18:01 
AnswerRe: About dateTimePicker problem Pin
avigodse26-Nov-09 18:56
professionalavigodse26-Nov-09 18:56 
AnswerRe: About dateTimePicker problem Pin
Shameel26-Nov-09 20:05
professionalShameel26-Nov-09 20:05 
AnswerRe: About dateTimePicker problem Pin
ScottM126-Nov-09 22:13
ScottM126-Nov-09 22:13 
GeneralRe: About dateTimePicker problem Pin
PIEBALDconsult27-Nov-09 2:59
mvePIEBALDconsult27-Nov-09 2:59 
QuestionRe: About dateTimePicker problem Pin
ScottM127-Nov-09 3:04
ScottM127-Nov-09 3:04 
AnswerRe: About dateTimePicker problem Pin
PIEBALDconsult27-Nov-09 4:45
mvePIEBALDconsult27-Nov-09 4:45 
QuestionDelegates and Events Pin
BobInNJ26-Nov-09 12:51
BobInNJ26-Nov-09 12:51 
AnswerRe: Delegates and Events Pin
Luc Pattyn26-Nov-09 13:08
sitebuilderLuc Pattyn26-Nov-09 13:08 
AnswerRe: Delegates and Events Pin
Yuri Vital26-Nov-09 13:16
Yuri Vital26-Nov-09 13:16 
AnswerRe: Delegates and Events Pin
PIEBALDconsult26-Nov-09 15:11
mvePIEBALDconsult26-Nov-09 15:11 
AnswerRe: Delegates and Events Pin
N a v a n e e t h26-Nov-09 16:42
N a v a n e e t h26-Nov-09 16:42 
GeneralRe: Delegates and Events Pin
Yuri Vital26-Nov-09 20:59
Yuri Vital26-Nov-09 20:59 
GeneralRe: Delegates and Events Pin
N a v a n e e t h27-Nov-09 0:22
N a v a n e e t h27-Nov-09 0:22 
Questionanother web browser control?!! Pin
Jassim Rahma26-Nov-09 11:56
Jassim Rahma26-Nov-09 11:56 
AnswerRe: another web browser control?!! Pin
Abhishek Sur26-Nov-09 12:01
professionalAbhishek Sur26-Nov-09 12:01 
GeneralRe: another web browser control?!! Pin
Jassim Rahma26-Nov-09 12:08
Jassim Rahma26-Nov-09 12:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.