C#
private void ExportMonthlyPresentation(object sender, DoWorkEventArgs e)
{
BackgroundWorker backgroundWorker = sender as BackgroundWorker;
Dictionary dictionary = e.Argument as Dictionary;
DataSet dataSet = (DataSet) dictionary["DataTable"];
string path = (string) dictionary["fileName"];
string str1 = (string) dictionary["monthYear"];
DataRow[] dataRowArray = (DataRow[]) dictionary["AppSettings"];
string str2 = "";
int num1 = 3;
int num2 = 15;
for (int index = 0; index num4 - 1 ? slide2.Shapes.AddTable(num4, count2, 0.0f, 30f, 720f, 160f) : slide2.Shapes.AddTable(count1 - index, count2, 0.0f, 30f, 720f, 160f);
shape2.Table.Columns[1].Width = 35f;
shape2.Table.Cell(1, 1).Shape.TextFrame.TextRange.Text = "S#";
shape2.Table.Columns[2].Width = 80f;
shape2.Table.Cell(1, 2).Shape.TextFrame.TextRange.Text = "Position";
shape2.Table.Columns[3].Width = 230f;
shape2.Table.Cell(1, 3).Shape.TextFrame.TextRange.Text = "Volunteer Name";
shape2.Table.Columns[4].Width = 35f;
shape2.Table.Columns[5].Width = 35f;
shape2.Table.Columns[6].Width = 35f;
shape2.Table.Columns[7].Width = 52f;
shape2.Table.Columns[8].Width = 35f;
shape2.Table.Columns[9].Width = 35f;
shape2.Table.Columns[10].Width = 35f;
shape2.Table.Columns[11].Width = 52f;
shape2.Table.Columns[12].Width = 60f;
shape2.Table.Cell(1, 4).Shape.TextFrame.TextRange.Text = "M";
shape2.Table.Cell(1, 5).Shape.TextFrame.TextRange.Text = "E";
shape2.Table.Cell(1, 6).Shape.TextFrame.TextRange.Text = "Ex";
shape2.Table.Cell(1, 7).Shape.TextFrame.TextRange.Text = "Total";
shape2.Table.Cell(1, 8).Shape.TextFrame.TextRange.Text = "M";
shape2.Table.Cell(1, 9).Shape.TextFrame.TextRange.Text = "E";
shape2.Table.Cell(1, 10).Shape.TextFrame.TextRange.Text = "Ex";
shape2.Table.Cell(1, 11).Shape.TextFrame.TextRange.Text = "Total";
shape2.Table.Cell(1, 12).Shape.TextFrame.TextRange.Text = "Total";
num5 = 1;
}
++num5;
}
foreach (_Slide slide3 in slides)
{
slide3.SlideShowTransition.AdvanceTime = (float) num2;
slide3.SlideShowTransition.AdvanceOnTime = (MsoTriState) -1;
}
((_Presentation) presentation).SaveAs(path, (PpSaveAsFileType) 11, (MsoTriState) -1);
backgroundWorker.ReportProgress(-1, (object) "Creating video report...");
string str3 = Path.GetDirectoryName(path) + "\\" + Path.GetFileNameWithoutExtension(path) + ".wmv";
((_Presentation) presentation).SaveAs(str3, (PpSaveAsFileType) 37, (MsoTriState) -1);
while (((_Presentation) ((_Application) application).ActivePresentation).CreateVideoStatus == 1 || ((_Presentation) ((_Application) application).ActivePresentation).CreateVideoStatus == 2)
{
System.Windows.Forms.Application.DoEvents();
Thread.Sleep(1000);
}
backgroundWorker.ReportProgress(100, (object) "Video creation completed");
Thread.Sleep(1000);
((_Presentation) presentation).Close();
((_Application) application).Quit();
}this Line Show Me Error :- Presentation presentation = ((_Application) application).Presentations.Add((MsoTriState) -1);
i Will High Light Error
MsoTriState' is a type, which is not valid in the given context

Answers
Know the answer? Post it. Somebody with the same question will find it here.