What does this mean?

Line 31: Class PowerPointCtl.Slide of control Slide1 was not a loaded control class.


my code:
VB Code:
  1. Private Sub Form_Load()
  2.    
  3.     Dim ppNewSlide  As PowerPoint.Slide
  4.     Dim ppShape  As PowerPoint.Shape
  5.     Dim lngSlideHeight As Long
  6.     Dim lngSlideWidth  As Long
  7.     Set cn = New ADODB.Connection
  8.     Set rs = New ADODB.Recordset
  9.     cn.ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};DATABASE=dbtest01;SERVER=localhost;OPTION=0;STMT=;"
  10.     query = "SELECT * FROM tempprint"
  11.     cn.Open
  12.     rs.Open query, cn, adOpenDynamic, adLockUnspecified
  13.     Set ppApp = New PowerPoint.Application
  14.     Set ppPresent = ppApp.Presentations.Add(msoTrue)
  15.     Do While Not rs.EOF
  16.    
  17.        
  18.        
  19.         Set ppNewSlide = ppPresent.Slides.Add(ppPresent.Slides.Count + 1, ppLayoutBlank)
  20.        
  21.         ppNewSlide.ColorScheme = ppPresent.ColorSchemes(3)
  22.         Set ppShape = ppNewSlide.Shapes.AddPicture("C:\Documents and Settings\wendysia\Desktop\Logo\logo without word.jpg", msoCTrue, msoTrue, 300, 40, 150, 100)
  23.         Set ppShape = ppNewSlide.Shapes.AddTextbox(msoTextOrientationHorizontal, 170, 150, 400, 30)
  24.         ppShape.Line.DashStyle = msoLineSolid
  25.         ppShape.Line.Weight = 2
  26.         ppShape.Line.BackColor.RGB = RGB(0, 0, 0)
  27.        
  28.        
  29.         ppShape.TextFrame.TextRange.ParagraphFormat.Alignment = ppAlignCenter
  30.         ppShape.TextFrame.TextRange.Font.Size = 50
  31.         ppShape.TextFrame.TextRange.Font.Bold = msoTrue
  32.         ppShape.TextFrame.TextRange.Font.Name = "Arial Black"
  33.         ppShape.TextFrame.TextRange.Text = "EMPLOYEE PASS"
  34.         Set ppShape = ppNewSlide.Shapes.AddPicture(rs!photo, msoCTrue, msoTrue, 80, 190, 200, 270)
  35.         Set ppShape = ppNewSlide.Shapes.AddTextbox(msoTextOrientationHorizontal, 320, 230, 400, 50)
  36.        
  37.         ppShape.TextFrame.TextRange.Font.Bold = msoTrue
  38.         ppShape.TextFrame.TextRange.Font.Name = "Arial Black"
  39.         ppShape.TextFrame.TextRange.Font.Size = 28
  40.         ppShape.TextFrame.TextRange.Text = rs!Emp_ID
  41.        
  42.         Set ppShape = ppNewSlide.Shapes.AddTextbox(msoTextOrientationHorizontal, 320, 280, 400, 50)
  43.        
  44.         ppShape.TextFrame.TextRange.Font.Bold = msoTrue
  45.         ppShape.TextFrame.TextRange.Font.Name = "Arial Black"
  46.         ppShape.TextFrame.TextRange.Font.Size = 28
  47.         ppShape.TextFrame.TextRange.Text = rs!Emp_Name
  48.        
  49.         Set ppShape = ppNewSlide.Shapes.AddTextbox(msoTextOrientationHorizontal, 320, 330, 400, 50)
  50.        
  51.         ppShape.TextFrame.TextRange.Font.Bold = msoTrue
  52.         ppShape.TextFrame.TextRange.Font.Name = "Arial Black"
  53.         ppShape.TextFrame.TextRange.Font.Size = 28
  54.         ppShape.TextFrame.TextRange.Text = rs!Department
  55.         rs.MoveNext
  56.     Loop
  57.        
  58.     ppApp.Visible = msoTrue
  59.    
  60.    
  61. '    Set ppPresent = ppApp.Presentations.Open("C:\Documents and Settings\wendysia\Desktop\VB\sample2.ppt")
  62. '    Do While Not rs.EOF
  63. '
  64. '    Loop
  65. '
  66.        
  67.                    
  68.        
  69.    
  70. End Sub

Can somebody help me pleaseeeeeee........