1*cdf0e10cSrcweirVERSION 5.00 2*cdf0e10cSrcweirBegin VB.Form frmWizard 3*cdf0e10cSrcweir Appearance = 0 'Flat 4*cdf0e10cSrcweir BackColor = &H80000005& 5*cdf0e10cSrcweir BorderStyle = 1 'Fixed Single 6*cdf0e10cSrcweir Caption = "OpenOffice.org Document Analysis Wizard" 7*cdf0e10cSrcweir ClientHeight = 5520 8*cdf0e10cSrcweir ClientLeft = 1965 9*cdf0e10cSrcweir ClientTop = 1815 10*cdf0e10cSrcweir ClientWidth = 8175 11*cdf0e10cSrcweir BeginProperty Font 12*cdf0e10cSrcweir Name = "Arial" 13*cdf0e10cSrcweir Size = 8.25 14*cdf0e10cSrcweir Charset = 0 15*cdf0e10cSrcweir Weight = 400 16*cdf0e10cSrcweir Underline = 0 'False 17*cdf0e10cSrcweir Italic = 0 'False 18*cdf0e10cSrcweir Strikethrough = 0 'False 19*cdf0e10cSrcweir EndProperty 20*cdf0e10cSrcweir Icon = "Wizard.frx":0000 21*cdf0e10cSrcweir KeyPreview = -1 'True 22*cdf0e10cSrcweir LinkTopic = "Form1" 23*cdf0e10cSrcweir LockControls = -1 'True 24*cdf0e10cSrcweir MaxButton = 0 'False 25*cdf0e10cSrcweir MinButton = 0 'False 26*cdf0e10cSrcweir ScaleHeight = 5520 27*cdf0e10cSrcweir ScaleWidth = 8175 28*cdf0e10cSrcweir Tag = "1000" 29*cdf0e10cSrcweir Begin VB.Frame fraStep 30*cdf0e10cSrcweir BorderStyle = 0 'None 31*cdf0e10cSrcweir Caption = "Introduction" 32*cdf0e10cSrcweir ClipControls = 0 'False 33*cdf0e10cSrcweir Enabled = 0 'False 34*cdf0e10cSrcweir BeginProperty Font 35*cdf0e10cSrcweir Name = "MS Sans Serif" 36*cdf0e10cSrcweir Size = 8.25 37*cdf0e10cSrcweir Charset = 0 38*cdf0e10cSrcweir Weight = 400 39*cdf0e10cSrcweir Underline = 0 'False 40*cdf0e10cSrcweir Italic = 0 'False 41*cdf0e10cSrcweir Strikethrough = 0 'False 42*cdf0e10cSrcweir EndProperty 43*cdf0e10cSrcweir Height = 4905 44*cdf0e10cSrcweir Index = 0 45*cdf0e10cSrcweir Left = -10000 46*cdf0e10cSrcweir TabIndex = 25 47*cdf0e10cSrcweir Tag = "1000" 48*cdf0e10cSrcweir Top = 0 49*cdf0e10cSrcweir Width = 8235 50*cdf0e10cSrcweir Begin VB.PictureBox Picture4 51*cdf0e10cSrcweir Appearance = 0 'Flat 52*cdf0e10cSrcweir BackColor = &H80000005& 53*cdf0e10cSrcweir BorderStyle = 0 'None 54*cdf0e10cSrcweir ForeColor = &H80000008& 55*cdf0e10cSrcweir Height = 4935 56*cdf0e10cSrcweir Index = 0 57*cdf0e10cSrcweir Left = 0 58*cdf0e10cSrcweir ScaleHeight = 4935 59*cdf0e10cSrcweir ScaleWidth = 2565 60*cdf0e10cSrcweir TabIndex = 2 61*cdf0e10cSrcweir TabStop = 0 'False 62*cdf0e10cSrcweir Top = 0 63*cdf0e10cSrcweir Width = 2565 64*cdf0e10cSrcweir Begin VB.PictureBox Picture10 65*cdf0e10cSrcweir Height = 735 66*cdf0e10cSrcweir Left = 2580 67*cdf0e10cSrcweir ScaleHeight = 735 68*cdf0e10cSrcweir ScaleWidth = 30 69*cdf0e10cSrcweir TabIndex = 68 70*cdf0e10cSrcweir TabStop = 0 'False 71*cdf0e10cSrcweir Top = 2610 72*cdf0e10cSrcweir Width = 30 73*cdf0e10cSrcweir End 74*cdf0e10cSrcweir Begin VB.PictureBox Picture6 75*cdf0e10cSrcweir Appearance = 0 'Flat 76*cdf0e10cSrcweir BackColor = &H80000005& 77*cdf0e10cSrcweir BorderStyle = 0 'None 78*cdf0e10cSrcweir ForeColor = &H80000008& 79*cdf0e10cSrcweir Height = 1485 80*cdf0e10cSrcweir Left = 150 81*cdf0e10cSrcweir ScaleHeight = 1485 82*cdf0e10cSrcweir ScaleWidth = 2355 83*cdf0e10cSrcweir TabIndex = 67 84*cdf0e10cSrcweir TabStop = 0 'False 85*cdf0e10cSrcweir Top = 3390 86*cdf0e10cSrcweir Width = 2355 87*cdf0e10cSrcweir Begin VB.PictureBox Picture1 88*cdf0e10cSrcweir Appearance = 0 'Flat 89*cdf0e10cSrcweir BackColor = &H80000005& 90*cdf0e10cSrcweir BorderStyle = 0 'None 91*cdf0e10cSrcweir ForeColor = &H80000008& 92*cdf0e10cSrcweir Height = 1200 93*cdf0e10cSrcweir Index = 0 94*cdf0e10cSrcweir Left = 200 95*cdf0e10cSrcweir Picture = "Wizard.frx":482C2 96*cdf0e10cSrcweir ScaleHeight = 1200 97*cdf0e10cSrcweir ScaleWidth = 1980 98*cdf0e10cSrcweir TabIndex = 7 99*cdf0e10cSrcweir TabStop = 0 'False 100*cdf0e10cSrcweir Tag = "1060" 101*cdf0e10cSrcweir Top = 300 102*cdf0e10cSrcweir Width = 1980 103*cdf0e10cSrcweir End 104*cdf0e10cSrcweir End 105*cdf0e10cSrcweir Begin VB.Label lblStep1_4 106*cdf0e10cSrcweir BackColor = &H00EED3C2& 107*cdf0e10cSrcweir BackStyle = 0 'Transparent 108*cdf0e10cSrcweir Caption = "4. Analyze" 109*cdf0e10cSrcweir ForeColor = &H00BF4F59& 110*cdf0e10cSrcweir Height = 195 111*cdf0e10cSrcweir Left = 120 112*cdf0e10cSrcweir TabIndex = 89 113*cdf0e10cSrcweir Tag = "1044" 114*cdf0e10cSrcweir Top = 1800 115*cdf0e10cSrcweir Width = 2140 116*cdf0e10cSrcweir End 117*cdf0e10cSrcweir Begin VB.Line Line2 118*cdf0e10cSrcweir BorderColor = &H00808080& 119*cdf0e10cSrcweir Index = 2 120*cdf0e10cSrcweir X1 = 2550 121*cdf0e10cSrcweir X2 = 2550 122*cdf0e10cSrcweir Y1 = 0 123*cdf0e10cSrcweir Y2 = 4920 124*cdf0e10cSrcweir End 125*cdf0e10cSrcweir Begin VB.Line Line3 126*cdf0e10cSrcweir Index = 1 127*cdf0e10cSrcweir X1 = 120 128*cdf0e10cSrcweir X2 = 2280 129*cdf0e10cSrcweir Y1 = 480 130*cdf0e10cSrcweir Y2 = 480 131*cdf0e10cSrcweir End 132*cdf0e10cSrcweir Begin VB.Label Label7 133*cdf0e10cSrcweir BackColor = &H00EED3C2& 134*cdf0e10cSrcweir Caption = "1. Introduction" 135*cdf0e10cSrcweir ForeColor = &H00BF4F59& 136*cdf0e10cSrcweir Height = 255 137*cdf0e10cSrcweir Index = 1 138*cdf0e10cSrcweir Left = 120 139*cdf0e10cSrcweir TabIndex = 11 140*cdf0e10cSrcweir Tag = "1041" 141*cdf0e10cSrcweir Top = 720 142*cdf0e10cSrcweir Width = 2140 143*cdf0e10cSrcweir End 144*cdf0e10cSrcweir Begin VB.Label Label8 145*cdf0e10cSrcweir BackColor = &H00EED3C2& 146*cdf0e10cSrcweir BackStyle = 0 'Transparent 147*cdf0e10cSrcweir Caption = "3. Results" 148*cdf0e10cSrcweir ForeColor = &H00BF4F59& 149*cdf0e10cSrcweir Height = 255 150*cdf0e10cSrcweir Index = 1 151*cdf0e10cSrcweir Left = 120 152*cdf0e10cSrcweir TabIndex = 9 153*cdf0e10cSrcweir Tag = "1043" 154*cdf0e10cSrcweir Top = 1440 155*cdf0e10cSrcweir Width = 2140 156*cdf0e10cSrcweir End 157*cdf0e10cSrcweir Begin VB.Label Label9 158*cdf0e10cSrcweir BackColor = &H00EED3C2& 159*cdf0e10cSrcweir BackStyle = 0 'Transparent 160*cdf0e10cSrcweir Caption = "2. Documents" 161*cdf0e10cSrcweir ForeColor = &H00BF4F59& 162*cdf0e10cSrcweir Height = 255 163*cdf0e10cSrcweir Index = 1 164*cdf0e10cSrcweir Left = 120 165*cdf0e10cSrcweir TabIndex = 10 166*cdf0e10cSrcweir Tag = "1042" 167*cdf0e10cSrcweir Top = 1080 168*cdf0e10cSrcweir Width = 2140 169*cdf0e10cSrcweir End 170*cdf0e10cSrcweir Begin VB.Label Label12 171*cdf0e10cSrcweir BackStyle = 0 'Transparent 172*cdf0e10cSrcweir Caption = "Steps" 173*cdf0e10cSrcweir BeginProperty Font 174*cdf0e10cSrcweir Name = "Arial" 175*cdf0e10cSrcweir Size = 8.25 176*cdf0e10cSrcweir Charset = 0 177*cdf0e10cSrcweir Weight = 700 178*cdf0e10cSrcweir Underline = 0 'False 179*cdf0e10cSrcweir Italic = 0 'False 180*cdf0e10cSrcweir Strikethrough = 0 'False 181*cdf0e10cSrcweir EndProperty 182*cdf0e10cSrcweir Height = 255 183*cdf0e10cSrcweir Index = 1 184*cdf0e10cSrcweir Left = 120 185*cdf0e10cSrcweir TabIndex = 8 186*cdf0e10cSrcweir Tag = "1040" 187*cdf0e10cSrcweir Top = 240 188*cdf0e10cSrcweir Width = 2115 189*cdf0e10cSrcweir End 190*cdf0e10cSrcweir End 191*cdf0e10cSrcweir Begin VB.PictureBox Picture8 192*cdf0e10cSrcweir Appearance = 0 'Flat 193*cdf0e10cSrcweir BorderStyle = 0 'None 194*cdf0e10cSrcweir ForeColor = &H80000008& 195*cdf0e10cSrcweir Height = 4935 196*cdf0e10cSrcweir Left = 2400 197*cdf0e10cSrcweir ScaleHeight = 4935 198*cdf0e10cSrcweir ScaleWidth = 5925 199*cdf0e10cSrcweir TabIndex = 3 200*cdf0e10cSrcweir TabStop = 0 'False 201*cdf0e10cSrcweir Top = -30 202*cdf0e10cSrcweir Width = 5925 203*cdf0e10cSrcweir Begin VB.CheckBox chkShowIntro 204*cdf0e10cSrcweir Caption = "Do not show this introduction again" 205*cdf0e10cSrcweir Enabled = 0 'False 206*cdf0e10cSrcweir Height = 315 207*cdf0e10cSrcweir Left = 690 208*cdf0e10cSrcweir MaskColor = &H00000000& 209*cdf0e10cSrcweir TabIndex = 6 210*cdf0e10cSrcweir Tag = "1103" 211*cdf0e10cSrcweir Top = 4890 212*cdf0e10cSrcweir Visible = 0 'False 213*cdf0e10cSrcweir Width = 3810 214*cdf0e10cSrcweir End 215*cdf0e10cSrcweir Begin VB.Label lblIntroduction1 216*cdf0e10cSrcweir AutoSize = -1 'True 217*cdf0e10cSrcweir Caption = $"Wizard.frx":4F8B8 218*cdf0e10cSrcweir Height = 585 219*cdf0e10cSrcweir Left = 690 220*cdf0e10cSrcweir TabIndex = 93 221*cdf0e10cSrcweir Tag = "1101" 222*cdf0e10cSrcweir Top = 750 223*cdf0e10cSrcweir Width = 4890 224*cdf0e10cSrcweir WordWrap = -1 'True 225*cdf0e10cSrcweir End 226*cdf0e10cSrcweir Begin VB.Label lblIntroduction3 227*cdf0e10cSrcweir AutoSize = -1 'True 228*cdf0e10cSrcweir Caption = "The wizard will remain on screen while the analysis is carried out." 229*cdf0e10cSrcweir Height = 195 230*cdf0e10cSrcweir Left = 690 231*cdf0e10cSrcweir TabIndex = 0 232*cdf0e10cSrcweir Tag = "1104" 233*cdf0e10cSrcweir Top = 2670 234*cdf0e10cSrcweir Width = 4845 235*cdf0e10cSrcweir WordWrap = -1 'True 236*cdf0e10cSrcweir End 237*cdf0e10cSrcweir Begin VB.Label lblIntroduction2 238*cdf0e10cSrcweir AutoSize = -1 'True 239*cdf0e10cSrcweir Caption = "You will be able to select which documents you want to analyze as well as where you want the results to the analysis to be saved. " 240*cdf0e10cSrcweir Height = 390 241*cdf0e10cSrcweir Left = 690 242*cdf0e10cSrcweir TabIndex = 1 243*cdf0e10cSrcweir Tag = "1102" 244*cdf0e10cSrcweir Top = 1800 245*cdf0e10cSrcweir Width = 4875 246*cdf0e10cSrcweir WordWrap = -1 'True 247*cdf0e10cSrcweir End 248*cdf0e10cSrcweir Begin VB.Label Label12 249*cdf0e10cSrcweir BackStyle = 0 'Transparent 250*cdf0e10cSrcweir Caption = "Introduction" 251*cdf0e10cSrcweir BeginProperty Font 252*cdf0e10cSrcweir Name = "Arial" 253*cdf0e10cSrcweir Size = 8.25 254*cdf0e10cSrcweir Charset = 0 255*cdf0e10cSrcweir Weight = 700 256*cdf0e10cSrcweir Underline = 0 'False 257*cdf0e10cSrcweir Italic = 0 'False 258*cdf0e10cSrcweir Strikethrough = 0 'False 259*cdf0e10cSrcweir EndProperty 260*cdf0e10cSrcweir Height = 255 261*cdf0e10cSrcweir Index = 2 262*cdf0e10cSrcweir Left = 450 263*cdf0e10cSrcweir TabIndex = 5 264*cdf0e10cSrcweir Tag = "1100" 265*cdf0e10cSrcweir Top = 270 266*cdf0e10cSrcweir Width = 4000 267*cdf0e10cSrcweir End 268*cdf0e10cSrcweir End 269*cdf0e10cSrcweir End 270*cdf0e10cSrcweir Begin VB.Frame fraStep 271*cdf0e10cSrcweir BorderStyle = 0 'None 272*cdf0e10cSrcweir Caption = "Setup" 273*cdf0e10cSrcweir Enabled = 0 'False 274*cdf0e10cSrcweir BeginProperty Font 275*cdf0e10cSrcweir Name = "MS Sans Serif" 276*cdf0e10cSrcweir Size = 8.25 277*cdf0e10cSrcweir Charset = 0 278*cdf0e10cSrcweir Weight = 400 279*cdf0e10cSrcweir Underline = 0 'False 280*cdf0e10cSrcweir Italic = 0 'False 281*cdf0e10cSrcweir Strikethrough = 0 'False 282*cdf0e10cSrcweir EndProperty 283*cdf0e10cSrcweir Height = 4905 284*cdf0e10cSrcweir Index = 1 285*cdf0e10cSrcweir Left = -10000 286*cdf0e10cSrcweir TabIndex = 32 287*cdf0e10cSrcweir Tag = "2000" 288*cdf0e10cSrcweir Top = 0 289*cdf0e10cSrcweir Width = 8235 290*cdf0e10cSrcweir Begin VB.PictureBox Picture4 291*cdf0e10cSrcweir Appearance = 0 'Flat 292*cdf0e10cSrcweir BackColor = &H80000005& 293*cdf0e10cSrcweir BorderStyle = 0 'None 294*cdf0e10cSrcweir ForeColor = &H80000008& 295*cdf0e10cSrcweir Height = 4905 296*cdf0e10cSrcweir Index = 1 297*cdf0e10cSrcweir Left = 0 298*cdf0e10cSrcweir ScaleHeight = 4905 299*cdf0e10cSrcweir ScaleWidth = 2565 300*cdf0e10cSrcweir TabIndex = 61 301*cdf0e10cSrcweir TabStop = 0 'False 302*cdf0e10cSrcweir Top = 0 303*cdf0e10cSrcweir Width = 2565 304*cdf0e10cSrcweir Begin VB.PictureBox Picture1 305*cdf0e10cSrcweir Appearance = 0 'Flat 306*cdf0e10cSrcweir BackColor = &H80000005& 307*cdf0e10cSrcweir BorderStyle = 0 'None 308*cdf0e10cSrcweir ForeColor = &H80000008& 309*cdf0e10cSrcweir Height = 1200 310*cdf0e10cSrcweir Index = 1 311*cdf0e10cSrcweir Left = 350 312*cdf0e10cSrcweir Picture = "Wizard.frx":4F971 313*cdf0e10cSrcweir ScaleHeight = 1200 314*cdf0e10cSrcweir ScaleWidth = 1980 315*cdf0e10cSrcweir TabIndex = 62 316*cdf0e10cSrcweir TabStop = 0 'False 317*cdf0e10cSrcweir Tag = "1060" 318*cdf0e10cSrcweir Top = 3690 319*cdf0e10cSrcweir Width = 1980 320*cdf0e10cSrcweir End 321*cdf0e10cSrcweir Begin VB.Label lblStep2_4 322*cdf0e10cSrcweir BackColor = &H00EED3C2& 323*cdf0e10cSrcweir BackStyle = 0 'Transparent 324*cdf0e10cSrcweir Caption = "4. Analyze" 325*cdf0e10cSrcweir ForeColor = &H00BF4F59& 326*cdf0e10cSrcweir Height = 195 327*cdf0e10cSrcweir Left = 120 328*cdf0e10cSrcweir TabIndex = 90 329*cdf0e10cSrcweir Tag = "1044" 330*cdf0e10cSrcweir Top = 1800 331*cdf0e10cSrcweir Width = 2140 332*cdf0e10cSrcweir End 333*cdf0e10cSrcweir Begin VB.Line Line2 334*cdf0e10cSrcweir BorderColor = &H00808080& 335*cdf0e10cSrcweir Index = 1 336*cdf0e10cSrcweir X1 = 2550 337*cdf0e10cSrcweir X2 = 2550 338*cdf0e10cSrcweir Y1 = 0 339*cdf0e10cSrcweir Y2 = 4920 340*cdf0e10cSrcweir End 341*cdf0e10cSrcweir Begin VB.Label Label12 342*cdf0e10cSrcweir BackStyle = 0 'Transparent 343*cdf0e10cSrcweir Caption = "Steps" 344*cdf0e10cSrcweir BeginProperty Font 345*cdf0e10cSrcweir Name = "Arial" 346*cdf0e10cSrcweir Size = 8.25 347*cdf0e10cSrcweir Charset = 0 348*cdf0e10cSrcweir Weight = 700 349*cdf0e10cSrcweir Underline = 0 'False 350*cdf0e10cSrcweir Italic = 0 'False 351*cdf0e10cSrcweir Strikethrough = 0 'False 352*cdf0e10cSrcweir EndProperty 353*cdf0e10cSrcweir Height = 255 354*cdf0e10cSrcweir Index = 3 355*cdf0e10cSrcweir Left = 120 356*cdf0e10cSrcweir TabIndex = 66 357*cdf0e10cSrcweir Tag = "1040" 358*cdf0e10cSrcweir Top = 240 359*cdf0e10cSrcweir Width = 1335 360*cdf0e10cSrcweir End 361*cdf0e10cSrcweir Begin VB.Label Label9 362*cdf0e10cSrcweir BackColor = &H00EED3C2& 363*cdf0e10cSrcweir Caption = "2. Documents" 364*cdf0e10cSrcweir ForeColor = &H00BF4F59& 365*cdf0e10cSrcweir Height = 255 366*cdf0e10cSrcweir Index = 2 367*cdf0e10cSrcweir Left = 120 368*cdf0e10cSrcweir TabIndex = 65 369*cdf0e10cSrcweir Tag = "1042" 370*cdf0e10cSrcweir Top = 1080 371*cdf0e10cSrcweir Width = 2140 372*cdf0e10cSrcweir End 373*cdf0e10cSrcweir Begin VB.Label Label8 374*cdf0e10cSrcweir BackColor = &H00EED3C2& 375*cdf0e10cSrcweir BackStyle = 0 'Transparent 376*cdf0e10cSrcweir Caption = "3. Results" 377*cdf0e10cSrcweir ForeColor = &H00BF4F59& 378*cdf0e10cSrcweir Height = 255 379*cdf0e10cSrcweir Index = 2 380*cdf0e10cSrcweir Left = 120 381*cdf0e10cSrcweir TabIndex = 64 382*cdf0e10cSrcweir Tag = "1043" 383*cdf0e10cSrcweir Top = 1440 384*cdf0e10cSrcweir Width = 2140 385*cdf0e10cSrcweir End 386*cdf0e10cSrcweir Begin VB.Label Label7 387*cdf0e10cSrcweir BackColor = &H00EED3C2& 388*cdf0e10cSrcweir BackStyle = 0 'Transparent 389*cdf0e10cSrcweir Caption = "1. Introduction" 390*cdf0e10cSrcweir ForeColor = &H00BF4F59& 391*cdf0e10cSrcweir Height = 255 392*cdf0e10cSrcweir Index = 2 393*cdf0e10cSrcweir Left = 120 394*cdf0e10cSrcweir TabIndex = 63 395*cdf0e10cSrcweir Tag = "1041" 396*cdf0e10cSrcweir Top = 720 397*cdf0e10cSrcweir Width = 2140 398*cdf0e10cSrcweir End 399*cdf0e10cSrcweir Begin VB.Line Line3 400*cdf0e10cSrcweir Index = 2 401*cdf0e10cSrcweir X1 = 120 402*cdf0e10cSrcweir X2 = 2280 403*cdf0e10cSrcweir Y1 = 480 404*cdf0e10cSrcweir Y2 = 480 405*cdf0e10cSrcweir End 406*cdf0e10cSrcweir End 407*cdf0e10cSrcweir Begin VB.PictureBox Picture7 408*cdf0e10cSrcweir Appearance = 0 'Flat 409*cdf0e10cSrcweir BorderStyle = 0 'None 410*cdf0e10cSrcweir ForeColor = &H80000008& 411*cdf0e10cSrcweir Height = 4725 412*cdf0e10cSrcweir Left = 2580 413*cdf0e10cSrcweir ScaleHeight = 4725 414*cdf0e10cSrcweir ScaleWidth = 5535 415*cdf0e10cSrcweir TabIndex = 58 416*cdf0e10cSrcweir TabStop = 0 'False 417*cdf0e10cSrcweir Top = 0 418*cdf0e10cSrcweir Width = 5535 419*cdf0e10cSrcweir Begin VB.ComboBox cbIgnoreOld 420*cdf0e10cSrcweir Height = 330 421*cdf0e10cSrcweir ItemData = "Wizard.frx":56F67 422*cdf0e10cSrcweir Left = 3950 423*cdf0e10cSrcweir List = "Wizard.frx":56F74 424*cdf0e10cSrcweir Style = 2 'Dropdown List 425*cdf0e10cSrcweir TabIndex = 99 426*cdf0e10cSrcweir Top = 1570 427*cdf0e10cSrcweir Width = 1215 428*cdf0e10cSrcweir End 429*cdf0e10cSrcweir Begin VB.CheckBox chkIgnoreOld 430*cdf0e10cSrcweir Caption = "Ignore documents older than" 431*cdf0e10cSrcweir Height = 225 432*cdf0e10cSrcweir Left = 450 433*cdf0e10cSrcweir TabIndex = 98 434*cdf0e10cSrcweir Top = 1600 435*cdf0e10cSrcweir Width = 3400 436*cdf0e10cSrcweir End 437*cdf0e10cSrcweir Begin VB.CheckBox chkWordDoc 438*cdf0e10cSrcweir Caption = "Documents (*.doc)" 439*cdf0e10cSrcweir Height = 225 440*cdf0e10cSrcweir Left = 2160 441*cdf0e10cSrcweir TabIndex = 19 442*cdf0e10cSrcweir Tag = "1208" 443*cdf0e10cSrcweir Top = 2600 444*cdf0e10cSrcweir Value = 1 'Checked 445*cdf0e10cSrcweir Width = 3200 446*cdf0e10cSrcweir End 447*cdf0e10cSrcweir Begin VB.CheckBox chkWordTemplate 448*cdf0e10cSrcweir Caption = "Templates (*.dot)" 449*cdf0e10cSrcweir Height = 225 450*cdf0e10cSrcweir Left = 2160 451*cdf0e10cSrcweir TabIndex = 20 452*cdf0e10cSrcweir Tag = "1209" 453*cdf0e10cSrcweir Top = 2900 454*cdf0e10cSrcweir Width = 3200 455*cdf0e10cSrcweir End 456*cdf0e10cSrcweir Begin VB.CheckBox chkPPTemplate 457*cdf0e10cSrcweir Caption = "Templates (*.pot)" 458*cdf0e10cSrcweir Height = 225 459*cdf0e10cSrcweir Left = 2160 460*cdf0e10cSrcweir TabIndex = 24 461*cdf0e10cSrcweir Tag = "1215" 462*cdf0e10cSrcweir Top = 4400 463*cdf0e10cSrcweir Width = 3200 464*cdf0e10cSrcweir End 465*cdf0e10cSrcweir Begin VB.CheckBox chkPPDoc 466*cdf0e10cSrcweir Caption = "Presentations (*.ppt)" 467*cdf0e10cSrcweir Height = 225 468*cdf0e10cSrcweir Left = 2160 469*cdf0e10cSrcweir TabIndex = 23 470*cdf0e10cSrcweir Tag = "1214" 471*cdf0e10cSrcweir Top = 4100 472*cdf0e10cSrcweir Width = 3200 473*cdf0e10cSrcweir End 474*cdf0e10cSrcweir Begin VB.CheckBox chkExcelDoc 475*cdf0e10cSrcweir Caption = "Spreadsheets (*.xls)" 476*cdf0e10cSrcweir Height = 225 477*cdf0e10cSrcweir Left = 2160 478*cdf0e10cSrcweir TabIndex = 21 479*cdf0e10cSrcweir Tag = "1211" 480*cdf0e10cSrcweir Top = 3350 481*cdf0e10cSrcweir Width = 3200 482*cdf0e10cSrcweir End 483*cdf0e10cSrcweir Begin VB.CheckBox chkExcelTemplate 484*cdf0e10cSrcweir Caption = "Templates (*.xlt)" 485*cdf0e10cSrcweir Height = 225 486*cdf0e10cSrcweir Left = 2160 487*cdf0e10cSrcweir TabIndex = 22 488*cdf0e10cSrcweir Tag = "1212" 489*cdf0e10cSrcweir Top = 3650 490*cdf0e10cSrcweir Width = 3200 491*cdf0e10cSrcweir End 492*cdf0e10cSrcweir Begin VB.CommandButton btnBrowseDirInput 493*cdf0e10cSrcweir Caption = "..." 494*cdf0e10cSrcweir Height = 315 495*cdf0e10cSrcweir Left = 4740 496*cdf0e10cSrcweir TabIndex = 17 497*cdf0e10cSrcweir Top = 900 498*cdf0e10cSrcweir Width = 400 499*cdf0e10cSrcweir End 500*cdf0e10cSrcweir Begin VB.TextBox txtInputDir 501*cdf0e10cSrcweir Height = 315 502*cdf0e10cSrcweir Left = 450 503*cdf0e10cSrcweir TabIndex = 16 504*cdf0e10cSrcweir Tag = "1205" 505*cdf0e10cSrcweir Text = "C:\" 506*cdf0e10cSrcweir Top = 900 507*cdf0e10cSrcweir Width = 4155 508*cdf0e10cSrcweir End 509*cdf0e10cSrcweir Begin VB.CheckBox chkIncludeSubdirs 510*cdf0e10cSrcweir Caption = "Include subdirectories in the analysis" 511*cdf0e10cSrcweir Height = 225 512*cdf0e10cSrcweir Left = 450 513*cdf0e10cSrcweir TabIndex = 18 514*cdf0e10cSrcweir Tag = "1202" 515*cdf0e10cSrcweir Top = 1300 516*cdf0e10cSrcweir Width = 4965 517*cdf0e10cSrcweir End 518*cdf0e10cSrcweir Begin VB.Label lblDocTypes 519*cdf0e10cSrcweir Caption = "Document types to analyze" 520*cdf0e10cSrcweir Height = 225 521*cdf0e10cSrcweir Left = 450 522*cdf0e10cSrcweir TabIndex = 95 523*cdf0e10cSrcweir Tag = "1206" 524*cdf0e10cSrcweir Top = 2250 525*cdf0e10cSrcweir Width = 4905 526*cdf0e10cSrcweir End 527*cdf0e10cSrcweir Begin VB.Label lblChooseDocs 528*cdf0e10cSrcweir AutoSize = -1 'True 529*cdf0e10cSrcweir Caption = "Choose the documents you want to analyze" 530*cdf0e10cSrcweir BeginProperty Font 531*cdf0e10cSrcweir Name = "Arial" 532*cdf0e10cSrcweir Size = 8.25 533*cdf0e10cSrcweir Charset = 0 534*cdf0e10cSrcweir Weight = 700 535*cdf0e10cSrcweir Underline = 0 'False 536*cdf0e10cSrcweir Italic = 0 'False 537*cdf0e10cSrcweir Strikethrough = 0 'False 538*cdf0e10cSrcweir EndProperty 539*cdf0e10cSrcweir Height = 195 540*cdf0e10cSrcweir Left = 300 541*cdf0e10cSrcweir TabIndex = 94 542*cdf0e10cSrcweir Tag = "1200" 543*cdf0e10cSrcweir Top = 240 544*cdf0e10cSrcweir Width = 5115 545*cdf0e10cSrcweir WordWrap = -1 'True 546*cdf0e10cSrcweir End 547*cdf0e10cSrcweir Begin VB.Label Label13 548*cdf0e10cSrcweir AutoSize = -1 'True 549*cdf0e10cSrcweir Caption = "PowerPoint" 550*cdf0e10cSrcweir Height = 225 551*cdf0e10cSrcweir Index = 2 552*cdf0e10cSrcweir Left = 690 553*cdf0e10cSrcweir TabIndex = 74 554*cdf0e10cSrcweir Tag = "1213" 555*cdf0e10cSrcweir Top = 4100 556*cdf0e10cSrcweir Width = 1245 557*cdf0e10cSrcweir WordWrap = -1 'True 558*cdf0e10cSrcweir End 559*cdf0e10cSrcweir Begin VB.Label Label13 560*cdf0e10cSrcweir AutoSize = -1 'True 561*cdf0e10cSrcweir Caption = "Excel" 562*cdf0e10cSrcweir Height = 225 563*cdf0e10cSrcweir Index = 1 564*cdf0e10cSrcweir Left = 690 565*cdf0e10cSrcweir TabIndex = 73 566*cdf0e10cSrcweir Tag = "1210" 567*cdf0e10cSrcweir Top = 3350 568*cdf0e10cSrcweir Width = 1245 569*cdf0e10cSrcweir WordWrap = -1 'True 570*cdf0e10cSrcweir End 571*cdf0e10cSrcweir Begin VB.Label Label13 572*cdf0e10cSrcweir AutoSize = -1 'True 573*cdf0e10cSrcweir Caption = "Word" 574*cdf0e10cSrcweir Height = 225 575*cdf0e10cSrcweir Index = 0 576*cdf0e10cSrcweir Left = 690 577*cdf0e10cSrcweir TabIndex = 72 578*cdf0e10cSrcweir Tag = "1207" 579*cdf0e10cSrcweir Top = 2600 580*cdf0e10cSrcweir Width = 1245 581*cdf0e10cSrcweir WordWrap = -1 'True 582*cdf0e10cSrcweir End 583*cdf0e10cSrcweir Begin VB.Label Label1 584*cdf0e10cSrcweir Caption = "Location of Microsoft Office documents" 585*cdf0e10cSrcweir Height = 200 586*cdf0e10cSrcweir Left = 450 587*cdf0e10cSrcweir TabIndex = 59 588*cdf0e10cSrcweir Tag = "1201" 589*cdf0e10cSrcweir Top = 600 590*cdf0e10cSrcweir Width = 4935 591*cdf0e10cSrcweir End 592*cdf0e10cSrcweir End 593*cdf0e10cSrcweir End 594*cdf0e10cSrcweir Begin VB.Frame fraStep 595*cdf0e10cSrcweir BorderStyle = 0 'None 596*cdf0e10cSrcweir Caption = "Options" 597*cdf0e10cSrcweir Enabled = 0 'False 598*cdf0e10cSrcweir BeginProperty Font 599*cdf0e10cSrcweir Name = "MS Sans Serif" 600*cdf0e10cSrcweir Size = 8.25 601*cdf0e10cSrcweir Charset = 0 602*cdf0e10cSrcweir Weight = 400 603*cdf0e10cSrcweir Underline = 0 'False 604*cdf0e10cSrcweir Italic = 0 'False 605*cdf0e10cSrcweir Strikethrough = 0 'False 606*cdf0e10cSrcweir EndProperty 607*cdf0e10cSrcweir Height = 4905 608*cdf0e10cSrcweir Index = 2 609*cdf0e10cSrcweir Left = -10000 610*cdf0e10cSrcweir TabIndex = 33 611*cdf0e10cSrcweir Tag = "2002" 612*cdf0e10cSrcweir Top = 0 613*cdf0e10cSrcweir Width = 8235 614*cdf0e10cSrcweir Begin VB.PictureBox Picture11 615*cdf0e10cSrcweir BorderStyle = 0 'None 616*cdf0e10cSrcweir Height = 555 617*cdf0e10cSrcweir Left = 7260 618*cdf0e10cSrcweir ScaleHeight = 555 619*cdf0e10cSrcweir ScaleWidth = 705 620*cdf0e10cSrcweir TabIndex = 75 621*cdf0e10cSrcweir Top = 1890 622*cdf0e10cSrcweir Width = 705 623*cdf0e10cSrcweir Begin VB.CommandButton btnBrowseDirOut 624*cdf0e10cSrcweir Caption = "..." 625*cdf0e10cSrcweir Height = 375 626*cdf0e10cSrcweir Left = 90 627*cdf0e10cSrcweir TabIndex = 28 628*cdf0e10cSrcweir Top = 90 629*cdf0e10cSrcweir Width = 495 630*cdf0e10cSrcweir End 631*cdf0e10cSrcweir End 632*cdf0e10cSrcweir Begin VB.TextBox txtResultsName 633*cdf0e10cSrcweir Height = 375 634*cdf0e10cSrcweir Left = 3030 635*cdf0e10cSrcweir TabIndex = 26 636*cdf0e10cSrcweir Tag = "1302" 637*cdf0e10cSrcweir Text = "Analysis Results.xls" 638*cdf0e10cSrcweir Top = 1140 639*cdf0e10cSrcweir Width = 3045 640*cdf0e10cSrcweir End 641*cdf0e10cSrcweir Begin VB.TextBox txtOutputDir 642*cdf0e10cSrcweir Height = 375 643*cdf0e10cSrcweir Left = 3030 644*cdf0e10cSrcweir TabIndex = 27 645*cdf0e10cSrcweir Top = 1980 646*cdf0e10cSrcweir Width = 4185 647*cdf0e10cSrcweir End 648*cdf0e10cSrcweir Begin VB.PictureBox Picture5 649*cdf0e10cSrcweir Appearance = 0 'Flat 650*cdf0e10cSrcweir BorderStyle = 0 'None 651*cdf0e10cSrcweir ForeColor = &H80000008& 652*cdf0e10cSrcweir Height = 1365 653*cdf0e10cSrcweir Left = 3300 654*cdf0e10cSrcweir ScaleHeight = 1365 655*cdf0e10cSrcweir ScaleWidth = 4635 656*cdf0e10cSrcweir TabIndex = 57 657*cdf0e10cSrcweir TabStop = 0 'False 658*cdf0e10cSrcweir Top = 3210 659*cdf0e10cSrcweir Width = 4635 660*cdf0e10cSrcweir Begin VB.OptionButton rdbResultsPrompt 661*cdf0e10cSrcweir Caption = "Ask me before overwriting" 662*cdf0e10cSrcweir Height = 435 663*cdf0e10cSrcweir Left = 0 664*cdf0e10cSrcweir TabIndex = 29 665*cdf0e10cSrcweir Tag = "1312" 666*cdf0e10cSrcweir Top = 0 667*cdf0e10cSrcweir Value = -1 'True 668*cdf0e10cSrcweir Width = 4485 669*cdf0e10cSrcweir End 670*cdf0e10cSrcweir Begin VB.OptionButton rdbResultsOverwrite 671*cdf0e10cSrcweir Caption = "Overwrite without asking me" 672*cdf0e10cSrcweir Height = 435 673*cdf0e10cSrcweir Left = 0 674*cdf0e10cSrcweir TabIndex = 30 675*cdf0e10cSrcweir Tag = "1313" 676*cdf0e10cSrcweir Top = 450 677*cdf0e10cSrcweir Width = 4455 678*cdf0e10cSrcweir End 679*cdf0e10cSrcweir Begin VB.OptionButton rdbResultsAppend 680*cdf0e10cSrcweir Caption = "Append the new results to the existing results" 681*cdf0e10cSrcweir Height = 675 682*cdf0e10cSrcweir Left = 0 683*cdf0e10cSrcweir TabIndex = 31 684*cdf0e10cSrcweir Tag = "1314" 685*cdf0e10cSrcweir Top = 780 686*cdf0e10cSrcweir Visible = 0 'False 687*cdf0e10cSrcweir Width = 4515 688*cdf0e10cSrcweir End 689*cdf0e10cSrcweir End 690*cdf0e10cSrcweir Begin VB.Frame Frame3 691*cdf0e10cSrcweir Appearance = 0 'Flat 692*cdf0e10cSrcweir BackColor = &H80000005& 693*cdf0e10cSrcweir BorderStyle = 0 'None 694*cdf0e10cSrcweir Enabled = 0 'False 695*cdf0e10cSrcweir ForeColor = &H0099A8AC& 696*cdf0e10cSrcweir Height = 5175 697*cdf0e10cSrcweir Index = 0 698*cdf0e10cSrcweir Left = 0 699*cdf0e10cSrcweir TabIndex = 39 700*cdf0e10cSrcweir Top = 0 701*cdf0e10cSrcweir Width = 2535 702*cdf0e10cSrcweir Begin VB.PictureBox Picture1 703*cdf0e10cSrcweir Appearance = 0 'Flat 704*cdf0e10cSrcweir BackColor = &H80000005& 705*cdf0e10cSrcweir BorderStyle = 0 'None 706*cdf0e10cSrcweir ForeColor = &H80000008& 707*cdf0e10cSrcweir Height = 1200 708*cdf0e10cSrcweir Index = 3 709*cdf0e10cSrcweir Left = 350 710*cdf0e10cSrcweir Picture = "Wizard.frx":56F97 711*cdf0e10cSrcweir ScaleHeight = 1200 712*cdf0e10cSrcweir ScaleWidth = 1980 713*cdf0e10cSrcweir TabIndex = 40 714*cdf0e10cSrcweir TabStop = 0 'False 715*cdf0e10cSrcweir Top = 3690 716*cdf0e10cSrcweir Width = 1980 717*cdf0e10cSrcweir End 718*cdf0e10cSrcweir Begin VB.Label lblStep3_4 719*cdf0e10cSrcweir BackColor = &H00EED3C2& 720*cdf0e10cSrcweir BackStyle = 0 'Transparent 721*cdf0e10cSrcweir Caption = "4. Analyze" 722*cdf0e10cSrcweir ForeColor = &H00BF4F59& 723*cdf0e10cSrcweir Height = 195 724*cdf0e10cSrcweir Left = 120 725*cdf0e10cSrcweir TabIndex = 91 726*cdf0e10cSrcweir Tag = "1044" 727*cdf0e10cSrcweir Top = 1800 728*cdf0e10cSrcweir Width = 2140 729*cdf0e10cSrcweir End 730*cdf0e10cSrcweir Begin VB.Label Label12 731*cdf0e10cSrcweir BackStyle = 0 'Transparent 732*cdf0e10cSrcweir Caption = "Steps" 733*cdf0e10cSrcweir BeginProperty Font 734*cdf0e10cSrcweir Name = "Arial" 735*cdf0e10cSrcweir Size = 8.25 736*cdf0e10cSrcweir Charset = 0 737*cdf0e10cSrcweir Weight = 700 738*cdf0e10cSrcweir Underline = 0 'False 739*cdf0e10cSrcweir Italic = 0 'False 740*cdf0e10cSrcweir Strikethrough = 0 'False 741*cdf0e10cSrcweir EndProperty 742*cdf0e10cSrcweir Height = 255 743*cdf0e10cSrcweir Index = 0 744*cdf0e10cSrcweir Left = 120 745*cdf0e10cSrcweir TabIndex = 53 746*cdf0e10cSrcweir Tag = "1040" 747*cdf0e10cSrcweir Top = 240 748*cdf0e10cSrcweir Width = 1335 749*cdf0e10cSrcweir End 750*cdf0e10cSrcweir Begin VB.Label Label9 751*cdf0e10cSrcweir BackColor = &H00EED3C2& 752*cdf0e10cSrcweir BackStyle = 0 'Transparent 753*cdf0e10cSrcweir Caption = "2. Documents" 754*cdf0e10cSrcweir ForeColor = &H00BF4F59& 755*cdf0e10cSrcweir Height = 255 756*cdf0e10cSrcweir Index = 0 757*cdf0e10cSrcweir Left = 120 758*cdf0e10cSrcweir TabIndex = 43 759*cdf0e10cSrcweir Tag = "1042" 760*cdf0e10cSrcweir Top = 1080 761*cdf0e10cSrcweir Width = 2140 762*cdf0e10cSrcweir End 763*cdf0e10cSrcweir Begin VB.Label Label8 764*cdf0e10cSrcweir BackColor = &H00EED3C2& 765*cdf0e10cSrcweir Caption = "3. Results" 766*cdf0e10cSrcweir ForeColor = &H00BF4F59& 767*cdf0e10cSrcweir Height = 255 768*cdf0e10cSrcweir Index = 0 769*cdf0e10cSrcweir Left = 120 770*cdf0e10cSrcweir TabIndex = 42 771*cdf0e10cSrcweir Tag = "1043" 772*cdf0e10cSrcweir Top = 1440 773*cdf0e10cSrcweir Width = 2140 774*cdf0e10cSrcweir End 775*cdf0e10cSrcweir Begin VB.Label Label7 776*cdf0e10cSrcweir BackColor = &H00EED3C2& 777*cdf0e10cSrcweir BackStyle = 0 'Transparent 778*cdf0e10cSrcweir Caption = "1. Introduction" 779*cdf0e10cSrcweir ForeColor = &H00BF4F59& 780*cdf0e10cSrcweir Height = 255 781*cdf0e10cSrcweir Index = 0 782*cdf0e10cSrcweir Left = 120 783*cdf0e10cSrcweir TabIndex = 41 784*cdf0e10cSrcweir Tag = "1041" 785*cdf0e10cSrcweir Top = 720 786*cdf0e10cSrcweir Width = 2140 787*cdf0e10cSrcweir End 788*cdf0e10cSrcweir Begin VB.Line Line3 789*cdf0e10cSrcweir Index = 0 790*cdf0e10cSrcweir X1 = 120 791*cdf0e10cSrcweir X2 = 2280 792*cdf0e10cSrcweir Y1 = 480 793*cdf0e10cSrcweir Y2 = 480 794*cdf0e10cSrcweir End 795*cdf0e10cSrcweir End 796*cdf0e10cSrcweir Begin VB.Label Label3 797*cdf0e10cSrcweir Caption = "File name for the results spreadsheet" 798*cdf0e10cSrcweir Height = 195 799*cdf0e10cSrcweir Left = 3030 800*cdf0e10cSrcweir TabIndex = 71 801*cdf0e10cSrcweir Tag = "1301" 802*cdf0e10cSrcweir Top = 840 803*cdf0e10cSrcweir Width = 4785 804*cdf0e10cSrcweir End 805*cdf0e10cSrcweir Begin VB.Label lblResultsLocation 806*cdf0e10cSrcweir Caption = "Location" 807*cdf0e10cSrcweir Height = 195 808*cdf0e10cSrcweir Left = 3030 809*cdf0e10cSrcweir TabIndex = 70 810*cdf0e10cSrcweir Tag = "1304" 811*cdf0e10cSrcweir Top = 1710 812*cdf0e10cSrcweir Width = 4755 813*cdf0e10cSrcweir End 814*cdf0e10cSrcweir Begin VB.Label Label13 815*cdf0e10cSrcweir AutoSize = -1 'True 816*cdf0e10cSrcweir Caption = "If results already exisit under the same name and location:" 817*cdf0e10cSrcweir Height = 195 818*cdf0e10cSrcweir Index = 5 819*cdf0e10cSrcweir Left = 3030 820*cdf0e10cSrcweir TabIndex = 38 821*cdf0e10cSrcweir Tag = "1311" 822*cdf0e10cSrcweir Top = 2730 823*cdf0e10cSrcweir Width = 4230 824*cdf0e10cSrcweir WordWrap = -1 'True 825*cdf0e10cSrcweir End 826*cdf0e10cSrcweir Begin VB.Line Line2 827*cdf0e10cSrcweir BorderColor = &H00808080& 828*cdf0e10cSrcweir Index = 0 829*cdf0e10cSrcweir X1 = 2550 830*cdf0e10cSrcweir X2 = 2550 831*cdf0e10cSrcweir Y1 = 0 832*cdf0e10cSrcweir Y2 = 4920 833*cdf0e10cSrcweir End 834*cdf0e10cSrcweir Begin VB.Label lblChooseResults 835*cdf0e10cSrcweir AutoSize = -1 'True 836*cdf0e10cSrcweir Caption = "Choose where and how to save the analysis results" 837*cdf0e10cSrcweir BeginProperty Font 838*cdf0e10cSrcweir Name = "Arial" 839*cdf0e10cSrcweir Size = 8.25 840*cdf0e10cSrcweir Charset = 0 841*cdf0e10cSrcweir Weight = 700 842*cdf0e10cSrcweir Underline = 0 'False 843*cdf0e10cSrcweir Italic = 0 'False 844*cdf0e10cSrcweir Strikethrough = 0 'False 845*cdf0e10cSrcweir EndProperty 846*cdf0e10cSrcweir Height = 195 847*cdf0e10cSrcweir Left = 2880 848*cdf0e10cSrcweir TabIndex = 37 849*cdf0e10cSrcweir Tag = "1300" 850*cdf0e10cSrcweir Top = 240 851*cdf0e10cSrcweir Width = 5055 852*cdf0e10cSrcweir WordWrap = -1 'True 853*cdf0e10cSrcweir End 854*cdf0e10cSrcweir End 855*cdf0e10cSrcweir Begin VB.Frame fraStep 856*cdf0e10cSrcweir BorderStyle = 0 'None 857*cdf0e10cSrcweir Caption = "Analyze" 858*cdf0e10cSrcweir Enabled = 0 'False 859*cdf0e10cSrcweir BeginProperty Font 860*cdf0e10cSrcweir Name = "MS Sans Serif" 861*cdf0e10cSrcweir Size = 8.25 862*cdf0e10cSrcweir Charset = 0 863*cdf0e10cSrcweir Weight = 400 864*cdf0e10cSrcweir Underline = 0 'False 865*cdf0e10cSrcweir Italic = 0 'False 866*cdf0e10cSrcweir Strikethrough = 0 'False 867*cdf0e10cSrcweir EndProperty 868*cdf0e10cSrcweir Height = 4905 869*cdf0e10cSrcweir Index = 3 870*cdf0e10cSrcweir Left = 0 871*cdf0e10cSrcweir TabIndex = 34 872*cdf0e10cSrcweir Tag = "3000" 873*cdf0e10cSrcweir Top = 0 874*cdf0e10cSrcweir Width = 2.45745e5 875*cdf0e10cSrcweir Begin VB.PictureBox Picture12 876*cdf0e10cSrcweir Appearance = 0 'Flat 877*cdf0e10cSrcweir BorderStyle = 0 'None 878*cdf0e10cSrcweir ForeColor = &H80000008& 879*cdf0e10cSrcweir Height = 4905 880*cdf0e10cSrcweir Left = 10020 881*cdf0e10cSrcweir ScaleHeight = 4905 882*cdf0e10cSrcweir ScaleWidth = 8175 883*cdf0e10cSrcweir TabIndex = 69 884*cdf0e10cSrcweir TabStop = 0 'False 885*cdf0e10cSrcweir Top = 0 886*cdf0e10cSrcweir Width = 8175 887*cdf0e10cSrcweir End 888*cdf0e10cSrcweir Begin VB.CommandButton btnPrepare 889*cdf0e10cSrcweir Caption = "Prepare" 890*cdf0e10cSrcweir Enabled = 0 'False 891*cdf0e10cSrcweir Height = 375 892*cdf0e10cSrcweir Left = 3340 893*cdf0e10cSrcweir TabIndex = 97 894*cdf0e10cSrcweir Tag = "1411" 895*cdf0e10cSrcweir Top = 4410 896*cdf0e10cSrcweir Visible = 0 'False 897*cdf0e10cSrcweir Width = 4000 898*cdf0e10cSrcweir End 899*cdf0e10cSrcweir Begin VB.CommandButton btnRunAnalysis 900*cdf0e10cSrcweir Caption = "Run" 901*cdf0e10cSrcweir Height = 375 902*cdf0e10cSrcweir Left = 3340 903*cdf0e10cSrcweir TabIndex = 35 904*cdf0e10cSrcweir Tag = "1404" 905*cdf0e10cSrcweir Top = 3410 906*cdf0e10cSrcweir Width = 4000 907*cdf0e10cSrcweir End 908*cdf0e10cSrcweir Begin VB.CommandButton btnViewResults 909*cdf0e10cSrcweir Caption = "View" 910*cdf0e10cSrcweir Enabled = 0 'False 911*cdf0e10cSrcweir Height = 375 912*cdf0e10cSrcweir Left = 3340 913*cdf0e10cSrcweir TabIndex = 36 914*cdf0e10cSrcweir Tag = "1406" 915*cdf0e10cSrcweir Top = 3910 916*cdf0e10cSrcweir Width = 4000 917*cdf0e10cSrcweir End 918*cdf0e10cSrcweir Begin VB.Frame Frame3 919*cdf0e10cSrcweir Appearance = 0 'Flat 920*cdf0e10cSrcweir BackColor = &H80000005& 921*cdf0e10cSrcweir BorderStyle = 0 'None 922*cdf0e10cSrcweir Enabled = 0 'False 923*cdf0e10cSrcweir ForeColor = &H0099A8AC& 924*cdf0e10cSrcweir Height = 5175 925*cdf0e10cSrcweir Index = 3 926*cdf0e10cSrcweir Left = 0 927*cdf0e10cSrcweir TabIndex = 44 928*cdf0e10cSrcweir Top = 0 929*cdf0e10cSrcweir Width = 2535 930*cdf0e10cSrcweir Begin VB.PictureBox Picture4 931*cdf0e10cSrcweir Appearance = 0 'Flat 932*cdf0e10cSrcweir BackColor = &H80000005& 933*cdf0e10cSrcweir BorderStyle = 0 'None 934*cdf0e10cSrcweir ForeColor = &H80000008& 935*cdf0e10cSrcweir Height = 1575 936*cdf0e10cSrcweir Index = 2 937*cdf0e10cSrcweir Left = 150 938*cdf0e10cSrcweir ScaleHeight = 1575 939*cdf0e10cSrcweir ScaleWidth = 2385 940*cdf0e10cSrcweir TabIndex = 55 941*cdf0e10cSrcweir TabStop = 0 'False 942*cdf0e10cSrcweir Top = 3390 943*cdf0e10cSrcweir Width = 2385 944*cdf0e10cSrcweir Begin VB.PictureBox Picture1 945*cdf0e10cSrcweir Appearance = 0 'Flat 946*cdf0e10cSrcweir BackColor = &H80000005& 947*cdf0e10cSrcweir BorderStyle = 0 'None 948*cdf0e10cSrcweir ForeColor = &H80000008& 949*cdf0e10cSrcweir Height = 1200 950*cdf0e10cSrcweir Index = 2 951*cdf0e10cSrcweir Left = 200 952*cdf0e10cSrcweir Picture = "Wizard.frx":5E58D 953*cdf0e10cSrcweir ScaleHeight = 1200 954*cdf0e10cSrcweir ScaleWidth = 2475 955*cdf0e10cSrcweir TabIndex = 56 956*cdf0e10cSrcweir TabStop = 0 'False 957*cdf0e10cSrcweir Tag = "1060" 958*cdf0e10cSrcweir Top = 300 959*cdf0e10cSrcweir Width = 2480 960*cdf0e10cSrcweir End 961*cdf0e10cSrcweir End 962*cdf0e10cSrcweir Begin VB.Label lblStep4_4 963*cdf0e10cSrcweir BackColor = &H00EED3C2& 964*cdf0e10cSrcweir Caption = "4. Analyze" 965*cdf0e10cSrcweir ForeColor = &H00BF4F59& 966*cdf0e10cSrcweir Height = 255 967*cdf0e10cSrcweir Left = 120 968*cdf0e10cSrcweir TabIndex = 92 969*cdf0e10cSrcweir Tag = "1044" 970*cdf0e10cSrcweir Top = 1800 971*cdf0e10cSrcweir Width = 2140 972*cdf0e10cSrcweir End 973*cdf0e10cSrcweir Begin VB.Label Label12 974*cdf0e10cSrcweir BackStyle = 0 'Transparent 975*cdf0e10cSrcweir Caption = "Steps" 976*cdf0e10cSrcweir BeginProperty Font 977*cdf0e10cSrcweir Name = "Arial" 978*cdf0e10cSrcweir Size = 8.25 979*cdf0e10cSrcweir Charset = 0 980*cdf0e10cSrcweir Weight = 700 981*cdf0e10cSrcweir Underline = 0 'False 982*cdf0e10cSrcweir Italic = 0 'False 983*cdf0e10cSrcweir Strikethrough = 0 'False 984*cdf0e10cSrcweir EndProperty 985*cdf0e10cSrcweir Height = 255 986*cdf0e10cSrcweir Index = 5 987*cdf0e10cSrcweir Left = 120 988*cdf0e10cSrcweir TabIndex = 54 989*cdf0e10cSrcweir Tag = "1040" 990*cdf0e10cSrcweir Top = 240 991*cdf0e10cSrcweir Width = 1335 992*cdf0e10cSrcweir End 993*cdf0e10cSrcweir Begin VB.Label Label9 994*cdf0e10cSrcweir BackColor = &H00EED3C2& 995*cdf0e10cSrcweir BackStyle = 0 'Transparent 996*cdf0e10cSrcweir Caption = "2. Documents" 997*cdf0e10cSrcweir ForeColor = &H00BF4F59& 998*cdf0e10cSrcweir Height = 255 999*cdf0e10cSrcweir Index = 3 1000*cdf0e10cSrcweir Left = 120 1001*cdf0e10cSrcweir TabIndex = 47 1002*cdf0e10cSrcweir Tag = "1042" 1003*cdf0e10cSrcweir Top = 1080 1004*cdf0e10cSrcweir Width = 2140 1005*cdf0e10cSrcweir End 1006*cdf0e10cSrcweir Begin VB.Label Label8 1007*cdf0e10cSrcweir BackColor = &H00EED3C2& 1008*cdf0e10cSrcweir BackStyle = 0 'Transparent 1009*cdf0e10cSrcweir Caption = "3. Results" 1010*cdf0e10cSrcweir ForeColor = &H00BF4F59& 1011*cdf0e10cSrcweir Height = 255 1012*cdf0e10cSrcweir Index = 3 1013*cdf0e10cSrcweir Left = 120 1014*cdf0e10cSrcweir TabIndex = 46 1015*cdf0e10cSrcweir Tag = "1043" 1016*cdf0e10cSrcweir Top = 1440 1017*cdf0e10cSrcweir Width = 2140 1018*cdf0e10cSrcweir End 1019*cdf0e10cSrcweir Begin VB.Label Label7 1020*cdf0e10cSrcweir BackColor = &H00EED3C2& 1021*cdf0e10cSrcweir BackStyle = 0 'Transparent 1022*cdf0e10cSrcweir Caption = "1. Introduction" 1023*cdf0e10cSrcweir ForeColor = &H00BF4F59& 1024*cdf0e10cSrcweir Height = 255 1025*cdf0e10cSrcweir Index = 3 1026*cdf0e10cSrcweir Left = 120 1027*cdf0e10cSrcweir TabIndex = 45 1028*cdf0e10cSrcweir Tag = "1041" 1029*cdf0e10cSrcweir Top = 720 1030*cdf0e10cSrcweir Width = 2140 1031*cdf0e10cSrcweir End 1032*cdf0e10cSrcweir Begin VB.Line Line3 1033*cdf0e10cSrcweir Index = 3 1034*cdf0e10cSrcweir X1 = 120 1035*cdf0e10cSrcweir X2 = 2280 1036*cdf0e10cSrcweir Y1 = 480 1037*cdf0e10cSrcweir Y2 = 480 1038*cdf0e10cSrcweir End 1039*cdf0e10cSrcweir End 1040*cdf0e10cSrcweir Begin VB.Label lblSkippedOld 1041*cdf0e10cSrcweir Caption = "Skipped <TOPIC> documets, because they were too old" 1042*cdf0e10cSrcweir Height = 195 1043*cdf0e10cSrcweir Left = 3180 1044*cdf0e10cSrcweir TabIndex = 60 1045*cdf0e10cSrcweir Top = 2880 1046*cdf0e10cSrcweir Width = 4935 1047*cdf0e10cSrcweir End 1048*cdf0e10cSrcweir Begin VB.Label lblSetupDone 1049*cdf0e10cSrcweir AutoSize = -1 'True 1050*cdf0e10cSrcweir Caption = "Run the analysis and view the results" 1051*cdf0e10cSrcweir BeginProperty Font 1052*cdf0e10cSrcweir Name = "Arial" 1053*cdf0e10cSrcweir Size = 8.25 1054*cdf0e10cSrcweir Charset = 0 1055*cdf0e10cSrcweir Weight = 700 1056*cdf0e10cSrcweir Underline = 0 'False 1057*cdf0e10cSrcweir Italic = 0 'False 1058*cdf0e10cSrcweir Strikethrough = 0 'False 1059*cdf0e10cSrcweir EndProperty 1060*cdf0e10cSrcweir Height = 195 1061*cdf0e10cSrcweir Left = 2880 1062*cdf0e10cSrcweir TabIndex = 96 1063*cdf0e10cSrcweir Tag = "1400" 1064*cdf0e10cSrcweir Top = 240 1065*cdf0e10cSrcweir Width = 4905 1066*cdf0e10cSrcweir WordWrap = -1 'True 1067*cdf0e10cSrcweir End 1068*cdf0e10cSrcweir Begin VB.Label lblNumPPT 1069*cdf0e10cSrcweir Caption = "<TOPIC> Presentations" 1070*cdf0e10cSrcweir Height = 255 1071*cdf0e10cSrcweir Left = 4620 1072*cdf0e10cSrcweir TabIndex = 88 1073*cdf0e10cSrcweir Tag = "1409" 1074*cdf0e10cSrcweir Top = 2280 1075*cdf0e10cSrcweir Width = 3375 1076*cdf0e10cSrcweir End 1077*cdf0e10cSrcweir Begin VB.Label lblNumPOT 1078*cdf0e10cSrcweir Caption = "<TOPIC> Templates" 1079*cdf0e10cSrcweir Height = 255 1080*cdf0e10cSrcweir Left = 4620 1081*cdf0e10cSrcweir TabIndex = 87 1082*cdf0e10cSrcweir Tag = "1403" 1083*cdf0e10cSrcweir Top = 2550 1084*cdf0e10cSrcweir Width = 3375 1085*cdf0e10cSrcweir End 1086*cdf0e10cSrcweir Begin VB.Label lblNumXLS 1087*cdf0e10cSrcweir Caption = "<TOPIC> Spreadsheets" 1088*cdf0e10cSrcweir Height = 255 1089*cdf0e10cSrcweir Left = 4620 1090*cdf0e10cSrcweir TabIndex = 86 1091*cdf0e10cSrcweir Tag = "1408" 1092*cdf0e10cSrcweir Top = 1680 1093*cdf0e10cSrcweir Width = 3375 1094*cdf0e10cSrcweir End 1095*cdf0e10cSrcweir Begin VB.Label lblNumXLT 1096*cdf0e10cSrcweir Caption = "<TOPIC> Templates" 1097*cdf0e10cSrcweir Height = 255 1098*cdf0e10cSrcweir Left = 4620 1099*cdf0e10cSrcweir TabIndex = 85 1100*cdf0e10cSrcweir Tag = "1403" 1101*cdf0e10cSrcweir Top = 1950 1102*cdf0e10cSrcweir Width = 3375 1103*cdf0e10cSrcweir End 1104*cdf0e10cSrcweir Begin VB.Label Label16 1105*cdf0e10cSrcweir AutoSize = -1 'True 1106*cdf0e10cSrcweir Caption = "PowerPoint" 1107*cdf0e10cSrcweir Height = 195 1108*cdf0e10cSrcweir Left = 3360 1109*cdf0e10cSrcweir TabIndex = 82 1110*cdf0e10cSrcweir Tag = "1213" 1111*cdf0e10cSrcweir Top = 2280 1112*cdf0e10cSrcweir Width = 1095 1113*cdf0e10cSrcweir WordWrap = -1 'True 1114*cdf0e10cSrcweir End 1115*cdf0e10cSrcweir Begin VB.Label Label13 1116*cdf0e10cSrcweir Caption = "Word" 1117*cdf0e10cSrcweir Height = 705 1118*cdf0e10cSrcweir Index = 10 1119*cdf0e10cSrcweir Left = 0 1120*cdf0e10cSrcweir TabIndex = 81 1121*cdf0e10cSrcweir Tag = "1207" 1122*cdf0e10cSrcweir Top = 0 1123*cdf0e10cSrcweir Width = 1245 1124*cdf0e10cSrcweir End 1125*cdf0e10cSrcweir Begin VB.Label Label13 1126*cdf0e10cSrcweir Caption = "Excel" 1127*cdf0e10cSrcweir Height = 705 1128*cdf0e10cSrcweir Index = 9 1129*cdf0e10cSrcweir Left = 0 1130*cdf0e10cSrcweir TabIndex = 80 1131*cdf0e10cSrcweir Tag = "1210" 1132*cdf0e10cSrcweir Top = 810 1133*cdf0e10cSrcweir Width = 1245 1134*cdf0e10cSrcweir End 1135*cdf0e10cSrcweir Begin VB.Label Label13 1136*cdf0e10cSrcweir Caption = "PowerPoint" 1137*cdf0e10cSrcweir Height = 585 1138*cdf0e10cSrcweir Index = 8 1139*cdf0e10cSrcweir Left = 0 1140*cdf0e10cSrcweir TabIndex = 79 1141*cdf0e10cSrcweir Tag = "1213" 1142*cdf0e10cSrcweir Top = 1620 1143*cdf0e10cSrcweir Width = 1245 1144*cdf0e10cSrcweir End 1145*cdf0e10cSrcweir Begin VB.Label Label13 1146*cdf0e10cSrcweir Caption = "Word" 1147*cdf0e10cSrcweir Height = 585 1148*cdf0e10cSrcweir Index = 7 1149*cdf0e10cSrcweir Left = 0 1150*cdf0e10cSrcweir TabIndex = 78 1151*cdf0e10cSrcweir Tag = "1207" 1152*cdf0e10cSrcweir Top = 0 1153*cdf0e10cSrcweir Width = 1245 1154*cdf0e10cSrcweir End 1155*cdf0e10cSrcweir Begin VB.Label Label13 1156*cdf0e10cSrcweir Caption = "Excel" 1157*cdf0e10cSrcweir Height = 585 1158*cdf0e10cSrcweir Index = 6 1159*cdf0e10cSrcweir Left = 0 1160*cdf0e10cSrcweir TabIndex = 77 1161*cdf0e10cSrcweir Tag = "1210" 1162*cdf0e10cSrcweir Top = 810 1163*cdf0e10cSrcweir Width = 1245 1164*cdf0e10cSrcweir End 1165*cdf0e10cSrcweir Begin VB.Label Label13 1166*cdf0e10cSrcweir Caption = "PowerPoint" 1167*cdf0e10cSrcweir Height = 465 1168*cdf0e10cSrcweir Index = 4 1169*cdf0e10cSrcweir Left = 0 1170*cdf0e10cSrcweir TabIndex = 76 1171*cdf0e10cSrcweir Tag = "1213" 1172*cdf0e10cSrcweir Top = 1620 1173*cdf0e10cSrcweir Width = 1245 1174*cdf0e10cSrcweir End 1175*cdf0e10cSrcweir Begin VB.Label lblNumTemplates 1176*cdf0e10cSrcweir Caption = "<TOPIC> Templates" 1177*cdf0e10cSrcweir Height = 255 1178*cdf0e10cSrcweir Left = 4620 1179*cdf0e10cSrcweir TabIndex = 52 1180*cdf0e10cSrcweir Tag = "1403" 1181*cdf0e10cSrcweir Top = 1350 1182*cdf0e10cSrcweir Width = 3375 1183*cdf0e10cSrcweir End 1184*cdf0e10cSrcweir Begin VB.Label lblNumDocs 1185*cdf0e10cSrcweir Caption = "<TOPIC> Documents" 1186*cdf0e10cSrcweir Height = 255 1187*cdf0e10cSrcweir Left = 4620 1188*cdf0e10cSrcweir TabIndex = 51 1189*cdf0e10cSrcweir Tag = "1402" 1190*cdf0e10cSrcweir Top = 1080 1191*cdf0e10cSrcweir Width = 3375 1192*cdf0e10cSrcweir End 1193*cdf0e10cSrcweir Begin VB.Line Line6 1194*cdf0e10cSrcweir BorderColor = &H00808080& 1195*cdf0e10cSrcweir X1 = 2640 1196*cdf0e10cSrcweir X2 = 8040 1197*cdf0e10cSrcweir Y1 = 3270 1198*cdf0e10cSrcweir Y2 = 3270 1199*cdf0e10cSrcweir End 1200*cdf0e10cSrcweir Begin VB.Label Label15 1201*cdf0e10cSrcweir AutoSize = -1 'True 1202*cdf0e10cSrcweir Caption = "Excel" 1203*cdf0e10cSrcweir Height = 195 1204*cdf0e10cSrcweir Left = 3360 1205*cdf0e10cSrcweir TabIndex = 50 1206*cdf0e10cSrcweir Tag = "1210" 1207*cdf0e10cSrcweir Top = 1680 1208*cdf0e10cSrcweir Width = 1095 1209*cdf0e10cSrcweir WordWrap = -1 'True 1210*cdf0e10cSrcweir End 1211*cdf0e10cSrcweir Begin VB.Label Label14 1212*cdf0e10cSrcweir AutoSize = -1 'True 1213*cdf0e10cSrcweir Caption = "Word" 1214*cdf0e10cSrcweir Height = 195 1215*cdf0e10cSrcweir Left = 3360 1216*cdf0e10cSrcweir TabIndex = 49 1217*cdf0e10cSrcweir Tag = "1207" 1218*cdf0e10cSrcweir Top = 1080 1219*cdf0e10cSrcweir Width = 1110 1220*cdf0e10cSrcweir WordWrap = -1 'True 1221*cdf0e10cSrcweir End 1222*cdf0e10cSrcweir Begin VB.Label lblTotalNumDocs 1223*cdf0e10cSrcweir AutoSize = -1 'True 1224*cdf0e10cSrcweir Caption = "A total of <TOPIC> documents will be analyzed:" 1225*cdf0e10cSrcweir Height = 195 1226*cdf0e10cSrcweir Left = 3180 1227*cdf0e10cSrcweir TabIndex = 48 1228*cdf0e10cSrcweir Tag = "1401" 1229*cdf0e10cSrcweir Top = 660 1230*cdf0e10cSrcweir Width = 4800 1231*cdf0e10cSrcweir WordWrap = -1 'True 1232*cdf0e10cSrcweir End 1233*cdf0e10cSrcweir Begin VB.Line Line2 1234*cdf0e10cSrcweir BorderColor = &H00808080& 1235*cdf0e10cSrcweir Index = 3 1236*cdf0e10cSrcweir X1 = 2550 1237*cdf0e10cSrcweir X2 = 2550 1238*cdf0e10cSrcweir Y1 = 0 1239*cdf0e10cSrcweir Y2 = 4920 1240*cdf0e10cSrcweir End 1241*cdf0e10cSrcweir End 1242*cdf0e10cSrcweir Begin VB.PictureBox picNav 1243*cdf0e10cSrcweir Align = 2 'Align Bottom 1244*cdf0e10cSrcweir Appearance = 0 'Flat 1245*cdf0e10cSrcweir BorderStyle = 0 'None 1246*cdf0e10cSrcweir BeginProperty Font 1247*cdf0e10cSrcweir Name = "MS Sans Serif" 1248*cdf0e10cSrcweir Size = 8.25 1249*cdf0e10cSrcweir Charset = 0 1250*cdf0e10cSrcweir Weight = 400 1251*cdf0e10cSrcweir Underline = 0 'False 1252*cdf0e10cSrcweir Italic = 0 'False 1253*cdf0e10cSrcweir Strikethrough = 0 'False 1254*cdf0e10cSrcweir EndProperty 1255*cdf0e10cSrcweir ForeColor = &H80000008& 1256*cdf0e10cSrcweir Height = 570 1257*cdf0e10cSrcweir Left = 0 1258*cdf0e10cSrcweir ScaleHeight = 570 1259*cdf0e10cSrcweir ScaleWidth = 8175 1260*cdf0e10cSrcweir TabIndex = 4 1261*cdf0e10cSrcweir TabStop = 0 'False 1262*cdf0e10cSrcweir Top = 4950 1263*cdf0e10cSrcweir Width = 8175 1264*cdf0e10cSrcweir Begin VB.CommandButton cmdNav 1265*cdf0e10cSrcweir Caption = "Finish" 1266*cdf0e10cSrcweir Height = 312 1267*cdf0e10cSrcweir Index = 4 1268*cdf0e10cSrcweir Left = 5325 1269*cdf0e10cSrcweir MaskColor = &H00000000& 1270*cdf0e10cSrcweir TabIndex = 14 1271*cdf0e10cSrcweir Tag = "1023" 1272*cdf0e10cSrcweir Top = 120 1273*cdf0e10cSrcweir Width = 1320 1274*cdf0e10cSrcweir End 1275*cdf0e10cSrcweir Begin VB.CommandButton cmdNav 1276*cdf0e10cSrcweir Caption = "Next >>" 1277*cdf0e10cSrcweir Height = 312 1278*cdf0e10cSrcweir Index = 3 1279*cdf0e10cSrcweir Left = 3870 1280*cdf0e10cSrcweir MaskColor = &H00000000& 1281*cdf0e10cSrcweir TabIndex = 13 1282*cdf0e10cSrcweir Tag = "1022" 1283*cdf0e10cSrcweir Top = 120 1284*cdf0e10cSrcweir Width = 1320 1285*cdf0e10cSrcweir End 1286*cdf0e10cSrcweir Begin VB.CommandButton cmdNav 1287*cdf0e10cSrcweir Caption = "<< Back" 1288*cdf0e10cSrcweir Height = 312 1289*cdf0e10cSrcweir Index = 2 1290*cdf0e10cSrcweir Left = 2535 1291*cdf0e10cSrcweir MaskColor = &H00000000& 1292*cdf0e10cSrcweir TabIndex = 12 1293*cdf0e10cSrcweir Tag = "1021" 1294*cdf0e10cSrcweir Top = 120 1295*cdf0e10cSrcweir Width = 1320 1296*cdf0e10cSrcweir End 1297*cdf0e10cSrcweir Begin VB.CommandButton cmdNav 1298*cdf0e10cSrcweir Cancel = -1 'True 1299*cdf0e10cSrcweir Caption = "Cancel" 1300*cdf0e10cSrcweir Height = 312 1301*cdf0e10cSrcweir Index = 1 1302*cdf0e10cSrcweir Left = 6750 1303*cdf0e10cSrcweir MaskColor = &H00000000& 1304*cdf0e10cSrcweir TabIndex = 15 1305*cdf0e10cSrcweir Tag = "1024" 1306*cdf0e10cSrcweir Top = 120 1307*cdf0e10cSrcweir Width = 1320 1308*cdf0e10cSrcweir End 1309*cdf0e10cSrcweir End 1310*cdf0e10cSrcweir Begin VB.Label Label18 1311*cdf0e10cSrcweir Caption = "<TOPIC> Documents" 1312*cdf0e10cSrcweir Height = 255 1313*cdf0e10cSrcweir Left = 0 1314*cdf0e10cSrcweir TabIndex = 84 1315*cdf0e10cSrcweir Top = 0 1316*cdf0e10cSrcweir Width = 2085 1317*cdf0e10cSrcweir WordWrap = -1 'True 1318*cdf0e10cSrcweir End 1319*cdf0e10cSrcweir Begin VB.Label Label17 1320*cdf0e10cSrcweir Caption = "<TOPIC> Templates" 1321*cdf0e10cSrcweir Height = 255 1322*cdf0e10cSrcweir Left = 0 1323*cdf0e10cSrcweir TabIndex = 83 1324*cdf0e10cSrcweir Top = 390 1325*cdf0e10cSrcweir Width = 3615 1326*cdf0e10cSrcweir WordWrap = -1 'True 1327*cdf0e10cSrcweir End 1328*cdf0e10cSrcweir Begin VB.Line Line4 1329*cdf0e10cSrcweir BorderColor = &H00808080& 1330*cdf0e10cSrcweir X1 = 0 1331*cdf0e10cSrcweir X2 = 8160 1332*cdf0e10cSrcweir Y1 = 4920 1333*cdf0e10cSrcweir Y2 = 4920 1334*cdf0e10cSrcweir End 1335*cdf0e10cSrcweirEnd 1336*cdf0e10cSrcweirAttribute VB_Name = "frmWizard" 1337*cdf0e10cSrcweirAttribute VB_GlobalNameSpace = False 1338*cdf0e10cSrcweirAttribute VB_Creatable = False 1339*cdf0e10cSrcweirAttribute VB_PredeclaredId = True 1340*cdf0e10cSrcweirAttribute VB_Exposed = False 1341*cdf0e10cSrcweir' ******************************************************************************* 1342*cdf0e10cSrcweir' * 1343*cdf0e10cSrcweir' * Copyright 2000, 2010 Oracle and/or its affiliates. All rights reserved. Use of this 1344*cdf0e10cSrcweir' * product is subject to license terms. 1345*cdf0e10cSrcweir' * 1346*cdf0e10cSrcweir' ******************************************************************************* 1347*cdf0e10cSrcweir 1348*cdf0e10cSrcweirOption Explicit 1349*cdf0e10cSrcweir 1350*cdf0e10cSrcweirConst TOPIC_STR = "<TOPIC>" 1351*cdf0e10cSrcweirConst TOPIC2_STR = "<TOPIC2>" 1352*cdf0e10cSrcweirConst CR_STR = "<CR>" 1353*cdf0e10cSrcweirConst CDEBUG_LEVEL_DEFAULT = 1 'Will output all Debug output to analysis.log file 1354*cdf0e10cSrcweirConst CSUPPORTED_VERSION = 9# 1355*cdf0e10cSrcweir 1356*cdf0e10cSrcweirConst NUM_STEPS = 4 1357*cdf0e10cSrcweir 1358*cdf0e10cSrcweirConst CAPPNAME_WORD = "Word" 1359*cdf0e10cSrcweirConst CAPPNAME_EXCEL = "Excel" 1360*cdf0e10cSrcweirConst CAPPNAME_POWERPOINT = "PowerPoint" 1361*cdf0e10cSrcweirConst CANALYZING = "Analyzing" 1362*cdf0e10cSrcweir 1363*cdf0e10cSrcweirConst BTN_CANCEL = 1 1364*cdf0e10cSrcweirConst BTN_BACK = 2 1365*cdf0e10cSrcweirConst BTN_NEXT = 3 1366*cdf0e10cSrcweirConst BTN_FINISH = 4 1367*cdf0e10cSrcweir 1368*cdf0e10cSrcweirConst STEP_INTRO = 0 1369*cdf0e10cSrcweirConst STEP_1 = 1 1370*cdf0e10cSrcweirConst STEP_2 = 2 1371*cdf0e10cSrcweirConst STEP_FINISH = 3 1372*cdf0e10cSrcweir 1373*cdf0e10cSrcweirConst DIR_NONE = 0 1374*cdf0e10cSrcweirConst DIR_BACK = 1 1375*cdf0e10cSrcweirConst DIR_NEXT = 2 1376*cdf0e10cSrcweir 1377*cdf0e10cSrcweirConst CPRODUCTNAME_STR = "<PRODUCTNAME>" 1378*cdf0e10cSrcweir 1379*cdf0e10cSrcweirConst CSTR_ANALYSIS_LOG_DONE = "Done" 1380*cdf0e10cSrcweir 1381*cdf0e10cSrcweirConst CINPUT_DIR = "indir" 1382*cdf0e10cSrcweirConst COUTPUT_DIR = "outdir" 1383*cdf0e10cSrcweirConst CRESULTS_FILE = "resultsfile" 1384*cdf0e10cSrcweirConst CLOG_FILE = "logfile" 1385*cdf0e10cSrcweirConst CRESULTS_TEMPLATE = "resultstemplate" 1386*cdf0e10cSrcweirConst CRESULTS_EXIST = "resultsexist" 1387*cdf0e10cSrcweirConst CPROMPT_FILE = "promptfile" 1388*cdf0e10cSrcweirConst COVERWRITE_FILE = "overwritefile" 1389*cdf0e10cSrcweirConst CAPPEND_FILE = "appendfile" 1390*cdf0e10cSrcweirConst CNEW_RESULTS_FILE = "newresultsfile" 1391*cdf0e10cSrcweirConst CINCLUDE_SUBDIRS = "includesubdirs" 1392*cdf0e10cSrcweirConst CDEBUG_LEVEL = "debuglevel" 1393*cdf0e10cSrcweirConst CTYPE_WORDDOC = "typeworddoc" 1394*cdf0e10cSrcweirConst CTYPE_WORDDOT = "typeworddot" 1395*cdf0e10cSrcweirConst CTYPE_EXCELDOC = "typeexceldoc" 1396*cdf0e10cSrcweirConst CTYPE_EXCELDOT = "typeexceldot" 1397*cdf0e10cSrcweirConst CTYPE_PPDOC = "typepowerpointdoc" 1398*cdf0e10cSrcweirConst CTYPE_PPDOT = "typepowerpointdot" 1399*cdf0e10cSrcweirConst COUTPUT_TYPE = "outputtype" 1400*cdf0e10cSrcweirConst COUTPUT_TYPE_XLS = "xls" 1401*cdf0e10cSrcweirConst COUTPUT_TYPE_XML = "xml" 1402*cdf0e10cSrcweirConst COUTPUT_TYPE_BOTH = "both" 1403*cdf0e10cSrcweirConst CVERSION = "version" 1404*cdf0e10cSrcweirConst CDOPREPARE = "prepare" 1405*cdf0e10cSrcweirConst CTITLE = "title" 1406*cdf0e10cSrcweirConst CIGNORE_OLD_DOCS = "ignoreolddocuments" 1407*cdf0e10cSrcweirConst CISSUE_LIMIT = "issuesmonthlimit" 1408*cdf0e10cSrcweirConst CISSUE_LIMIT_DAW = 6 1409*cdf0e10cSrcweirPrivate mIssueLimit As Integer 1410*cdf0e10cSrcweirConst CDEFAULT_PASSWORD = "defaultpassword" 1411*cdf0e10cSrcweirConst CSTR_TEST_PASSWORD = "test" 1412*cdf0e10cSrcweirPrivate mDefaultPassword As String 1413*cdf0e10cSrcweir 1414*cdf0e10cSrcweirConst CLAST_CHECKPOINT As String = "LastCheckpoint" 1415*cdf0e10cSrcweirConst CNEXT_FILE As String = "NextFile" 1416*cdf0e10cSrcweirConst C_ABORT_ANALYSIS As String = "AbortAnalysis" 1417*cdf0e10cSrcweir 1418*cdf0e10cSrcweirConst CNUMBER_TOTAL_DOCS = "total_numberdocs" 1419*cdf0e10cSrcweirConst CNUMBER_DOCS_DOC = "numberdocs_doc" 1420*cdf0e10cSrcweirConst CNUMBER_TEMPLATES_DOT = "numbertemplates_dot" 1421*cdf0e10cSrcweirConst CNUMBER_DOCS_XLS = "numberdocs_xls" 1422*cdf0e10cSrcweirConst CNUMBER_TEMPLATES_XLT = "numbertemplates_xlt" 1423*cdf0e10cSrcweirConst CNUMBER_DOCS_PPT = "numberdocs_ppt" 1424*cdf0e10cSrcweirConst CNUMBER_TEMPLATES_POT = "numbertemplates_pot" 1425*cdf0e10cSrcweirConst CSTART_TIME = "start" 1426*cdf0e10cSrcweirConst CEND_TIME = "end" 1427*cdf0e10cSrcweirConst CELAPSED_TIME = "time_for_analysis" 1428*cdf0e10cSrcweirConst CWINVERSION = "win_version" 1429*cdf0e10cSrcweirConst CUSER_LOCALE_INFO = "user_locale" 1430*cdf0e10cSrcweirConst CSYS_LOCALE_INFO = "system_locale" 1431*cdf0e10cSrcweirConst CWORD_VERSION = "word_ver" 1432*cdf0e10cSrcweirConst CEXCEL_VERSION = "excel_ver" 1433*cdf0e10cSrcweirConst CPOWERPOINT_VERSION = "powerpoint_ver" 1434*cdf0e10cSrcweirConst CNOT_INSTALLED = "not installed" 1435*cdf0e10cSrcweir 1436*cdf0e10cSrcweirConst CRESULTS_FILE_EXTENSION = ".xls" 1437*cdf0e10cSrcweirConst CCONFIG_BACKUP_EXT = "_bak" 1438*cdf0e10cSrcweirConst CDEFAULT_README_NAME = "UserGuide" 1439*cdf0e10cSrcweir 1440*cdf0e10cSrcweirConst C_DOCS_LESS_3_MONTH = "DocumentsYoungerThan3Month" 1441*cdf0e10cSrcweirConst C_DOCS_LESS_6_MONTH = "DocumentsYoungerThan6Month" 1442*cdf0e10cSrcweirConst C_DOCS_LESS_12_MONTH = "DocumentsYoungerThan12Month" 1443*cdf0e10cSrcweirConst C_DOCS_MORE_12_MONTH = "DocumentsOlderThan12Month" 1444*cdf0e10cSrcweir 1445*cdf0e10cSrcweir'module level vars 1446*cdf0e10cSrcweirDim mnCurStep As Integer 1447*cdf0e10cSrcweirDim mbTrue As Boolean 1448*cdf0e10cSrcweirDim mbFalse As Boolean 1449*cdf0e10cSrcweirDim mLblSteps As String 1450*cdf0e10cSrcweirDim mChbSubdirs As String 1451*cdf0e10cSrcweir 1452*cdf0e10cSrcweirDim mWordDocCount As Long 1453*cdf0e10cSrcweirDim mExcelDocCount As Long 1454*cdf0e10cSrcweirDim mPPDocCount As Long 1455*cdf0e10cSrcweir 1456*cdf0e10cSrcweirDim mWordTemplateCount As Long 1457*cdf0e10cSrcweirDim mExcelTemplateCount As Long 1458*cdf0e10cSrcweirDim mPPTemplateCount As Long 1459*cdf0e10cSrcweirDim mTotalDocCount As Long 1460*cdf0e10cSrcweirDim mIgnoredDocCount As Long 1461*cdf0e10cSrcweir 1462*cdf0e10cSrcweirPublic VBInst As VBIDE.VBE 1463*cdf0e10cSrcweirDim mbFinishOK As Boolean 1464*cdf0e10cSrcweirDim mbAllowExit As Boolean 1465*cdf0e10cSrcweirPrivate mStrTrue As String 1466*cdf0e10cSrcweirPrivate mLogFilePath As String 1467*cdf0e10cSrcweirPrivate mDebugLevel As String 1468*cdf0e10cSrcweirPrivate mIniFilePath As String 1469*cdf0e10cSrcweirPrivate mbDocCountCurrent As Boolean 1470*cdf0e10cSrcweirPrivate mbDoPrepare As Boolean 1471*cdf0e10cSrcweir 1472*cdf0e10cSrcweirDim mDocFiles As CollectedFiles 1473*cdf0e10cSrcweir 1474*cdf0e10cSrcweirPrivate Declare Sub InitCommonControls Lib "comctl32" () 1475*cdf0e10cSrcweirPrivate Declare Function GetTickCount Lib "kernel32" () As Long 1476*cdf0e10cSrcweirPrivate Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) 1477*cdf0e10cSrcweir 1478*cdf0e10cSrcweirConst FORMAT_MESSAGE_FROM_SYSTEM = &H1000 1479*cdf0e10cSrcweir 1480*cdf0e10cSrcweirPrivate Declare Function FormatMessage Lib "kernel32" Alias _ 1481*cdf0e10cSrcweir "FormatMessageA" (ByVal dwFlags As Long, lpSource As Long, _ 1482*cdf0e10cSrcweir ByVal dwMessageId As Long, ByVal dwLanguageId As Long, _ 1483*cdf0e10cSrcweir ByVal lpBuffer As String, ByVal nSize As Long, Arguments As Any) As Long 1484*cdf0e10cSrcweir 1485*cdf0e10cSrcweir 1486*cdf0e10cSrcweirPrivate Const HKEY_CURRENT_USER As Long = &H80000001 1487*cdf0e10cSrcweirPrivate Const HKEY_LOCAL_MACHINE As Long = &H80000002 1488*cdf0e10cSrcweir 1489*cdf0e10cSrcweirConst WORD_APP = "word" 1490*cdf0e10cSrcweirConst EXCEL_APP = "excel" 1491*cdf0e10cSrcweirConst PP_APP = "pp" 1492*cdf0e10cSrcweirConst REG_KEY_APP_PATH = "Software\Microsoft\Windows\CurrentVersion\App Paths\" 1493*cdf0e10cSrcweir 1494*cdf0e10cSrcweir 1495*cdf0e10cSrcweirFunction GetAppPath(myApp As String) As String 1496*cdf0e10cSrcweir Dim myPath As String 1497*cdf0e10cSrcweir 1498*cdf0e10cSrcweir If (myApp = WORD_APP) Then 1499*cdf0e10cSrcweir myPath = GetRegistryInfo(HKEY_LOCAL_MACHINE, REG_KEY_APP_PATH & "winword.exe", "") 1500*cdf0e10cSrcweir ElseIf (myApp = EXCEL_APP) Then 1501*cdf0e10cSrcweir myPath = GetRegistryInfo(HKEY_LOCAL_MACHINE, REG_KEY_APP_PATH & "excel.exe", "") 1502*cdf0e10cSrcweir ElseIf (myApp = PP_APP) Then 1503*cdf0e10cSrcweir myPath = GetRegistryInfo(HKEY_LOCAL_MACHINE, REG_KEY_APP_PATH & "powerpnt.exe", "") 1504*cdf0e10cSrcweir Else 1505*cdf0e10cSrcweir MsgBox "Unknown application: " & myApp, vbCritical 1506*cdf0e10cSrcweir Exit Function 1507*cdf0e10cSrcweir End If 1508*cdf0e10cSrcweir 1509*cdf0e10cSrcweir If (myPath = "") Then 1510*cdf0e10cSrcweir If (myApp = WORD_APP) Then 1511*cdf0e10cSrcweir myPath = GetRegistryInfo(HKEY_CURRENT_USER, REG_KEY_APP_PATH & "winword.exe", "") 1512*cdf0e10cSrcweir ElseIf (myApp = EXCEL_APP) Then 1513*cdf0e10cSrcweir myPath = GetRegistryInfo(HKEY_CURRENT_USER, REG_KEY_APP_PATH & "excel.exe", "") 1514*cdf0e10cSrcweir ElseIf (myApp = PP_APP) Then 1515*cdf0e10cSrcweir myPath = GetRegistryInfo(HKEY_CURRENT_USER, REG_KEY_APP_PATH & "powerpnt.exe", "") 1516*cdf0e10cSrcweir End If 1517*cdf0e10cSrcweir End If 1518*cdf0e10cSrcweir 1519*cdf0e10cSrcweir GetAppPath = myPath 1520*cdf0e10cSrcweirEnd Function 1521*cdf0e10cSrcweir 1522*cdf0e10cSrcweirFunction GetDriverDoc(myApp As String) As String 1523*cdf0e10cSrcweir Dim myPath As String 1524*cdf0e10cSrcweir Dim errStr As String 1525*cdf0e10cSrcweir Dim fso As New FileSystemObject 1526*cdf0e10cSrcweir 1527*cdf0e10cSrcweir If (myApp = WORD_APP) Then 1528*cdf0e10cSrcweir myPath = fso.GetAbsolutePathName(CBASE_RESOURCE_DIR & "\" & CWORD_DRIVER_FILE) 1529*cdf0e10cSrcweir ElseIf (myApp = EXCEL_APP) Then 1530*cdf0e10cSrcweir myPath = fso.GetAbsolutePathName(CBASE_RESOURCE_DIR & "\" & CEXCEL_DRIVER_FILE) 1531*cdf0e10cSrcweir ElseIf (myApp = PP_APP) Then 1532*cdf0e10cSrcweir myPath = fso.GetAbsolutePathName(CBASE_RESOURCE_DIR & "\" & CPP_DRIVER_FILE) 1533*cdf0e10cSrcweir Else 1534*cdf0e10cSrcweir MsgBox "Unknown application: " & myApp, vbCritical 1535*cdf0e10cSrcweir GoTo FinalExit 1536*cdf0e10cSrcweir End If 1537*cdf0e10cSrcweir 1538*cdf0e10cSrcweir If Not fso.FileExists(myPath) Then 1539*cdf0e10cSrcweir errStr = ReplaceTopic2Tokens(GetResString(ERR_MISSING_WORD_DRIVER), _ 1540*cdf0e10cSrcweir TOPIC_STR, myPath, CR_STR, Chr(13)) 1541*cdf0e10cSrcweir WriteDebug errStr 1542*cdf0e10cSrcweir MsgBox errStr, vbCritical 1543*cdf0e10cSrcweir GoTo FinalExit 1544*cdf0e10cSrcweir End If 1545*cdf0e10cSrcweir 1546*cdf0e10cSrcweir GetDriverDoc = myPath 1547*cdf0e10cSrcweir 1548*cdf0e10cSrcweirFinalExit: 1549*cdf0e10cSrcweir Set fso = Nothing 1550*cdf0e10cSrcweirEnd Function 1551*cdf0e10cSrcweir 1552*cdf0e10cSrcweir 1553*cdf0e10cSrcweir 1554*cdf0e10cSrcweir 1555*cdf0e10cSrcweirPrivate Function AutomationMessageText(lCode As Long) As String 1556*cdf0e10cSrcweir Dim sRtrnCode As String 1557*cdf0e10cSrcweir Dim lRet As Long 1558*cdf0e10cSrcweir 1559*cdf0e10cSrcweir sRtrnCode = Space$(256) 1560*cdf0e10cSrcweir lRet = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, 0&, lCode, 0&, _ 1561*cdf0e10cSrcweir sRtrnCode, 256&, 0&) 1562*cdf0e10cSrcweir If lRet > 0 Then 1563*cdf0e10cSrcweir AutomationMessageText = Left(sRtrnCode, lRet) 1564*cdf0e10cSrcweir Else 1565*cdf0e10cSrcweir AutomationMessageText = "Error not found." 1566*cdf0e10cSrcweir End If 1567*cdf0e10cSrcweir 1568*cdf0e10cSrcweirEnd Function 1569*cdf0e10cSrcweir 1570*cdf0e10cSrcweirPrivate Sub btnBrowseDirInput_Click() 1571*cdf0e10cSrcweir Dim folder As String 1572*cdf0e10cSrcweir Dim StartDir As String 1573*cdf0e10cSrcweir 1574*cdf0e10cSrcweir If Len(txtInputDir.Text) > 0 Then 1575*cdf0e10cSrcweir StartDir = txtInputDir.Text 1576*cdf0e10cSrcweir End If 1577*cdf0e10cSrcweir 1578*cdf0e10cSrcweir folder = BrowseForFolder(Me, GetResString(BROWSE_FOR_DOC_DIR_ID), StartDir) 1579*cdf0e10cSrcweir If Len(folder) = 0 Then 1580*cdf0e10cSrcweir Exit Sub 'User Selected Cancel 1581*cdf0e10cSrcweir End If 1582*cdf0e10cSrcweir txtInputDir.Text = folder 1583*cdf0e10cSrcweir txtInputDir.ToolTipText = folder 1584*cdf0e10cSrcweir 1585*cdf0e10cSrcweir If Len(txtOutputDir.Text) = 0 Then 1586*cdf0e10cSrcweir txtOutputDir.Text = folder 1587*cdf0e10cSrcweir txtOutputDir.ToolTipText = folder 1588*cdf0e10cSrcweir End If 1589*cdf0e10cSrcweirEnd Sub 1590*cdf0e10cSrcweir 1591*cdf0e10cSrcweirPrivate Sub btnBrowseDirOut_Click() 1592*cdf0e10cSrcweir Dim folder As String 1593*cdf0e10cSrcweir Dim StartDir As String 1594*cdf0e10cSrcweir 1595*cdf0e10cSrcweir If Len(txtOutputDir.Text) > 0 Then 1596*cdf0e10cSrcweir StartDir = txtOutputDir.Text 1597*cdf0e10cSrcweir End If 1598*cdf0e10cSrcweir 1599*cdf0e10cSrcweir folder = BrowseForFolder(Me, GetResString(BROWSE_FOR_RES_DIR_ID), StartDir) 1600*cdf0e10cSrcweir If Len(folder) = 0 Then 1601*cdf0e10cSrcweir Exit Sub 'User Selected Cancel 1602*cdf0e10cSrcweir End If 1603*cdf0e10cSrcweir txtOutputDir.Text = folder 1604*cdf0e10cSrcweir txtOutputDir.ToolTipText = folder 1605*cdf0e10cSrcweirEnd Sub 1606*cdf0e10cSrcweir 1607*cdf0e10cSrcweirPrivate Sub btnPrepare_Click() 1608*cdf0e10cSrcweir On Error GoTo HandleErrors 1609*cdf0e10cSrcweir Dim currentFunctionName As String 1610*cdf0e10cSrcweir currentFunctionName = "btnPrepare_Click" 1611*cdf0e10cSrcweir 1612*cdf0e10cSrcweir mbDoPrepare = True 1613*cdf0e10cSrcweir mbAllowExit = True 1614*cdf0e10cSrcweir 1615*cdf0e10cSrcweir btnViewResults.Enabled = False 1616*cdf0e10cSrcweir btnRunAnalysis.Enabled = False 1617*cdf0e10cSrcweir btnPrepare.Enabled = False 1618*cdf0e10cSrcweir 1619*cdf0e10cSrcweir cmdNav(BTN_CANCEL).Enabled = False 1620*cdf0e10cSrcweir cmdNav(BTN_BACK).Enabled = False 1621*cdf0e10cSrcweir cmdNav(BTN_NEXT).Enabled = False 1622*cdf0e10cSrcweir cmdNav(BTN_FINISH).Enabled = False 1623*cdf0e10cSrcweir btnPrepare.Caption = GetResString(RUNBTN_RUNNING_ID) 1624*cdf0e10cSrcweir 1625*cdf0e10cSrcweir Dim str As String 1626*cdf0e10cSrcweir 1627*cdf0e10cSrcweir If RunAnalysis(True) Then 1628*cdf0e10cSrcweir cmdNav(BTN_FINISH).Enabled = True 1629*cdf0e10cSrcweir btnRunAnalysis.Enabled = True 1630*cdf0e10cSrcweir btnViewResults.Enabled = True 1631*cdf0e10cSrcweir btnPrepare.Enabled = True 1632*cdf0e10cSrcweir btnViewResults.SetFocus 1633*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(RID_STR_ENG_OTHER_PREPARE_COMPLETED_PREP_ID), _ 1634*cdf0e10cSrcweir TOPIC_STR, getOutputDir, CR_STR, Chr(13)) 1635*cdf0e10cSrcweir MsgBox str, vbInformation 1636*cdf0e10cSrcweir Else 1637*cdf0e10cSrcweir cmdNav(BTN_FINISH).Enabled = False 1638*cdf0e10cSrcweir btnRunAnalysis.Enabled = True 1639*cdf0e10cSrcweir btnViewResults.Enabled = False 1640*cdf0e10cSrcweir btnPrepare.Enabled = False 1641*cdf0e10cSrcweir End If 1642*cdf0e10cSrcweir 1643*cdf0e10cSrcweirFinalExit: 1644*cdf0e10cSrcweir mbDoPrepare = False 1645*cdf0e10cSrcweir cmdNav(BTN_CANCEL).Enabled = True 1646*cdf0e10cSrcweir cmdNav(BTN_BACK).Enabled = True 1647*cdf0e10cSrcweir cmdNav(BTN_NEXT).Enabled = False 1648*cdf0e10cSrcweir btnPrepare.Caption = GetResString(PREPAREBTN_START_ID) 1649*cdf0e10cSrcweir Exit Sub 1650*cdf0e10cSrcweir 1651*cdf0e10cSrcweirHandleErrors: 1652*cdf0e10cSrcweir cmdNav(BTN_FINISH).Enabled = False 1653*cdf0e10cSrcweir btnRunAnalysis.Enabled = True 1654*cdf0e10cSrcweir btnViewResults.Enabled = False 1655*cdf0e10cSrcweir btnPrepare.Enabled = False 1656*cdf0e10cSrcweir 1657*cdf0e10cSrcweir WriteDebug currentFunctionName & " : " & Err.Number & " " & Err.Description & " " & Err.Source 1658*cdf0e10cSrcweir Resume FinalExit 1659*cdf0e10cSrcweirEnd Sub 1660*cdf0e10cSrcweir 1661*cdf0e10cSrcweir 1662*cdf0e10cSrcweirPrivate Sub cmdNav_Click(Index As Integer) 1663*cdf0e10cSrcweir On Error GoTo HandleError 1664*cdf0e10cSrcweir Dim currentFunctionName As String 1665*cdf0e10cSrcweir currentFunctionName = "cmdNav_Click" 1666*cdf0e10cSrcweir Dim nAltStep As Integer 1667*cdf0e10cSrcweir Dim rc As Long 1668*cdf0e10cSrcweir Dim fso As Scripting.FileSystemObject 1669*cdf0e10cSrcweir 1670*cdf0e10cSrcweir Select Case Index 1671*cdf0e10cSrcweir Case BTN_CANCEL 1672*cdf0e10cSrcweir 'Copy backup configuration file over existing 1673*cdf0e10cSrcweir If fso Is Nothing Then 1674*cdf0e10cSrcweir Set fso = New Scripting.FileSystemObject 1675*cdf0e10cSrcweir End If 1676*cdf0e10cSrcweir If fso.FileExists(mIniFilePath & CCONFIG_BACKUP_EXT) Then 1677*cdf0e10cSrcweir DeleteFile mIniFilePath 1678*cdf0e10cSrcweir AttemptToCopyFile mIniFilePath & CCONFIG_BACKUP_EXT, mIniFilePath 1679*cdf0e10cSrcweir End If 1680*cdf0e10cSrcweir Set mDocFiles = Nothing 1681*cdf0e10cSrcweir 1682*cdf0e10cSrcweir Unload Me 1683*cdf0e10cSrcweir 1684*cdf0e10cSrcweir Case BTN_BACK 1685*cdf0e10cSrcweir nAltStep = mnCurStep - 1 1686*cdf0e10cSrcweir SetStep nAltStep, DIR_BACK 1687*cdf0e10cSrcweir 1688*cdf0e10cSrcweir Case BTN_NEXT 1689*cdf0e10cSrcweir nAltStep = mnCurStep + 1 1690*cdf0e10cSrcweir SetStep nAltStep, DIR_NEXT 1691*cdf0e10cSrcweir 1692*cdf0e10cSrcweir Case BTN_FINISH 1693*cdf0e10cSrcweir If (Not mbAllowExit) Then 1694*cdf0e10cSrcweir Dim str As String 1695*cdf0e10cSrcweir Dim response As Integer 1696*cdf0e10cSrcweir 1697*cdf0e10cSrcweir str = ReplaceTopicTokens(GetResString(RID_STR_ENG_ANALYSE_NOT_RUN), CR_STR, Chr(13)) 1698*cdf0e10cSrcweir response = MsgBox(str, vbOKCancel + vbInformation) 1699*cdf0e10cSrcweir If response = vbOK Then ' User chose Ok. 1700*cdf0e10cSrcweir mbAllowExit = True 1701*cdf0e10cSrcweir End If 1702*cdf0e10cSrcweir End If 1703*cdf0e10cSrcweir 1704*cdf0e10cSrcweir If (mbAllowExit) Then 1705*cdf0e10cSrcweir DeleteFile mIniFilePath & CCONFIG_BACKUP_EXT 1706*cdf0e10cSrcweir Set mDocFiles = Nothing 1707*cdf0e10cSrcweir Unload Me 1708*cdf0e10cSrcweir End If 1709*cdf0e10cSrcweir End Select 1710*cdf0e10cSrcweir 1711*cdf0e10cSrcweirFinalExit: 1712*cdf0e10cSrcweir Set fso = Nothing 1713*cdf0e10cSrcweir Exit Sub 1714*cdf0e10cSrcweir 1715*cdf0e10cSrcweirHandleError: 1716*cdf0e10cSrcweir WriteDebug currentFunctionName & " : " & Err.Number & " " & Err.Description & " " & Err.Source 1717*cdf0e10cSrcweir 1718*cdf0e10cSrcweir Resume FinalExit 1719*cdf0e10cSrcweirEnd Sub 1720*cdf0e10cSrcweir 1721*cdf0e10cSrcweirPrivate Sub btnRunAnalysis_Click() 1722*cdf0e10cSrcweir On Error GoTo HandleErrors 1723*cdf0e10cSrcweir Dim bViewResults As Boolean 1724*cdf0e10cSrcweir Dim str As String 1725*cdf0e10cSrcweir Dim response As Integer 1726*cdf0e10cSrcweir 1727*cdf0e10cSrcweir btnViewResults.Enabled = False 1728*cdf0e10cSrcweir btnRunAnalysis.Enabled = False 1729*cdf0e10cSrcweir btnPrepare.Enabled = False 1730*cdf0e10cSrcweir bViewResults = False 1731*cdf0e10cSrcweir mbAllowExit = True 1732*cdf0e10cSrcweir 1733*cdf0e10cSrcweir cmdNav(BTN_CANCEL).Enabled = False 1734*cdf0e10cSrcweir cmdNav(BTN_BACK).Enabled = False 1735*cdf0e10cSrcweir cmdNav(BTN_NEXT).Enabled = False 1736*cdf0e10cSrcweir cmdNav(BTN_FINISH).Enabled = False 1737*cdf0e10cSrcweir btnRunAnalysis.Caption = GetResString(RUNBTN_RUNNING_ID) 1738*cdf0e10cSrcweir 1739*cdf0e10cSrcweir If RunAnalysis(False) Then 1740*cdf0e10cSrcweir cmdNav(BTN_FINISH).Enabled = True 1741*cdf0e10cSrcweir btnRunAnalysis.Enabled = True 1742*cdf0e10cSrcweir btnViewResults.Enabled = True 1743*cdf0e10cSrcweir btnPrepare.Enabled = True 1744*cdf0e10cSrcweir btnViewResults.SetFocus 1745*cdf0e10cSrcweir btnRunAnalysis.Caption = GetResString(RUNBTN_START_ID) 1746*cdf0e10cSrcweir 1747*cdf0e10cSrcweir str = ReplaceTopicTokens(GetResString(RID_STR_ENG_ANALYZE_COMPLETED_ID), CR_STR, Chr(13)) 1748*cdf0e10cSrcweir response = MsgBox(str, vbOKCancel + vbInformation) 1749*cdf0e10cSrcweir If response = vbOK Then ' User chose Ok. 1750*cdf0e10cSrcweir bViewResults = True 1751*cdf0e10cSrcweir End If 1752*cdf0e10cSrcweir Else 1753*cdf0e10cSrcweir btnRunAnalysis.Enabled = True 1754*cdf0e10cSrcweir btnViewResults.Enabled = False 1755*cdf0e10cSrcweir btnPrepare.Enabled = False 1756*cdf0e10cSrcweir End If 1757*cdf0e10cSrcweir 1758*cdf0e10cSrcweirFinalExit: 1759*cdf0e10cSrcweir cmdNav(BTN_CANCEL).Enabled = True 1760*cdf0e10cSrcweir cmdNav(BTN_BACK).Enabled = True 1761*cdf0e10cSrcweir cmdNav(BTN_NEXT).Enabled = False 1762*cdf0e10cSrcweir btnRunAnalysis.Caption = GetResString(RUNBTN_START_ID) 1763*cdf0e10cSrcweir 1764*cdf0e10cSrcweir If bViewResults Then 1765*cdf0e10cSrcweir btnViewResults_Click 1766*cdf0e10cSrcweir End If 1767*cdf0e10cSrcweir 1768*cdf0e10cSrcweir Exit Sub 1769*cdf0e10cSrcweir 1770*cdf0e10cSrcweirHandleErrors: 1771*cdf0e10cSrcweir cmdNav(BTN_FINISH).Enabled = False 1772*cdf0e10cSrcweir btnRunAnalysis.Enabled = True 1773*cdf0e10cSrcweir btnViewResults.Enabled = False 1774*cdf0e10cSrcweir btnPrepare.Enabled = False 1775*cdf0e10cSrcweir WriteDebug "Document Analysis: View Analysis Results" & Err.Number & " " & Err.Description & " " & Err.Source 1776*cdf0e10cSrcweir Resume FinalExit 1777*cdf0e10cSrcweirEnd Sub 1778*cdf0e10cSrcweir 1779*cdf0e10cSrcweirPrivate Sub btnViewResults_Click() 1780*cdf0e10cSrcweir On Error GoTo HandleErrors 1781*cdf0e10cSrcweir Dim resultsFile As String 1782*cdf0e10cSrcweir Dim fso As New FileSystemObject 1783*cdf0e10cSrcweir Dim str As String 1784*cdf0e10cSrcweir 1785*cdf0e10cSrcweir mbAllowExit = True 1786*cdf0e10cSrcweir 1787*cdf0e10cSrcweir resultsFile = getOutputDir & "\" & txtResultsName.Text 1788*cdf0e10cSrcweir 1789*cdf0e10cSrcweir If GetIniSetting(COUTPUT_TYPE) = COUTPUT_TYPE_XML Or _ 1790*cdf0e10cSrcweir GetIniSetting(COUTPUT_TYPE) = COUTPUT_TYPE_BOTH Then 1791*cdf0e10cSrcweir 1792*cdf0e10cSrcweir Dim base As String 1793*cdf0e10cSrcweir Dim path As String 1794*cdf0e10cSrcweir base = fso.GetParentFolderName(resultsFile) & "\" & fso.GetBaseName(txtResultsName.Text) 1795*cdf0e10cSrcweir If CheckWordDocsToAnalyze Then 1796*cdf0e10cSrcweir path = base & "_" & CAPPNAME_WORD & "." & COUTPUT_TYPE_XML 1797*cdf0e10cSrcweir End If 1798*cdf0e10cSrcweir If CheckExcelDocsToAnalyze Then 1799*cdf0e10cSrcweir If path <> "" Then path = path & vbLf 1800*cdf0e10cSrcweir path = path & base & "_" & CAPPNAME_EXCEL & "." & COUTPUT_TYPE_XML 1801*cdf0e10cSrcweir End If 1802*cdf0e10cSrcweir If CheckPPDocsToAnalyze Then 1803*cdf0e10cSrcweir If path <> "" Then path = path & vbLf 1804*cdf0e10cSrcweir path = path & base & "_" & CAPPNAME_POWERPOINT & "." & COUTPUT_TYPE_XML 1805*cdf0e10cSrcweir End If 1806*cdf0e10cSrcweir 1807*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(XML_RESULTS_ID), _ 1808*cdf0e10cSrcweir TOPIC_STR, path, CR_STR, Chr(13)) 1809*cdf0e10cSrcweir WriteDebug str 1810*cdf0e10cSrcweir MsgBox str, vbInformation 1811*cdf0e10cSrcweir If GetIniSetting(COUTPUT_TYPE) = COUTPUT_TYPE_XML Then 1812*cdf0e10cSrcweir Resume FinalExit 1813*cdf0e10cSrcweir End If 1814*cdf0e10cSrcweir End If 1815*cdf0e10cSrcweir 1816*cdf0e10cSrcweir If Not fso.FileExists(resultsFile) Then 1817*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_MISSING_RESULTS_DOC), _ 1818*cdf0e10cSrcweir TOPIC_STR, resultsFile, CR_STR, Chr(13)) 1819*cdf0e10cSrcweir WriteDebug str 1820*cdf0e10cSrcweir MsgBox str, vbCritical 1821*cdf0e10cSrcweir Resume FinalExit 1822*cdf0e10cSrcweir End If 1823*cdf0e10cSrcweir 1824*cdf0e10cSrcweir Dim xl As Excel.application 1825*cdf0e10cSrcweir Set xl = New Excel.application 1826*cdf0e10cSrcweir xl.Visible = True 1827*cdf0e10cSrcweir xl.Workbooks.Open resultsFile 1828*cdf0e10cSrcweir 1829*cdf0e10cSrcweirFinalExit: 1830*cdf0e10cSrcweir Set xl = Nothing 1831*cdf0e10cSrcweir Set fso = Nothing 1832*cdf0e10cSrcweir 1833*cdf0e10cSrcweir Exit Sub 1834*cdf0e10cSrcweirHandleErrors: 1835*cdf0e10cSrcweir WriteDebug "Document Analysis: View Analysis Results" & Err.Number & " " & Err.Description & " " & Err.Source 1836*cdf0e10cSrcweirEnd Sub 1837*cdf0e10cSrcweir 1838*cdf0e10cSrcweirPrivate Sub Form_Activate() 1839*cdf0e10cSrcweir Dim currentFunctionName As String 1840*cdf0e10cSrcweir Dim missingFile As String 1841*cdf0e10cSrcweir currentFunctionName = "Form_Activate" 1842*cdf0e10cSrcweir On Error GoTo HandleErrors 1843*cdf0e10cSrcweir 1844*cdf0e10cSrcweir If Not CheckNeededFiles(missingFile) Then 1845*cdf0e10cSrcweir Dim str As String 1846*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_MISSING_WORD_DRIVER), _ 1847*cdf0e10cSrcweir TOPIC_STR, missingFile, CR_STR, Chr(13)) 1848*cdf0e10cSrcweir WriteDebug str 1849*cdf0e10cSrcweir MsgBox str, vbCritical 1850*cdf0e10cSrcweir 1851*cdf0e10cSrcweir End 'Exit application - some needed files are missing 1852*cdf0e10cSrcweir End If 1853*cdf0e10cSrcweir 1854*cdf0e10cSrcweirFinalExit: 1855*cdf0e10cSrcweir Exit Sub 1856*cdf0e10cSrcweir 1857*cdf0e10cSrcweirHandleErrors: 1858*cdf0e10cSrcweir WriteDebug currentFunctionName & " : " & Err.Number & " " & Err.Description & " " & Err.Source 1859*cdf0e10cSrcweir GoTo FinalExit 1860*cdf0e10cSrcweirEnd Sub 1861*cdf0e10cSrcweir 1862*cdf0e10cSrcweirPrivate Sub Form_Initialize() 1863*cdf0e10cSrcweir Dim currentFunctionName As String 1864*cdf0e10cSrcweir currentFunctionName = "Form_Initialize" 1865*cdf0e10cSrcweir On Error GoTo ErrorHandler 1866*cdf0e10cSrcweir Call InitCommonControls 'Use Windows XP Visual Style 1867*cdf0e10cSrcweir 1868*cdf0e10cSrcweirFinalExit: 1869*cdf0e10cSrcweir Exit Sub 1870*cdf0e10cSrcweir 1871*cdf0e10cSrcweirErrorHandler: 1872*cdf0e10cSrcweir WriteDebug currentFunctionName & " : " & Err.Number & " " & Err.Description & " " & Err.Source 1873*cdf0e10cSrcweir GoTo FinalExit 1874*cdf0e10cSrcweirEnd Sub 1875*cdf0e10cSrcweir 1876*cdf0e10cSrcweirPrivate Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) 1877*cdf0e10cSrcweir If KeyCode = vbKeyF1 Then 1878*cdf0e10cSrcweir 'cmdNav_Click BTN_HELP 1879*cdf0e10cSrcweir End If 1880*cdf0e10cSrcweirEnd Sub 1881*cdf0e10cSrcweir 1882*cdf0e10cSrcweirPrivate Sub Form_Load() 1883*cdf0e10cSrcweir Const COS_CHECK = "oscheck" 1884*cdf0e10cSrcweir 1885*cdf0e10cSrcweir On Error GoTo HandleErrors 1886*cdf0e10cSrcweir Dim currentFunctionName As String 1887*cdf0e10cSrcweir currentFunctionName = "Form_Load" 1888*cdf0e10cSrcweir 1889*cdf0e10cSrcweir Dim fso As New FileSystemObject 1890*cdf0e10cSrcweir Dim i As Integer 1891*cdf0e10cSrcweir 'init all vars 1892*cdf0e10cSrcweir mbFinishOK = False 1893*cdf0e10cSrcweir mbTrue = True 1894*cdf0e10cSrcweir mbFalse = False 1895*cdf0e10cSrcweir 1896*cdf0e10cSrcweir mLogFilePath = GetLogFilePath 1897*cdf0e10cSrcweir mIniFilePath = GetIniFilePath 1898*cdf0e10cSrcweir mbDocCountCurrent = False 1899*cdf0e10cSrcweir mbDoPrepare = False 1900*cdf0e10cSrcweir mbAllowExit = False 1901*cdf0e10cSrcweir 1902*cdf0e10cSrcweir 'Check OS before running 1903*cdf0e10cSrcweir Dim bOSCheck As Boolean 1904*cdf0e10cSrcweir bOSCheck = IIf(GetIniSetting(COS_CHECK) = "False", False, True) 1905*cdf0e10cSrcweir 1906*cdf0e10cSrcweir If bOSCheck Then 1907*cdf0e10cSrcweir If Not IsWin98Plus Then 1908*cdf0e10cSrcweir Dim str As String 1909*cdf0e10cSrcweir Dim winVer As RGB_WINVER 1910*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_SUPPORTED_OSVERSION), _ 1911*cdf0e10cSrcweir TOPIC_STR, GetWinVersion(winVer), CR_STR, Chr(13)) 1912*cdf0e10cSrcweir WriteDebug str 1913*cdf0e10cSrcweir MsgBox str, vbCritical 1914*cdf0e10cSrcweir 1915*cdf0e10cSrcweir End 'Exit application - unsupported OS 1916*cdf0e10cSrcweir End If 1917*cdf0e10cSrcweir Else 1918*cdf0e10cSrcweir Err.Clear 1919*cdf0e10cSrcweir WriteDebug "IsWin2000Plus OS Check bypassed by analysis.ini oscheck=False setting" 1920*cdf0e10cSrcweir End If 1921*cdf0e10cSrcweir 1922*cdf0e10cSrcweir 1923*cdf0e10cSrcweir For i = 0 To NUM_STEPS - 1 1924*cdf0e10cSrcweir fraStep(i).Left = -10000 1925*cdf0e10cSrcweir Next 1926*cdf0e10cSrcweir 1927*cdf0e10cSrcweir 'Load All string info for Form 1928*cdf0e10cSrcweir LoadResStrings Me 1929*cdf0e10cSrcweir 1930*cdf0e10cSrcweir frmWizard.Caption = ReplaceTopicTokens(GetResString(TITLE_ID), CPRODUCTNAME_STR, _ 1931*cdf0e10cSrcweir GetResString(PRODUCTNAME_ID)) 1932*cdf0e10cSrcweir lblIntroduction1.Caption = ReplaceTopicTokens(GetResString(INTRO1_ID), CPRODUCTNAME_STR, _ 1933*cdf0e10cSrcweir GetResString(PRODUCTNAME_ID)) 1934*cdf0e10cSrcweir mLblSteps = GetResString(LBL_STEPS_ID) 1935*cdf0e10cSrcweir mChbSubdirs = GetResString(CHK_SUBDIRS_ID) 1936*cdf0e10cSrcweir 1937*cdf0e10cSrcweir ' Setup Doc Preparation specific strings 1938*cdf0e10cSrcweir If gBoolPreparation Then 1939*cdf0e10cSrcweir ' Steps 1940*cdf0e10cSrcweir lblStep1_4.Caption = GetResString(RID_STR_ENG_SIDEBAR_ANALYZE_PREP_ID) 1941*cdf0e10cSrcweir lblStep2_4.Caption = GetResString(RID_STR_ENG_SIDEBAR_ANALYZE_PREP_ID) 1942*cdf0e10cSrcweir lblStep3_4.Caption = GetResString(RID_STR_ENG_SIDEBAR_ANALYZE_PREP_ID) 1943*cdf0e10cSrcweir lblStep4_4.Caption = GetResString(RID_STR_ENG_SIDEBAR_ANALYZE_PREP_ID) 1944*cdf0e10cSrcweir 1945*cdf0e10cSrcweir ' Preparation - Step 1. Introduction 1946*cdf0e10cSrcweir lblIntroduction1.Caption = ReplaceTopicTokens(GetResString(RID_STR_ENG_INTRODUCTION_INTRO1_PREP_ID), CPRODUCTNAME_STR, _ 1947*cdf0e10cSrcweir GetResString(PRODUCTNAME_ID)) 1948*cdf0e10cSrcweir lblIntroduction2.Caption = GetResString(RID_STR_ENG_INTRODUCTION_INTRO2_PREP_ID) 1949*cdf0e10cSrcweir lblIntroduction3.Caption = GetResString(RID_STR_ENG_INTRODUCTION_INTRO3_PREP_ID) 1950*cdf0e10cSrcweir 1951*cdf0e10cSrcweir ' Preparation - Step 2. Documents 1952*cdf0e10cSrcweir lblChooseDocs.Caption = GetResString(RID_STR_ENG_DOCUMENTS_CHOOSE_DOCUMENTS_PREP_ID) 1953*cdf0e10cSrcweir lblDocTypes.Caption = GetResString(RID_STR_ENG_DOCUMENTS_CHOOSE_DOC_TYPES_PREP_ID) 1954*cdf0e10cSrcweir 'mChbSubdirs = GetResString(RID_STR_ENG_DOCUMENTS_INCLUDE_SUBDIRECTORIES_PREP_ID) 1955*cdf0e10cSrcweir chkIgnoreOld.Caption = GetResString(RID_STR_IGNORE_OLDER_CB_ID) 1956*cdf0e10cSrcweir 1957*cdf0e10cSrcweir cbIgnoreOld.Clear 1958*cdf0e10cSrcweir cbIgnoreOld.AddItem (GetResString(RID_STR_IGNORE_OLDER_3_MONTHS_ID)) 1959*cdf0e10cSrcweir cbIgnoreOld.AddItem (GetResString(RID_STR_IGNORE_OLDER_6_MONTHS_ID)) 1960*cdf0e10cSrcweir cbIgnoreOld.AddItem (GetResString(RID_STR_IGNORE_OLDER_12_MONTHS_ID)) 1961*cdf0e10cSrcweir cbIgnoreOld.ListIndex = 0 1962*cdf0e10cSrcweir 1963*cdf0e10cSrcweir ' Preparation - Step 3. Results 1964*cdf0e10cSrcweir lblChooseResults.Caption = GetResString(RID_STR_ENG_RESULTS_CHOOSE_OPTIONS_PREP_ID) 1965*cdf0e10cSrcweir txtResultsName.Text = GetResString(RID_STR_ENG_RESULTS_ANALYSIS_XLS_PREP_ID) 1966*cdf0e10cSrcweir 1967*cdf0e10cSrcweir 'Show Append option 1968*cdf0e10cSrcweir rdbResultsAppend.Visible = True 1969*cdf0e10cSrcweir 1970*cdf0e10cSrcweir ' Preparation - Step 4. Analysis 1971*cdf0e10cSrcweir lblSetupDone.Caption = GetResString(RID_STR_ENG_ANALYZE_SETUP_COMPLETE_PREP_ID) 1972*cdf0e10cSrcweir btnPrepare.Visible = True 1973*cdf0e10cSrcweir Else 1974*cdf0e10cSrcweir ' The next line is a work around for a wrong translated string and should be removed 1975*cdf0e10cSrcweir ' when RID_STR_ENG_RESULTS_CHOOSE_OPTIONS has been corrected 1976*cdf0e10cSrcweir lblChooseResults.Caption = GetResString(RID_STR_ENG_RESULTS_CHOOSE_OPTIONS_PREP_ID) 1977*cdf0e10cSrcweir mDefaultPassword = IIf(GetIniSetting(CDEFAULT_PASSWORD) = "", _ 1978*cdf0e10cSrcweir CSTR_TEST_PASSWORD, GetIniSetting(CDEFAULT_PASSWORD)) 1979*cdf0e10cSrcweir End If 1980*cdf0e10cSrcweir 1981*cdf0e10cSrcweir SetStep 0, DIR_NEXT 1982*cdf0e10cSrcweir Dim tmpStr As String 1983*cdf0e10cSrcweir 1984*cdf0e10cSrcweir 'Setup Params 1985*cdf0e10cSrcweir tmpStr = GetIniSetting(CINPUT_DIR) 1986*cdf0e10cSrcweir If tmpStr <> "" Then 1987*cdf0e10cSrcweir txtInputDir.Text = tmpStr 1988*cdf0e10cSrcweir txtInputDir.ToolTipText = tmpStr 1989*cdf0e10cSrcweir End If 1990*cdf0e10cSrcweir tmpStr = GetIniSetting(COUTPUT_DIR) 1991*cdf0e10cSrcweir If tmpStr <> "" Then 1992*cdf0e10cSrcweir If Right(tmpStr, 1) = ":" And Len(tmpStr) = 2 Then 1993*cdf0e10cSrcweir tmpStr = tmpStr & "\" 1994*cdf0e10cSrcweir End If 1995*cdf0e10cSrcweir txtOutputDir.Text = tmpStr 1996*cdf0e10cSrcweir txtOutputDir.ToolTipText = tmpStr 1997*cdf0e10cSrcweir End If 1998*cdf0e10cSrcweir tmpStr = GetIniSetting(CRESULTS_FILE) 1999*cdf0e10cSrcweir If tmpStr <> "" Then txtResultsName.Text = tmpStr 2000*cdf0e10cSrcweir 2001*cdf0e10cSrcweir rdbResultsPrompt.value = False 2002*cdf0e10cSrcweir rdbResultsOverwrite.value = False 2003*cdf0e10cSrcweir rdbResultsAppend.value = False 2004*cdf0e10cSrcweir Dim resultsSetting As String 2005*cdf0e10cSrcweir resultsSetting = GetIniSetting(CRESULTS_EXIST) 2006*cdf0e10cSrcweir If resultsSetting = CPROMPT_FILE Then 2007*cdf0e10cSrcweir rdbResultsPrompt.value = True 2008*cdf0e10cSrcweir ElseIf resultsSetting = CAPPEND_FILE Then 2009*cdf0e10cSrcweir rdbResultsAppend.value = True 2010*cdf0e10cSrcweir Else 2011*cdf0e10cSrcweir rdbResultsOverwrite.value = True 2012*cdf0e10cSrcweir End If 2013*cdf0e10cSrcweir 2014*cdf0e10cSrcweir chkWordDoc.value = IIf(GetIniSetting(CTYPE_WORDDOC) = CStr(True), vbChecked, 0) 2015*cdf0e10cSrcweir chkWordTemplate.value = IIf(GetIniSetting(CTYPE_WORDDOT) = CStr(True), vbChecked, 0) 2016*cdf0e10cSrcweir chkExcelDoc.value = IIf(GetIniSetting(CTYPE_EXCELDOC) = CStr(True), vbChecked, 0) 2017*cdf0e10cSrcweir chkExcelTemplate.value = IIf(GetIniSetting(CTYPE_EXCELDOT) = CStr(True), vbChecked, 0) 2018*cdf0e10cSrcweir chkPPDoc.value = IIf(GetIniSetting(CTYPE_PPDOC) = CStr(True), vbChecked, 0) 2019*cdf0e10cSrcweir chkPPTemplate.value = IIf(GetIniSetting(CTYPE_PPDOT) = CStr(True), vbChecked, 0) 2020*cdf0e10cSrcweir chkIncludeSubdirs.value = IIf(GetIniSetting(CINCLUDE_SUBDIRS) = CStr(True), vbChecked, 0) 2021*cdf0e10cSrcweir mDebugLevel = IIf(GetIniSetting(CDEBUG_LEVEL) = "", CDEBUG_LEVEL_DEFAULT, GetIniSetting(CDEBUG_LEVEL)) 2022*cdf0e10cSrcweir chkIgnoreOld.value = IIf(GetIniSetting(CIGNORE_OLD_DOCS) = CStr(True), vbChecked, 0) 2023*cdf0e10cSrcweir 2024*cdf0e10cSrcweir mIssueLimit = IIf(GetIniSetting(CISSUE_LIMIT) = "", CISSUE_LIMIT_DAW, GetIniSetting(CISSUE_LIMIT)) 2025*cdf0e10cSrcweir If (mIssueLimit <= 3) Then 2026*cdf0e10cSrcweir cbIgnoreOld.ListIndex = 0 2027*cdf0e10cSrcweir ElseIf (mIssueLimit <= 6) Then 2028*cdf0e10cSrcweir cbIgnoreOld.ListIndex = 1 2029*cdf0e10cSrcweir Else 2030*cdf0e10cSrcweir cbIgnoreOld.ListIndex = 2 2031*cdf0e10cSrcweir End If 2032*cdf0e10cSrcweir 2033*cdf0e10cSrcweir 'Always ensure at least one doc type is selected on startup 2034*cdf0e10cSrcweir If (chkWordDoc.value <> vbChecked) And _ 2035*cdf0e10cSrcweir (chkWordTemplate.value <> vbChecked) And _ 2036*cdf0e10cSrcweir (chkExcelDoc.value <> vbChecked) And _ 2037*cdf0e10cSrcweir (chkExcelTemplate.value <> vbChecked) And _ 2038*cdf0e10cSrcweir (chkPPDoc.value <> vbChecked) And _ 2039*cdf0e10cSrcweir (chkPPTemplate.value <> vbChecked) Then 2040*cdf0e10cSrcweir 2041*cdf0e10cSrcweir chkWordDoc.value = vbChecked 2042*cdf0e10cSrcweir End If 2043*cdf0e10cSrcweir 2044*cdf0e10cSrcweirFinalExit: 2045*cdf0e10cSrcweir Set fso = Nothing 2046*cdf0e10cSrcweir Exit Sub 2047*cdf0e10cSrcweir 2048*cdf0e10cSrcweirHandleErrors: 2049*cdf0e10cSrcweir WriteDebug currentFunctionName & " : " & Err.Number & " " & Err.Description & " " & Err.Source 2050*cdf0e10cSrcweir Resume FinalExit 2051*cdf0e10cSrcweirEnd Sub 2052*cdf0e10cSrcweir 2053*cdf0e10cSrcweirPrivate Sub SetStep(nStep As Integer, nDirection As Integer) 2054*cdf0e10cSrcweir On Error GoTo HandleError 2055*cdf0e10cSrcweir Const driveTypeIsCDROM = 4 2056*cdf0e10cSrcweir Dim val As String 2057*cdf0e10cSrcweir Dim fso As Scripting.FileSystemObject 2058*cdf0e10cSrcweir Set fso = New Scripting.FileSystemObject 2059*cdf0e10cSrcweir Dim drive 2060*cdf0e10cSrcweir 2061*cdf0e10cSrcweir 2062*cdf0e10cSrcweir mbDocCountCurrent = False 2063*cdf0e10cSrcweir 2064*cdf0e10cSrcweir Select Case nStep 2065*cdf0e10cSrcweir Case STEP_INTRO 2066*cdf0e10cSrcweir 'MsgBox "Enter Intro" 2067*cdf0e10cSrcweir Case STEP_1 2068*cdf0e10cSrcweir 'Leave Introduction 2069*cdf0e10cSrcweir 'Workaround - resource bug for SubDir checkbox, have to set it explicitly 2070*cdf0e10cSrcweir chkIncludeSubdirs.Caption = mChbSubdirs 2071*cdf0e10cSrcweir Case STEP_2 2072*cdf0e10cSrcweir 'Leave Documents 2073*cdf0e10cSrcweir 2074*cdf0e10cSrcweir Set drive = fso.GetDrive(fso.GetDriveName(txtInputDir.Text)) 2075*cdf0e10cSrcweir If drive.DriveType = driveTypeIsCDROM Then 2076*cdf0e10cSrcweir If Not drive.IsReady Then 2077*cdf0e10cSrcweir MsgBox GetResString(ERR_CDROM_NOT_READY), vbCritical 2078*cdf0e10cSrcweir Exit Sub 2079*cdf0e10cSrcweir End If 2080*cdf0e10cSrcweir End If 2081*cdf0e10cSrcweir 2082*cdf0e10cSrcweir If txtInputDir.Text = "" Or Not fso.FolderExists(txtInputDir.Text) Then ' fso.FolderExists() has replaced dir() 2083*cdf0e10cSrcweir MsgBox ReplaceTopicTokens(GetResString(ERR_NO_DOC_DIR), _ 2084*cdf0e10cSrcweir CR_STR, Chr(13)), vbCritical 2085*cdf0e10cSrcweir Exit Sub 2086*cdf0e10cSrcweir End If 2087*cdf0e10cSrcweir 2088*cdf0e10cSrcweir If Not CheckUserChosenDocsToAnalyze Then 2089*cdf0e10cSrcweir MsgBox GetResString(ERR_NO_DOC_TYPES), vbCritical 2090*cdf0e10cSrcweir Exit Sub 2091*cdf0e10cSrcweir End If 2092*cdf0e10cSrcweir 'Expand directory name only without path to full path 2093*cdf0e10cSrcweir txtInputDir.Text = fso.GetAbsolutePathName(txtInputDir.Text) 2094*cdf0e10cSrcweir 2095*cdf0e10cSrcweir If txtOutputDir.Text = "" Then 2096*cdf0e10cSrcweir txtOutputDir.Text = txtInputDir.Text 2097*cdf0e10cSrcweir End If 2098*cdf0e10cSrcweir 2099*cdf0e10cSrcweir mbFinishOK = False 2100*cdf0e10cSrcweir 2101*cdf0e10cSrcweir 'Workaround - label resource bug for Steps, have to set it explicitly 2102*cdf0e10cSrcweir Label12(0).Caption = mLblSteps 2103*cdf0e10cSrcweir Label12(5).Caption = mLblSteps 2104*cdf0e10cSrcweir Case STEP_FINISH 2105*cdf0e10cSrcweir 'Leave Results 2106*cdf0e10cSrcweir If Not CheckResultsDir(getOutputDir) Then 2107*cdf0e10cSrcweir Exit Sub 2108*cdf0e10cSrcweir End If 2109*cdf0e10cSrcweir 2110*cdf0e10cSrcweir 'Expand directory name only without path to full path 2111*cdf0e10cSrcweir txtOutputDir.Text = fso.GetAbsolutePathName(txtOutputDir) 2112*cdf0e10cSrcweir 2113*cdf0e10cSrcweir 'Check Results file is there and has a valid extension 2114*cdf0e10cSrcweir If fso.GetBaseName(txtResultsName.Text) = "" Then 2115*cdf0e10cSrcweir txtResultsName.Text = GetResString(SETUP_ANALYSIS_XLS_ID) 2116*cdf0e10cSrcweir End If 2117*cdf0e10cSrcweir txtResultsName.Text = fso.GetBaseName(txtResultsName.Text) & CRESULTS_FILE_EXTENSION 2118*cdf0e10cSrcweir 2119*cdf0e10cSrcweir Screen.MousePointer = vbHourglass 2120*cdf0e10cSrcweir DeleteFile mLogFilePath 2121*cdf0e10cSrcweir Set mDocFiles = Nothing 2122*cdf0e10cSrcweir If Not CheckNumberDocsToAnalyze Then 2123*cdf0e10cSrcweir Screen.MousePointer = vbDefault 2124*cdf0e10cSrcweir Exit Sub 2125*cdf0e10cSrcweir End If 2126*cdf0e10cSrcweir 2127*cdf0e10cSrcweir Screen.MousePointer = vbDefault 2128*cdf0e10cSrcweir 2129*cdf0e10cSrcweir btnRunAnalysis.Enabled = True 2130*cdf0e10cSrcweir 2131*cdf0e10cSrcweir If GetNumberOfDocsToAnalyze = 0 Then 2132*cdf0e10cSrcweir btnRunAnalysis.Enabled = False 2133*cdf0e10cSrcweir End If 2134*cdf0e10cSrcweir 2135*cdf0e10cSrcweir 'Backup configuration 2136*cdf0e10cSrcweir If Not AttemptToCopyFile(mIniFilePath, mIniFilePath & CCONFIG_BACKUP_EXT) Then 2137*cdf0e10cSrcweir Exit Sub 2138*cdf0e10cSrcweir End If 2139*cdf0e10cSrcweir 2140*cdf0e10cSrcweir 'Save current Wizard Settings 2141*cdf0e10cSrcweir WriteWizardSettingsToLog mIniFilePath 2142*cdf0e10cSrcweir 2143*cdf0e10cSrcweir 'If results file already exists, enable View and Prepare 2144*cdf0e10cSrcweir If fso.FileExists(getOutputDir & "\" & txtResultsName.Text) Then 2145*cdf0e10cSrcweir btnViewResults.Enabled = True 2146*cdf0e10cSrcweir btnPrepare.Enabled = True 2147*cdf0e10cSrcweir End If 2148*cdf0e10cSrcweir 2149*cdf0e10cSrcweir mbFinishOK = True 2150*cdf0e10cSrcweir End Select 2151*cdf0e10cSrcweir 2152*cdf0e10cSrcweir 'move to new step 2153*cdf0e10cSrcweir fraStep(mnCurStep).Enabled = False 2154*cdf0e10cSrcweir fraStep(nStep).Left = 0 2155*cdf0e10cSrcweir If nStep <> mnCurStep Then 2156*cdf0e10cSrcweir fraStep(mnCurStep).Left = -10000 2157*cdf0e10cSrcweir fraStep(mnCurStep).Enabled = False 2158*cdf0e10cSrcweir End If 2159*cdf0e10cSrcweir fraStep(nStep).Enabled = True 2160*cdf0e10cSrcweir 2161*cdf0e10cSrcweir SetNavBtns nStep 2162*cdf0e10cSrcweir Exit Sub 2163*cdf0e10cSrcweir 2164*cdf0e10cSrcweirFinalExit: 2165*cdf0e10cSrcweir Set fso = Nothing 2166*cdf0e10cSrcweir Set drive = Nothing 2167*cdf0e10cSrcweir Exit Sub 2168*cdf0e10cSrcweir 2169*cdf0e10cSrcweirHandleError: 2170*cdf0e10cSrcweir Screen.MousePointer = vbDefault 2171*cdf0e10cSrcweir WriteDebug "Document Analysis: SetStep() " & Err.Number & " " & Err.Description & " " & Err.Source 2172*cdf0e10cSrcweir 2173*cdf0e10cSrcweir Resume FinalExit 2174*cdf0e10cSrcweirEnd Sub 2175*cdf0e10cSrcweir 2176*cdf0e10cSrcweirFunction CheckResultsDir(resultsDir As String) As Boolean 2177*cdf0e10cSrcweir On Error GoTo HandleError 2178*cdf0e10cSrcweir Dim fso As Scripting.FileSystemObject 2179*cdf0e10cSrcweir Set fso = New Scripting.FileSystemObject 2180*cdf0e10cSrcweir Const driveTypeIsCDROM = 4 2181*cdf0e10cSrcweir Const readOnlyFolderRemainder = 1 2182*cdf0e10cSrcweir Dim drive 2183*cdf0e10cSrcweir CheckResultsDir = False 2184*cdf0e10cSrcweir 2185*cdf0e10cSrcweir If resultsDir = "" Then 2186*cdf0e10cSrcweir MsgBox ReplaceTopicTokens(GetResString(ERR_NO_RESULTS_DIRECTORY), _ 2187*cdf0e10cSrcweir CR_STR, Chr(13)), vbCritical 2188*cdf0e10cSrcweir CheckResultsDir = False 2189*cdf0e10cSrcweir Exit Function 2190*cdf0e10cSrcweir End If 2191*cdf0e10cSrcweir 2192*cdf0e10cSrcweir Set drive = fso.GetDrive(fso.GetDriveName(resultsDir)) 2193*cdf0e10cSrcweir If drive.DriveType = driveTypeIsCDROM Then 'If CD-ROM Drive Then 2194*cdf0e10cSrcweir Dim Msg1 As String 2195*cdf0e10cSrcweir Msg1 = ReplaceTopic2Tokens(GetResString(ERR_CREATE_FILE), _ 2196*cdf0e10cSrcweir TOPIC_STR, txtResultsName.Text, CR_STR, Chr(13)) 2197*cdf0e10cSrcweir MsgBox Msg1, vbCritical 2198*cdf0e10cSrcweir CheckResultsDir = False 2199*cdf0e10cSrcweir Exit Function 2200*cdf0e10cSrcweir End If 2201*cdf0e10cSrcweir 2202*cdf0e10cSrcweir 2203*cdf0e10cSrcweir If Not fso.FolderExists(resultsDir) Then 2204*cdf0e10cSrcweir Dim Msg, Style, response 2205*cdf0e10cSrcweir 2206*cdf0e10cSrcweir Msg = ReplaceTopicTokens(GetResString(ERR_NO_RES_DIR), CR_STR, Chr(13)) 2207*cdf0e10cSrcweir Style = vbYesNo + vbQuestion + vbDefaultButton1 ' Define buttons. 2208*cdf0e10cSrcweir 2209*cdf0e10cSrcweir response = MsgBox(Msg, Style) 2210*cdf0e10cSrcweir If response = vbYes Then ' User chose Yes. 2211*cdf0e10cSrcweir If Not CreateDir(getOutputDir) Then 2212*cdf0e10cSrcweir CheckResultsDir = False 2213*cdf0e10cSrcweir Exit Function 2214*cdf0e10cSrcweir End If 2215*cdf0e10cSrcweir Else ' User chose No. 2216*cdf0e10cSrcweir CheckResultsDir = False 2217*cdf0e10cSrcweir Exit Function 2218*cdf0e10cSrcweir End If 2219*cdf0e10cSrcweir End If 2220*cdf0e10cSrcweir 2221*cdf0e10cSrcweir Dim testFile As String 2222*cdf0e10cSrcweir testFile = resultsDir & "\" & fso.GetTempName 2223*cdf0e10cSrcweir Do While fso.FileExists(testFile) 2224*cdf0e10cSrcweir testFile = resultsDir & "\" & fso.GetTempName 2225*cdf0e10cSrcweir Loop 2226*cdf0e10cSrcweir 2227*cdf0e10cSrcweir On Error GoTo HandleReadOnly 2228*cdf0e10cSrcweir Dim aText As TextStream 2229*cdf0e10cSrcweir Set aText = fso.CreateTextFile(testFile, False, False) 2230*cdf0e10cSrcweir aText.WriteLine ("Dies ist ein Test.") 2231*cdf0e10cSrcweir aText.Close 2232*cdf0e10cSrcweir fso.DeleteFile (testFile) 2233*cdf0e10cSrcweir 2234*cdf0e10cSrcweir' GetAttr doesn't work reliable ( returns read only for 'my Documents' and rw for read only network folder 2235*cdf0e10cSrcweir' If ((GetAttr(resultsDir) Mod 2) = readOnlyFolderRemainder) Then 'If the attribute is odd then the folder is read-only 2236*cdf0e10cSrcweir' MsgBox GetResString(ERR_NO_WRITE_TO_READ_ONLY_FOLDER), vbCritical 2237*cdf0e10cSrcweir' CheckResultsDir = False 2238*cdf0e10cSrcweir' Exit Function 2239*cdf0e10cSrcweir' End If 2240*cdf0e10cSrcweir 2241*cdf0e10cSrcweir CheckResultsDir = True 2242*cdf0e10cSrcweir 2243*cdf0e10cSrcweir Exit Function 2244*cdf0e10cSrcweirHandleError: 2245*cdf0e10cSrcweir WriteDebug "Document Analysis: CheckResultsDir() " & Err.Number & " " & Err.Description & " " & Err.Source 2246*cdf0e10cSrcweir CheckResultsDir = False 2247*cdf0e10cSrcweir Exit Function 2248*cdf0e10cSrcweirHandleReadOnly: 2249*cdf0e10cSrcweir Dim str As String 2250*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_CREATE_FILE), _ 2251*cdf0e10cSrcweir TOPIC_STR, txtResultsName.Text, CR_STR, Chr(13)) 2252*cdf0e10cSrcweir MsgBox str, vbCritical 2253*cdf0e10cSrcweir CheckResultsDir = False 2254*cdf0e10cSrcweir Exit Function 2255*cdf0e10cSrcweirEnd Function 2256*cdf0e10cSrcweir 2257*cdf0e10cSrcweirFunction CheckUserChosenDocsToAnalyze() As Boolean 2258*cdf0e10cSrcweir CheckUserChosenDocsToAnalyze = Not ((chkWordDoc.value <> vbChecked) And (chkWordTemplate.value <> vbChecked) And _ 2259*cdf0e10cSrcweir (chkExcelDoc.value <> vbChecked) And (chkExcelTemplate.value <> vbChecked) And _ 2260*cdf0e10cSrcweir (chkPPDoc.value <> vbChecked) And (chkPPTemplate.value <> vbChecked)) 2261*cdf0e10cSrcweirEnd Function 2262*cdf0e10cSrcweir 2263*cdf0e10cSrcweirFunction AttemptToCopyFile(Source As String, dest As String) As Boolean 2264*cdf0e10cSrcweir On Error GoTo HandleErrors 2265*cdf0e10cSrcweir Dim fso As Scripting.FileSystemObject 2266*cdf0e10cSrcweir Set fso = New Scripting.FileSystemObject 2267*cdf0e10cSrcweir 2268*cdf0e10cSrcweir If fso.FileExists(Source) Then 2269*cdf0e10cSrcweir fso.CopyFile Source, dest 2270*cdf0e10cSrcweir End If 2271*cdf0e10cSrcweir 2272*cdf0e10cSrcweir 'True if no source or copy succeded 2273*cdf0e10cSrcweir AttemptToCopyFile = True 2274*cdf0e10cSrcweir 2275*cdf0e10cSrcweirFinalExit: 2276*cdf0e10cSrcweir Set fso = Nothing 2277*cdf0e10cSrcweir Exit Function 2278*cdf0e10cSrcweir 2279*cdf0e10cSrcweirHandleErrors: 2280*cdf0e10cSrcweir AttemptToCopyFile = False 2281*cdf0e10cSrcweir Dim str As String 2282*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_CREATE_FILE), _ 2283*cdf0e10cSrcweir TOPIC_STR, mIniFilePath & CCONFIG_BACKUP_EXT, CR_STR, Chr(13)) 2284*cdf0e10cSrcweir Resume FinalExit 2285*cdf0e10cSrcweir 2286*cdf0e10cSrcweirEnd Function 2287*cdf0e10cSrcweir 2288*cdf0e10cSrcweirFunction CreateDir(dir As String) As Boolean 2289*cdf0e10cSrcweir On Error GoTo HandleErrors 2290*cdf0e10cSrcweir Dim fso As Scripting.FileSystemObject 2291*cdf0e10cSrcweir Set fso = New Scripting.FileSystemObject 2292*cdf0e10cSrcweir 2293*cdf0e10cSrcweir fso.CreateFolder (dir) 2294*cdf0e10cSrcweir 2295*cdf0e10cSrcweir CreateDir = True 2296*cdf0e10cSrcweir 2297*cdf0e10cSrcweirFinalExit: 2298*cdf0e10cSrcweir Set fso = Nothing 2299*cdf0e10cSrcweir Exit Function 2300*cdf0e10cSrcweir 2301*cdf0e10cSrcweirHandleErrors: 2302*cdf0e10cSrcweir Dim str As String 2303*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_CREATE_DIR), _ 2304*cdf0e10cSrcweir TOPIC_STR, dir, CR_STR, Chr(13)) 2305*cdf0e10cSrcweir Select Case Err.Number 2306*cdf0e10cSrcweir Case 76 2307*cdf0e10cSrcweir WriteDebug str 2308*cdf0e10cSrcweir MsgBox str, vbCritical 2309*cdf0e10cSrcweir CreateDir = False 2310*cdf0e10cSrcweir Case 58 2311*cdf0e10cSrcweir 'Don't care if it exists already 2312*cdf0e10cSrcweir CreateDir = True 2313*cdf0e10cSrcweir Case Else 2314*cdf0e10cSrcweir WriteDebug str 2315*cdf0e10cSrcweir MsgBox str, vbCritical 2316*cdf0e10cSrcweir CreateDir = False 2317*cdf0e10cSrcweir End Select 2318*cdf0e10cSrcweir Resume FinalExit 2319*cdf0e10cSrcweir 2320*cdf0e10cSrcweirEnd Function 2321*cdf0e10cSrcweirPrivate Sub SetNavBtns(nStep As Integer) 2322*cdf0e10cSrcweir mnCurStep = nStep 2323*cdf0e10cSrcweir 2324*cdf0e10cSrcweir If mnCurStep = 0 Then 2325*cdf0e10cSrcweir cmdNav(BTN_BACK).Enabled = False 2326*cdf0e10cSrcweir cmdNav(BTN_NEXT).Enabled = True 2327*cdf0e10cSrcweir ElseIf mnCurStep = NUM_STEPS - 1 Then 2328*cdf0e10cSrcweir cmdNav(BTN_NEXT).Enabled = False 2329*cdf0e10cSrcweir cmdNav(BTN_BACK).Enabled = True 2330*cdf0e10cSrcweir Else 2331*cdf0e10cSrcweir cmdNav(BTN_BACK).Enabled = True 2332*cdf0e10cSrcweir cmdNav(BTN_NEXT).Enabled = True 2333*cdf0e10cSrcweir End If 2334*cdf0e10cSrcweir 2335*cdf0e10cSrcweir If mbFinishOK Then 2336*cdf0e10cSrcweir cmdNav(BTN_FINISH).Enabled = True 2337*cdf0e10cSrcweir Else 2338*cdf0e10cSrcweir cmdNav(BTN_FINISH).Enabled = False 2339*cdf0e10cSrcweir End If 2340*cdf0e10cSrcweirEnd Sub 2341*cdf0e10cSrcweirFunction CheckForSupportedApp(app As String, lowerVerLimit As Long) As Boolean 2342*cdf0e10cSrcweir Dim appRegStr As String 2343*cdf0e10cSrcweir Dim appVer As Long 2344*cdf0e10cSrcweir appRegStr = GetRegistryInfo(HKEY_CLASSES_ROOT, app & ".Application\CurVer", "") 2345*cdf0e10cSrcweir appVer = val(Right(appRegStr, Len(appRegStr) - Len(app & ".Application."))) 2346*cdf0e10cSrcweir If appVer >= lowerVerLimit Then 2347*cdf0e10cSrcweir CheckForSupportedApp = True 2348*cdf0e10cSrcweir Else 2349*cdf0e10cSrcweir CheckForSupportedApp = False 2350*cdf0e10cSrcweir End If 2351*cdf0e10cSrcweirEnd Function 2352*cdf0e10cSrcweirFunction GetAppVersion(app As String) As Long 2353*cdf0e10cSrcweir Dim appRegStr As String 2354*cdf0e10cSrcweir Dim appVer As Long 2355*cdf0e10cSrcweir appRegStr = GetRegistryInfo(HKEY_CLASSES_ROOT, app & ".Application\CurVer", "") 2356*cdf0e10cSrcweir GetAppVersion = val(Right(appRegStr, Len(appRegStr) - Len(app & ".Application."))) 2357*cdf0e10cSrcweirEnd Function 2358*cdf0e10cSrcweirFunction GetInstalledApp(app As String) As String 2359*cdf0e10cSrcweir GetInstalledApp = GetRegistryInfo(HKEY_CLASSES_ROOT, app & ".Application\CurVer", "") 2360*cdf0e10cSrcweirEnd Function 2361*cdf0e10cSrcweir 2362*cdf0e10cSrcweirSub WriteInfoToApplicationLog(wordAppStr As String, excelAppStr As String, ppAppStr As String) 2363*cdf0e10cSrcweir On Error GoTo HandleErrors 2364*cdf0e10cSrcweir Dim currentFunctionName As String 2365*cdf0e10cSrcweir currentFunctionName = "WriteInfoToApplicationLog" 2366*cdf0e10cSrcweir 2367*cdf0e10cSrcweir Dim userLCID As Long 2368*cdf0e10cSrcweir userLCID = GetUserDefaultLCID() 2369*cdf0e10cSrcweir Dim sysLCID As Long 2370*cdf0e10cSrcweir sysLCID = GetSystemDefaultLCID() 2371*cdf0e10cSrcweir 2372*cdf0e10cSrcweir WriteToLog CWORD_VERSION, IIf(wordAppStr <> "", wordAppStr, CNOT_INSTALLED) 2373*cdf0e10cSrcweir WriteToLog CEXCEL_VERSION, IIf(excelAppStr <> "", excelAppStr, CNOT_INSTALLED) 2374*cdf0e10cSrcweir WriteToLog CPOWERPOINT_VERSION, IIf(ppAppStr <> "", ppAppStr, CNOT_INSTALLED) 2375*cdf0e10cSrcweir 2376*cdf0e10cSrcweir WriteToLog CUSER_LOCALE_INFO, _ 2377*cdf0e10cSrcweir "langid: " & GetUserLocaleInfo(userLCID, LOCALE_ILANGUAGE) & ": " & _ 2378*cdf0e10cSrcweir GetUserLocaleInfo(userLCID, LOCALE_SENGLANGUAGE) & _ 2379*cdf0e10cSrcweir "-" & GetUserLocaleInfo(userLCID, LOCALE_SENGCOUNTRY) & _ 2380*cdf0e10cSrcweir " abrv: " & GetUserLocaleInfo(userLCID, LOCALE_SISO639LANGNAME) & _ 2381*cdf0e10cSrcweir "-" & GetUserLocaleInfo(userLCID, LOCALE_SISO3166CTRYNAME) & _ 2382*cdf0e10cSrcweir " sdate: " & GetUserLocaleInfo(userLCID, LOCALE_SSHORTDATE) 2383*cdf0e10cSrcweir 2384*cdf0e10cSrcweir WriteToLog CSYS_LOCALE_INFO, _ 2385*cdf0e10cSrcweir "langid: " & GetUserLocaleInfo(sysLCID, LOCALE_ILANGUAGE) & ": " & _ 2386*cdf0e10cSrcweir GetUserLocaleInfo(sysLCID, LOCALE_SENGLANGUAGE) & _ 2387*cdf0e10cSrcweir "-" & GetUserLocaleInfo(sysLCID, LOCALE_SENGCOUNTRY) & _ 2388*cdf0e10cSrcweir " abrv: " & GetUserLocaleInfo(sysLCID, LOCALE_SISO639LANGNAME) & _ 2389*cdf0e10cSrcweir "-" & GetUserLocaleInfo(sysLCID, LOCALE_SISO3166CTRYNAME) & _ 2390*cdf0e10cSrcweir " sdate: " & GetUserLocaleInfo(userLCID, LOCALE_SSHORTDATE) 2391*cdf0e10cSrcweir 2392*cdf0e10cSrcweir Dim myWinVer As RGB_WINVER 2393*cdf0e10cSrcweir GetWinVersion myWinVer 2394*cdf0e10cSrcweir WriteToLog CWINVERSION, myWinVer.VersionName & " " & myWinVer.VersionNo & _ 2395*cdf0e10cSrcweir " " & myWinVer.ServicePack & _ 2396*cdf0e10cSrcweir " build " & myWinVer.BuildNo 2397*cdf0e10cSrcweir WriteToLog CNUMBER_TOTAL_DOCS, CStr(mTotalDocCount) 2398*cdf0e10cSrcweir WriteToLog CNUMBER_DOCS_DOC, CStr(mWordDocCount) 2399*cdf0e10cSrcweir WriteToLog CNUMBER_TEMPLATES_DOT, CStr(mWordTemplateCount) 2400*cdf0e10cSrcweir WriteToLog CNUMBER_DOCS_XLS, CStr(mExcelDocCount) 2401*cdf0e10cSrcweir WriteToLog CNUMBER_TEMPLATES_XLT, CStr(mExcelTemplateCount) 2402*cdf0e10cSrcweir WriteToLog CNUMBER_DOCS_PPT, CStr(mPPDocCount) 2403*cdf0e10cSrcweir WriteToLog CNUMBER_TEMPLATES_POT, CStr(mPPTemplateCount) 2404*cdf0e10cSrcweirFinalExit: 2405*cdf0e10cSrcweir Exit Sub 2406*cdf0e10cSrcweir 2407*cdf0e10cSrcweirHandleErrors: 2408*cdf0e10cSrcweir WriteDebug currentFunctionName & " : " & Err.Number & " " & Err.Description & " " & Err.Source 2409*cdf0e10cSrcweir Resume FinalExit 2410*cdf0e10cSrcweirEnd Sub 2411*cdf0e10cSrcweir 2412*cdf0e10cSrcweirFunction CheckTemplatePath(sMigrationResultsTemplatePath As String, fso As FileSystemObject) As Boolean 2413*cdf0e10cSrcweir If Not fso.FileExists(sMigrationResultsTemplatePath) Then 2414*cdf0e10cSrcweir Dim str As String 2415*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_MISSING_RESULTS_TEMPLATE), _ 2416*cdf0e10cSrcweir TOPIC_STR, sMigrationResultsTemplatePath, CR_STR, Chr(13)) 2417*cdf0e10cSrcweir WriteDebug str 2418*cdf0e10cSrcweir MsgBox str, vbCritical 2419*cdf0e10cSrcweir CheckTemplatePath = False 2420*cdf0e10cSrcweir Else 2421*cdf0e10cSrcweir CheckTemplatePath = True 2422*cdf0e10cSrcweir End If 2423*cdf0e10cSrcweirEnd Function 2424*cdf0e10cSrcweir 2425*cdf0e10cSrcweirFunction RunAnalysis(bDoPrepare) As Boolean 2426*cdf0e10cSrcweir On Error GoTo HandleErrors 2427*cdf0e10cSrcweir Dim currentFunctionName As String 2428*cdf0e10cSrcweir currentFunctionName = "RunAnalysis" 2429*cdf0e10cSrcweir Dim tstart As Single 'timer var for this routine only 2430*cdf0e10cSrcweir Dim tend As Single 'timer var for this routine only 2431*cdf0e10cSrcweir Dim fso As New FileSystemObject 2432*cdf0e10cSrcweir Dim wordAppStr As String 2433*cdf0e10cSrcweir Dim excelAppStr As String 2434*cdf0e10cSrcweir Dim ppAppStr As String 2435*cdf0e10cSrcweir Dim sMigrationResultsTemplatePath As String 2436*cdf0e10cSrcweir Dim startDate As Variant 2437*cdf0e10cSrcweir Dim bSuccess 2438*cdf0e10cSrcweir 2439*cdf0e10cSrcweir bSuccess = True 2440*cdf0e10cSrcweir startDate = Now 2441*cdf0e10cSrcweir tstart = GetTickCount() 2442*cdf0e10cSrcweir 2443*cdf0e10cSrcweir app.OleRequestPendingMsgText = GetResString(RUNBTN_RUNNING_ID) 2444*cdf0e10cSrcweir app.OleRequestPendingMsgTitle = frmWizard.Caption 2445*cdf0e10cSrcweir 2446*cdf0e10cSrcweir wordAppStr = GetInstalledApp(CAPPNAME_WORD) 2447*cdf0e10cSrcweir excelAppStr = GetInstalledApp(CAPPNAME_EXCEL) 2448*cdf0e10cSrcweir ppAppStr = GetInstalledApp(CAPPNAME_POWERPOINT) 2449*cdf0e10cSrcweir 'Write locale, version info and settings to the Application log 2450*cdf0e10cSrcweir WriteInfoToApplicationLog wordAppStr, excelAppStr, ppAppStr 2451*cdf0e10cSrcweir 2452*cdf0e10cSrcweir 'Check for template 2453*cdf0e10cSrcweir sMigrationResultsTemplatePath = fso.GetAbsolutePathName(CBASE_RESOURCE_DIR & "\" & CRESULTS_TEMPLATE_FILE) 2454*cdf0e10cSrcweir If Not CheckTemplatePath(sMigrationResultsTemplatePath, fso) Then 2455*cdf0e10cSrcweir bSuccess = False 2456*cdf0e10cSrcweir GoTo FinalExit 2457*cdf0e10cSrcweir End If 2458*cdf0e10cSrcweir 2459*cdf0e10cSrcweir 'Check for installed Apps 2460*cdf0e10cSrcweir If Not CheckInstalledApps(wordAppStr, excelAppStr, ppAppStr) Then 2461*cdf0e10cSrcweir bSuccess = False 2462*cdf0e10cSrcweir GoTo FinalExit 2463*cdf0e10cSrcweir End If 2464*cdf0e10cSrcweir 2465*cdf0e10cSrcweir If bDoPrepare Then 2466*cdf0e10cSrcweir 'Show MsgBox ( to give apps some time to quit ) 2467*cdf0e10cSrcweir Dim strMsgBox As String 2468*cdf0e10cSrcweir Dim response As Integer 2469*cdf0e10cSrcweir 2470*cdf0e10cSrcweir strMsgBox = ReplaceTopic2Tokens(GetResString(RID_STR_ENG_OTHER_PREPARE_PROMPT_PREP_ID), _ 2471*cdf0e10cSrcweir TOPIC_STR, getOutputDir & "\" & txtResultsName.Text, TOPIC2_STR, getOutputDir) 2472*cdf0e10cSrcweir strMsgBox = ReplaceTopicTokens(strMsgBox, CR_STR, Chr(13)) 2473*cdf0e10cSrcweir response = MsgBox(strMsgBox, Buttons:=vbOKCancel + vbInformation) 2474*cdf0e10cSrcweir 2475*cdf0e10cSrcweir If response <> vbOK Then 2476*cdf0e10cSrcweir bSuccess = False 2477*cdf0e10cSrcweir GoTo FinalExit 2478*cdf0e10cSrcweir End If 2479*cdf0e10cSrcweir End If 2480*cdf0e10cSrcweir 2481*cdf0e10cSrcweir 'Write Wizard Setting to Application log 2482*cdf0e10cSrcweir WriteWizardSettingsToLog mLogFilePath 2483*cdf0e10cSrcweir 2484*cdf0e10cSrcweir 'Write to Analysis ini file - used by driver docs 2485*cdf0e10cSrcweir WriteCommonParamsToLog sMigrationResultsTemplatePath, mLogFilePath, mIniFilePath, fso 2486*cdf0e10cSrcweir 2487*cdf0e10cSrcweir Screen.MousePointer = vbHourglass 2488*cdf0e10cSrcweir ' Doc Counts are setup by CheckNumberDocsToAnalyze() when user moves to Analysis Panel 2489*cdf0e10cSrcweir ' Takes account of user Options selected and inspects source directory 2490*cdf0e10cSrcweir Dim analysisAborted As Boolean 2491*cdf0e10cSrcweir analysisAborted = False 2492*cdf0e10cSrcweir 2493*cdf0e10cSrcweir SetupInputVariables mLogFilePath, fso 2494*cdf0e10cSrcweir 2495*cdf0e10cSrcweir Load ShowProgress 2496*cdf0e10cSrcweir Call ShowProgress.SP_Init(mDocFiles.WordFiles.count + _ 2497*cdf0e10cSrcweir mDocFiles.ExcelFiles.count + _ 2498*cdf0e10cSrcweir mDocFiles.PowerPointFiles.count) 2499*cdf0e10cSrcweir 2500*cdf0e10cSrcweir Dim myOffset As Long 2501*cdf0e10cSrcweir myOffset = 0 2502*cdf0e10cSrcweir If (mDocFiles.WordFiles.count > 0) Then 2503*cdf0e10cSrcweir bSuccess = AnalyseList(mDocFiles.WordFiles, "word", mIniFilePath, myOffset, analysisAborted) 2504*cdf0e10cSrcweir 'bSuccess = RunWordAnalysis(sMigrationResultsTemplatePath, mLogFilePath, fso) 2505*cdf0e10cSrcweir End If 2506*cdf0e10cSrcweir 2507*cdf0e10cSrcweir myOffset = mDocFiles.WordFiles.count 2508*cdf0e10cSrcweir If ((mDocFiles.ExcelFiles.count > 0) And (Not analysisAborted)) Then 2509*cdf0e10cSrcweir bSuccess = bSuccess And _ 2510*cdf0e10cSrcweir AnalyseList(mDocFiles.ExcelFiles, "excel", mIniFilePath, myOffset, analysisAborted) 2511*cdf0e10cSrcweir 'bSuccess = RunExcelAnalysis(sMigrationResultsTemplatePath, mLogFilePath, fso) 2512*cdf0e10cSrcweir End If 2513*cdf0e10cSrcweir 2514*cdf0e10cSrcweir myOffset = myOffset + mDocFiles.ExcelFiles.count 2515*cdf0e10cSrcweir If ((mDocFiles.PowerPointFiles.count > 0) And (Not analysisAborted)) Then 2516*cdf0e10cSrcweir bSuccess = bSuccess And _ 2517*cdf0e10cSrcweir AnalyseList(mDocFiles.PowerPointFiles, "pp", mIniFilePath, myOffset, analysisAborted) 2518*cdf0e10cSrcweir 'bSuccess = RunPPAnalysis(sMigrationResultsTemplatePath, mLogFilePath, fso) 2519*cdf0e10cSrcweir End If 2520*cdf0e10cSrcweir 2521*cdf0e10cSrcweir SetupInputVariables mLogFilePath, fso 2522*cdf0e10cSrcweir 2523*cdf0e10cSrcweir tend = GetTickCount() 2524*cdf0e10cSrcweir WriteToLog CELAPSED_TIME, (FormatNumber((tend - tstart) / 1000, 0) & " seconds: ") & _ 2525*cdf0e10cSrcweir (FormatNumber((tend - tstart), 0) & " miliseconds") 2526*cdf0e10cSrcweir 2527*cdf0e10cSrcweirFinalExit: 2528*cdf0e10cSrcweir Unload ShowProgress 2529*cdf0e10cSrcweir Screen.MousePointer = vbDefault 2530*cdf0e10cSrcweir WriteToLog CSTART_TIME, CDate(startDate) 2531*cdf0e10cSrcweir WriteToLog CEND_TIME, Now 2532*cdf0e10cSrcweir Set fso = Nothing 2533*cdf0e10cSrcweir 2534*cdf0e10cSrcweir RunAnalysis = bSuccess 2535*cdf0e10cSrcweir Exit Function 2536*cdf0e10cSrcweir 2537*cdf0e10cSrcweirHandleErrors: 2538*cdf0e10cSrcweir bSuccess = False 2539*cdf0e10cSrcweir WriteDebug currentFunctionName & " : " & Err.Number & " " & Err.Description & " " & Err.Source 2540*cdf0e10cSrcweir Resume FinalExit 2541*cdf0e10cSrcweirEnd Function 2542*cdf0e10cSrcweir 2543*cdf0e10cSrcweirFunction CheckInstalledApps(wordAppStr As String, excelAppStr As String, ppAppStr As String) As Boolean 2544*cdf0e10cSrcweir On Error GoTo HandleErrors 2545*cdf0e10cSrcweir Dim currentFunctionName As String 2546*cdf0e10cSrcweir Dim str As String 2547*cdf0e10cSrcweir currentFunctionName = "CheckInstalledApps" 2548*cdf0e10cSrcweir 2549*cdf0e10cSrcweir Dim missingInstalledApps As String 2550*cdf0e10cSrcweir Dim unsupportedApps As String 2551*cdf0e10cSrcweir Dim runningApps As String 2552*cdf0e10cSrcweir Dim bSuccess As Boolean 2553*cdf0e10cSrcweir 2554*cdf0e10cSrcweir bSuccess = False 2555*cdf0e10cSrcweir 2556*cdf0e10cSrcweir If mWordDocCount > 0 Or mWordTemplateCount > 0 Then 2557*cdf0e10cSrcweir If wordAppStr = "" Then 'Word not installed 2558*cdf0e10cSrcweir missingInstalledApps = CAPPNAME_WORD 2559*cdf0e10cSrcweir ElseIf Not CheckForSupportedApp(CAPPNAME_WORD, CSUPPORTED_VERSION) Then 2560*cdf0e10cSrcweir unsupportedApps = CAPPNAME_WORD 2561*cdf0e10cSrcweir ElseIf IsOfficeAppRunning(CAPPNAME_WORD) Then 2562*cdf0e10cSrcweir runningApps = CAPPNAME_WORD 2563*cdf0e10cSrcweir End If 2564*cdf0e10cSrcweir End If 2565*cdf0e10cSrcweir 2566*cdf0e10cSrcweir If excelAppStr = "" Then 2567*cdf0e10cSrcweir If missingInstalledApps <> "" Then missingInstalledApps = missingInstalledApps & ", " 2568*cdf0e10cSrcweir missingInstalledApps = missingInstalledApps & CAPPNAME_EXCEL 2569*cdf0e10cSrcweir ElseIf Not CheckForSupportedApp(CAPPNAME_EXCEL, CSUPPORTED_VERSION) Then 2570*cdf0e10cSrcweir If unsupportedApps <> "" Then unsupportedApps = unsupportedApps & ", " 2571*cdf0e10cSrcweir unsupportedApps = unsupportedApps & CAPPNAME_EXCEL 2572*cdf0e10cSrcweir ElseIf IsOfficeAppRunning(CAPPNAME_EXCEL) Then 2573*cdf0e10cSrcweir If runningApps <> "" Then runningApps = runningApps & ", " 2574*cdf0e10cSrcweir runningApps = runningApps & CAPPNAME_EXCEL 2575*cdf0e10cSrcweir End If 2576*cdf0e10cSrcweir 2577*cdf0e10cSrcweir If mPPDocCount > 0 Or mPPTemplateCount > 0 Then 2578*cdf0e10cSrcweir If ppAppStr = "" Then 'PP not installed 2579*cdf0e10cSrcweir If missingInstalledApps <> "" Then missingInstalledApps = missingInstalledApps & ", " 2580*cdf0e10cSrcweir missingInstalledApps = missingInstalledApps & CAPPNAME_POWERPOINT 2581*cdf0e10cSrcweir ElseIf Not CheckForSupportedApp(CAPPNAME_POWERPOINT, CSUPPORTED_VERSION) Then 2582*cdf0e10cSrcweir If unsupportedApps <> "" Then unsupportedApps = unsupportedApps & ", " 2583*cdf0e10cSrcweir unsupportedApps = unsupportedApps & CAPPNAME_POWERPOINT 2584*cdf0e10cSrcweir ElseIf IsOfficeAppRunning(CAPPNAME_POWERPOINT) Then 2585*cdf0e10cSrcweir If runningApps <> "" Then runningApps = runningApps & ", " 2586*cdf0e10cSrcweir runningApps = runningApps & CAPPNAME_POWERPOINT 2587*cdf0e10cSrcweir End If 2588*cdf0e10cSrcweir End If 2589*cdf0e10cSrcweir 2590*cdf0e10cSrcweir If missingInstalledApps <> "" Then 2591*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_NOT_INSTALLED), _ 2592*cdf0e10cSrcweir TOPIC_STR, missingInstalledApps, CR_STR, Chr(13)) 2593*cdf0e10cSrcweir WriteDebug str 2594*cdf0e10cSrcweir MsgBox str, vbCritical 2595*cdf0e10cSrcweir GoTo FinalExit 2596*cdf0e10cSrcweir End If 2597*cdf0e10cSrcweir 2598*cdf0e10cSrcweir If unsupportedApps <> "" Then 2599*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_SUPPORTED_VERSION), _ 2600*cdf0e10cSrcweir TOPIC_STR, unsupportedApps, CR_STR, Chr(13)) 2601*cdf0e10cSrcweir WriteDebug str 2602*cdf0e10cSrcweir MsgBox str, vbCritical 2603*cdf0e10cSrcweir GoTo FinalExit 2604*cdf0e10cSrcweir End If 2605*cdf0e10cSrcweir 2606*cdf0e10cSrcweir If runningApps <> "" Then 2607*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_APPLICATION_IN_USE), _ 2608*cdf0e10cSrcweir TOPIC_STR, runningApps, CR_STR, Chr(13)) 2609*cdf0e10cSrcweir WriteDebug str 2610*cdf0e10cSrcweir MsgBox str, vbCritical 2611*cdf0e10cSrcweir GoTo FinalExit 2612*cdf0e10cSrcweir End If 2613*cdf0e10cSrcweir 2614*cdf0e10cSrcweir 'Check for Excel automation server 2615*cdf0e10cSrcweir If CheckForExcel Then 2616*cdf0e10cSrcweir str = ReplaceTopicTokens(GetResString(ERR_EXCEL_OPEN), _ 2617*cdf0e10cSrcweir CR_STR, Chr(13)) 2618*cdf0e10cSrcweir WriteDebug str 2619*cdf0e10cSrcweir MsgBox str, vbCritical 2620*cdf0e10cSrcweir bSuccess = False 2621*cdf0e10cSrcweir GoTo FinalExit 2622*cdf0e10cSrcweir End If 2623*cdf0e10cSrcweir 2624*cdf0e10cSrcweir bSuccess = True 2625*cdf0e10cSrcweir 2626*cdf0e10cSrcweirFinalExit: 2627*cdf0e10cSrcweir CheckInstalledApps = bSuccess 2628*cdf0e10cSrcweir Exit Function 2629*cdf0e10cSrcweir 2630*cdf0e10cSrcweirHandleErrors: 2631*cdf0e10cSrcweir bSuccess = False 2632*cdf0e10cSrcweir WriteDebug currentFunctionName & " : " & Err.Number & " " & Err.Description & " " & Err.Source 2633*cdf0e10cSrcweir Resume FinalExit 2634*cdf0e10cSrcweirEnd Function 2635*cdf0e10cSrcweir 2636*cdf0e10cSrcweirFunction RunPPAnalysis(resultsTemplate As String, logFile As String, fsObject As FileSystemObject) As Boolean 2637*cdf0e10cSrcweir'DV: do we need this? get some error handling ideas here 2638*cdf0e10cSrcweir On Error GoTo HandleErrors 2639*cdf0e10cSrcweir Dim currentFunctionName As String 2640*cdf0e10cSrcweir currentFunctionName = "RunPPAnalysis" 2641*cdf0e10cSrcweir Const APP_PP = "PowerPoint" 2642*cdf0e10cSrcweir Dim str As String 2643*cdf0e10cSrcweir Dim bSuccess 2644*cdf0e10cSrcweir bSuccess = False 2645*cdf0e10cSrcweir 2646*cdf0e10cSrcweir If (chkPPDoc.value <> vbChecked) And (chkPPTemplate.value <> vbChecked) Then 2647*cdf0e10cSrcweir RunPPAnalysis = True 2648*cdf0e10cSrcweir Exit Function 2649*cdf0e10cSrcweir End If 2650*cdf0e10cSrcweir 2651*cdf0e10cSrcweir Dim sPPDriverDocPath As String 2652*cdf0e10cSrcweir 2653*cdf0e10cSrcweir sPPDriverDocPath = fsObject.GetAbsolutePathName(CBASE_RESOURCE_DIR & "\" & CPP_DRIVER_FILE) 2654*cdf0e10cSrcweir If Not fsObject.FileExists(sPPDriverDocPath) Then 2655*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_MISSING_PP_DRIVER), _ 2656*cdf0e10cSrcweir TOPIC_STR, sPPDriverDocPath, CR_STR, Chr(13)) 2657*cdf0e10cSrcweir WriteDebug str 2658*cdf0e10cSrcweir MsgBox str, vbCritical 2659*cdf0e10cSrcweir bSuccess = False 2660*cdf0e10cSrcweir GoTo FinalExit 2661*cdf0e10cSrcweir End If 2662*cdf0e10cSrcweir 2663*cdf0e10cSrcweir Dim pp As PowerPoint.application 2664*cdf0e10cSrcweir Dim po As Object 2665*cdf0e10cSrcweir Dim aPres As PowerPoint.Presentation 2666*cdf0e10cSrcweir Dim RegValue As Long 2667*cdf0e10cSrcweir Set po = GetObject(sPPDriverDocPath) 2668*cdf0e10cSrcweir Set pp = po.application 2669*cdf0e10cSrcweir 2670*cdf0e10cSrcweir If val(pp.Version) < CSUPPORTED_VERSION Then 2671*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_SUPPORTED_VERSION), _ 2672*cdf0e10cSrcweir TOPIC_STR, pp.Version, CR_STR, Chr(13)) 2673*cdf0e10cSrcweir WriteDebug str 2674*cdf0e10cSrcweir MsgBox str, vbCritical 2675*cdf0e10cSrcweir bSuccess = False 2676*cdf0e10cSrcweir GoTo FinalExit 2677*cdf0e10cSrcweir End If 2678*cdf0e10cSrcweir 2679*cdf0e10cSrcweir If Not CheckForAccesToPPVBProject(pp, aPres) Then 2680*cdf0e10cSrcweir RegValue = -1 2681*cdf0e10cSrcweir If Not GiveAccessToMacroProject(APP_PP, pp.Version, RegValue) Then 2682*cdf0e10cSrcweir Dim Style, response 2683*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_NO_ACCESS_TO_VBPROJECT), _ 2684*cdf0e10cSrcweir TOPIC_STR, CAPPNAME_POWERPOINT, CR_STR, Chr(13)) 2685*cdf0e10cSrcweir WriteDebug str 2686*cdf0e10cSrcweir Style = vbYesNo + vbQuestion + vbDefaultButton1 2687*cdf0e10cSrcweir 2688*cdf0e10cSrcweir response = MsgBox(str, Style) 2689*cdf0e10cSrcweir If response <> vbYes Then 2690*cdf0e10cSrcweir bSuccess = False 2691*cdf0e10cSrcweir GoTo FinalExit 2692*cdf0e10cSrcweir End If 2693*cdf0e10cSrcweir End If 2694*cdf0e10cSrcweir End If 2695*cdf0e10cSrcweir 2696*cdf0e10cSrcweir Set aPres = pp.Presentations(1) 2697*cdf0e10cSrcweir Dim ppSlideHidden As PowerPoint.Slide 2698*cdf0e10cSrcweir Set ppSlideHidden = aPres.Slides(2) 2699*cdf0e10cSrcweir 2700*cdf0e10cSrcweir 'Setup Input Variables 2701*cdf0e10cSrcweir 'SetupInputVariables resultsTemplate, logFile, fsObject, CAPPNAME_POWERPOINT 2702*cdf0e10cSrcweir 2703*cdf0e10cSrcweir 'Run PowerPoint Analysis 2704*cdf0e10cSrcweir pp.Run (fsObject.GetFileName(CBASE_RESOURCE_DIR & "\" & CPP_DRIVER_FILE) & "!AnalysisDriver.AnalyseDirectory") 2705*cdf0e10cSrcweir 2706*cdf0e10cSrcweir bSuccess = True 2707*cdf0e10cSrcweir 2708*cdf0e10cSrcweirFinalExit: 2709*cdf0e10cSrcweir 'Cannot seem to close it down from VB 2710*cdf0e10cSrcweir 'Workaround is to close it in macro 2711*cdf0e10cSrcweir ' 2712*cdf0e10cSrcweir 'If Not aPres Is Nothing Then 2713*cdf0e10cSrcweir ' aPres.Saved = msoTrue 2714*cdf0e10cSrcweir 'End If 2715*cdf0e10cSrcweir 'If Not pp Is Nothing Then pp.Quit 2716*cdf0e10cSrcweir 2717*cdf0e10cSrcweir 'Swallow error as we are closing down PP from macro 2718*cdf0e10cSrcweir 'Does not seem to be possible to close it down from VB 2719*cdf0e10cSrcweir On Error Resume Next 2720*cdf0e10cSrcweir If RegValue <> -1 Then 2721*cdf0e10cSrcweir SetDefaultRegValue APP_PP, pp.Version, RegValue 2722*cdf0e10cSrcweir End If 2723*cdf0e10cSrcweir If RegValue = 0 Then 2724*cdf0e10cSrcweir DeleteRegValue APP_PP, pp.Version 2725*cdf0e10cSrcweir End If 2726*cdf0e10cSrcweir 2727*cdf0e10cSrcweir If Not pp Is Nothing Then 2728*cdf0e10cSrcweir pp.Run (fsObject.GetFileName(CBASE_RESOURCE_DIR & "\" & CPP_DRIVER_FILE) & "!ApplicationSpecific.QuitPowerPoint") 2729*cdf0e10cSrcweir End If 2730*cdf0e10cSrcweir 2731*cdf0e10cSrcweir 2732*cdf0e10cSrcweir Set aPres = Nothing 2733*cdf0e10cSrcweir Set pp = Nothing 2734*cdf0e10cSrcweir Set po = Nothing 2735*cdf0e10cSrcweir 2736*cdf0e10cSrcweir RunPPAnalysis = bSuccess 2737*cdf0e10cSrcweir Exit Function 2738*cdf0e10cSrcweir 2739*cdf0e10cSrcweirHandleErrors: 2740*cdf0e10cSrcweir bSuccess = False 2741*cdf0e10cSrcweir Set pp = Nothing 2742*cdf0e10cSrcweir Dim failedDoc As String 2743*cdf0e10cSrcweir 2744*cdf0e10cSrcweir WriteDebug currentFunctionName & " : " & Err.Number & " " & Err.Description & " " & Err.Source 2745*cdf0e10cSrcweir 2746*cdf0e10cSrcweir failedDoc = GetDebug(CAPPNAME_POWERPOINT, CANALYZING) 2747*cdf0e10cSrcweir If failedDoc = "" Or failedDoc = CSTR_ANALYSIS_LOG_DONE Then 2748*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_AUTOMATION_FAILURE), _ 2749*cdf0e10cSrcweir TOPIC_STR, CAPPNAME_POWERPOINT, CR_STR, Chr(13)) 2750*cdf0e10cSrcweir Else 2751*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_PP_DRIVER_CRASH), _ 2752*cdf0e10cSrcweir TOPIC_STR, failedDoc, CR_STR, Chr(13)) 2753*cdf0e10cSrcweir End If 2754*cdf0e10cSrcweir 2755*cdf0e10cSrcweir WriteDebug str 2756*cdf0e10cSrcweir MsgBox str, vbCritical 2757*cdf0e10cSrcweir 2758*cdf0e10cSrcweir Resume FinalExit 2759*cdf0e10cSrcweirEnd Function 2760*cdf0e10cSrcweir 2761*cdf0e10cSrcweirSub SetupInputVariables(logFile As String, fso As FileSystemObject) 2762*cdf0e10cSrcweir Dim bNewResultsFile As Boolean 2763*cdf0e10cSrcweir 2764*cdf0e10cSrcweir bNewResultsFile = CheckCreateNewResultsFile(fso) 2765*cdf0e10cSrcweir 2766*cdf0e10cSrcweir WriteToLog CNEW_RESULTS_FILE, IIf(bNewResultsFile, "True", "False"), mIniFilePath 2767*cdf0e10cSrcweir WriteToLog CNEW_RESULTS_FILE, IIf(bNewResultsFile, "True", "False"), logFile 2768*cdf0e10cSrcweirEnd Sub 2769*cdf0e10cSrcweir 2770*cdf0e10cSrcweir 2771*cdf0e10cSrcweir 2772*cdf0e10cSrcweirFunction RunExcelAnalysis(resultsTemplate As String, logFile As String, fsObject As FileSystemObject) As Boolean 2773*cdf0e10cSrcweir On Error GoTo HandleErrors 2774*cdf0e10cSrcweir Dim currentFunctionName As String 2775*cdf0e10cSrcweir currentFunctionName = "RunExcelAnalysis" 2776*cdf0e10cSrcweir Const APP_EXCEL = "Excel" 2777*cdf0e10cSrcweir Dim str As String 2778*cdf0e10cSrcweir Dim bSuccess 2779*cdf0e10cSrcweir bSuccess = False 2780*cdf0e10cSrcweir 2781*cdf0e10cSrcweir If (chkExcelDoc.value <> vbChecked) And (chkExcelTemplate.value <> vbChecked) Then 2782*cdf0e10cSrcweir RunExcelAnalysis = True 2783*cdf0e10cSrcweir Exit Function 2784*cdf0e10cSrcweir End If 2785*cdf0e10cSrcweir 2786*cdf0e10cSrcweir Dim xl As Excel.application 2787*cdf0e10cSrcweir Dim aWb As Excel.Workbook 2788*cdf0e10cSrcweir Dim sExcelDriverDocPath As String 2789*cdf0e10cSrcweir Dim RegValue As Long 2790*cdf0e10cSrcweir 2791*cdf0e10cSrcweir sExcelDriverDocPath = fsObject.GetAbsolutePathName(CBASE_RESOURCE_DIR & "\" & CEXCEL_DRIVER_FILE) 2792*cdf0e10cSrcweir If Not fsObject.FileExists(sExcelDriverDocPath) Then 2793*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_MISSING_EXCEL_DRIVER), _ 2794*cdf0e10cSrcweir TOPIC_STR, sExcelDriverDocPath, CR_STR, Chr(13)) 2795*cdf0e10cSrcweir WriteDebug str 2796*cdf0e10cSrcweir MsgBox str, vbCritical 2797*cdf0e10cSrcweir bSuccess = False 2798*cdf0e10cSrcweir GoTo FinalExit 2799*cdf0e10cSrcweir End If 2800*cdf0e10cSrcweir 2801*cdf0e10cSrcweir Set xl = GetExcelInstance 2802*cdf0e10cSrcweir If val(xl.Version) < CSUPPORTED_VERSION Then 2803*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_SUPPORTED_VERSION), _ 2804*cdf0e10cSrcweir TOPIC_STR, xl.Version, CR_STR, Chr(13)) 2805*cdf0e10cSrcweir WriteDebug str 2806*cdf0e10cSrcweir MsgBox str, vbCritical 2807*cdf0e10cSrcweir bSuccess = False 2808*cdf0e10cSrcweir GoTo FinalExit 2809*cdf0e10cSrcweir End If 2810*cdf0e10cSrcweir 2811*cdf0e10cSrcweir If Not CheckForAccesToExcelVBProject(xl) Then 2812*cdf0e10cSrcweir RegValue = -1 2813*cdf0e10cSrcweir If Not GiveAccessToMacroProject(APP_EXCEL, xl.Version, RegValue) Then 2814*cdf0e10cSrcweir Dim Style, response 2815*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_NO_ACCESS_TO_VBPROJECT), _ 2816*cdf0e10cSrcweir TOPIC_STR, CAPPNAME_EXCEL, CR_STR, Chr(13)) 2817*cdf0e10cSrcweir WriteDebug str 2818*cdf0e10cSrcweir Style = vbYesNo + vbQuestion + vbDefaultButton1 2819*cdf0e10cSrcweir 2820*cdf0e10cSrcweir response = MsgBox(str, Style) 2821*cdf0e10cSrcweir If response <> vbYes Then 2822*cdf0e10cSrcweir bSuccess = False 2823*cdf0e10cSrcweir GoTo FinalExit 2824*cdf0e10cSrcweir End If 2825*cdf0e10cSrcweir End If 2826*cdf0e10cSrcweir End If 2827*cdf0e10cSrcweir 2828*cdf0e10cSrcweir Set aWb = xl.Workbooks.Open(fileName:=sExcelDriverDocPath) 2829*cdf0e10cSrcweir 'Setup Input Variables 2830*cdf0e10cSrcweir 'SetupInputVariables resultsTemplate, logFile, fsObject, CAPPNAME_EXCEL 2831*cdf0e10cSrcweir 2832*cdf0e10cSrcweir 'Run Excel Analysis 2833*cdf0e10cSrcweir xl.Run ("AnalysisTool.AnalysisDriver.AnalyseDirectory") 2834*cdf0e10cSrcweir 2835*cdf0e10cSrcweir bSuccess = True 2836*cdf0e10cSrcweirFinalExit: 2837*cdf0e10cSrcweir If RegValue <> -1 Then 2838*cdf0e10cSrcweir SetDefaultRegValue APP_EXCEL, xl.Version, RegValue 2839*cdf0e10cSrcweir End If 2840*cdf0e10cSrcweir If RegValue = 0 Then 2841*cdf0e10cSrcweir DeleteRegValue APP_EXCEL, xl.Version 2842*cdf0e10cSrcweir End If 2843*cdf0e10cSrcweir 2844*cdf0e10cSrcweir If Not aWb Is Nothing Then 2845*cdf0e10cSrcweir If xl.Workbooks.count = 1 Then 2846*cdf0e10cSrcweir xl.Visible = False 2847*cdf0e10cSrcweir End If 2848*cdf0e10cSrcweir aWb.Close (False) 2849*cdf0e10cSrcweir End If 2850*cdf0e10cSrcweir Set aWb = Nothing 2851*cdf0e10cSrcweir 2852*cdf0e10cSrcweir If Not xl Is Nothing Then 2853*cdf0e10cSrcweir If xl.Workbooks.count = 0 Then 2854*cdf0e10cSrcweir xl.Quit 2855*cdf0e10cSrcweir End If 2856*cdf0e10cSrcweir End If 2857*cdf0e10cSrcweir 2858*cdf0e10cSrcweir Set xl = Nothing 2859*cdf0e10cSrcweir 2860*cdf0e10cSrcweir RunExcelAnalysis = bSuccess 2861*cdf0e10cSrcweir Exit Function 2862*cdf0e10cSrcweir 2863*cdf0e10cSrcweirHandleErrors: 2864*cdf0e10cSrcweir bSuccess = False 2865*cdf0e10cSrcweir Set aWb = Nothing 2866*cdf0e10cSrcweir Set xl = Nothing 2867*cdf0e10cSrcweir Dim failedDoc As String 2868*cdf0e10cSrcweir 2869*cdf0e10cSrcweir WriteDebug currentFunctionName & " : " & Err.Number & " " & Err.Description & " " & Err.Source 2870*cdf0e10cSrcweir 2871*cdf0e10cSrcweir failedDoc = GetDebug(CAPPNAME_EXCEL, CANALYZING) 2872*cdf0e10cSrcweir If failedDoc = "" Or failedDoc = CSTR_ANALYSIS_LOG_DONE Then 2873*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_AUTOMATION_FAILURE), _ 2874*cdf0e10cSrcweir TOPIC_STR, CAPPNAME_EXCEL, CR_STR, Chr(13)) 2875*cdf0e10cSrcweir Else 2876*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_EXCEL_DRIVER_CRASH), _ 2877*cdf0e10cSrcweir TOPIC_STR, failedDoc, CR_STR, Chr(13)) 2878*cdf0e10cSrcweir End If 2879*cdf0e10cSrcweir 2880*cdf0e10cSrcweir WriteDebug str 2881*cdf0e10cSrcweir MsgBox str, vbCritical 2882*cdf0e10cSrcweir 2883*cdf0e10cSrcweir On Error Resume Next 2884*cdf0e10cSrcweir Resume FinalExit 2885*cdf0e10cSrcweirEnd Function 2886*cdf0e10cSrcweir 2887*cdf0e10cSrcweirSub WriteWizardSettingsToLog(path As String) 2888*cdf0e10cSrcweir '### DO NOT USE Boolean True/ False it is loaclised by the OS - use "True"/ "False" 2889*cdf0e10cSrcweir WriteToLog CINPUT_DIR, getInputDir, path 2890*cdf0e10cSrcweir WriteToLog CINCLUDE_SUBDIRS, IIf(chkIncludeSubdirs.value, "True", "False"), path 2891*cdf0e10cSrcweir WriteToLog COUTPUT_DIR, getOutputDir, path 2892*cdf0e10cSrcweir WriteToLog CRESULTS_FILE, txtResultsName.Text, path 2893*cdf0e10cSrcweir 2894*cdf0e10cSrcweir WriteToLog CTYPE_WORDDOC, IIf(chkWordDoc.value, "True", "False"), path 2895*cdf0e10cSrcweir WriteToLog CTYPE_WORDDOT, IIf(chkWordTemplate.value, "True", "False"), path 2896*cdf0e10cSrcweir WriteToLog CTYPE_EXCELDOC, IIf(chkExcelDoc.value, "True", "False"), path 2897*cdf0e10cSrcweir WriteToLog CTYPE_EXCELDOT, IIf(chkExcelTemplate.value, "True", "False"), path 2898*cdf0e10cSrcweir WriteToLog CTYPE_PPDOC, IIf(chkPPDoc.value, "True", "False"), path 2899*cdf0e10cSrcweir WriteToLog CTYPE_PPDOT, IIf(chkPPTemplate.value, "True", "False"), path 2900*cdf0e10cSrcweir 2901*cdf0e10cSrcweir Dim resultsSetting As String 2902*cdf0e10cSrcweir If rdbResultsPrompt.value Then 2903*cdf0e10cSrcweir resultsSetting = CPROMPT_FILE 2904*cdf0e10cSrcweir ElseIf rdbResultsAppend.value Then 2905*cdf0e10cSrcweir resultsSetting = CAPPEND_FILE 2906*cdf0e10cSrcweir Else 2907*cdf0e10cSrcweir resultsSetting = COVERWRITE_FILE 2908*cdf0e10cSrcweir End If 2909*cdf0e10cSrcweir WriteToLog CRESULTS_EXIST, resultsSetting, path 2910*cdf0e10cSrcweir 2911*cdf0e10cSrcweir WriteToLog CIGNORE_OLD_DOCS, IIf(chkIgnoreOld.value, "True", "False"), path 2912*cdf0e10cSrcweir WriteToLog CISSUE_LIMIT, CStr(mIssueLimit), path 2913*cdf0e10cSrcweir 2914*cdf0e10cSrcweir 'WriteToLog CVERSION, Version, path 2915*cdf0e10cSrcweirEnd Sub 2916*cdf0e10cSrcweir 2917*cdf0e10cSrcweirSub WriteCommonParamsToLog(resultsTemplate As String, logFile As String, path As String, fso As Scripting.FileSystemObject) 2918*cdf0e10cSrcweir WriteToLog CLOG_FILE, logFile, path 2919*cdf0e10cSrcweir WriteToLog CRESULTS_TEMPLATE, resultsTemplate, path 2920*cdf0e10cSrcweir WriteToLog CDEBUG_LEVEL, CLng(mDebugLevel), path 2921*cdf0e10cSrcweir WriteToLog CDOPREPARE, IIf(mbDoPrepare, "True", "False"), path 2922*cdf0e10cSrcweir WriteToLog CTITLE, frmWizard.Caption, path 2923*cdf0e10cSrcweir WriteToLog CLAST_CHECKPOINT, "" 2924*cdf0e10cSrcweir WriteToLog CNEXT_FILE, "" 2925*cdf0e10cSrcweir WriteToLog C_ABORT_ANALYSIS, "" 2926*cdf0e10cSrcweirEnd Sub 2927*cdf0e10cSrcweir 2928*cdf0e10cSrcweirFunction GetNumberOfDocsToAnalyze() As Long 2929*cdf0e10cSrcweir Dim count As Long 2930*cdf0e10cSrcweir 2931*cdf0e10cSrcweir count = 0 2932*cdf0e10cSrcweir 2933*cdf0e10cSrcweir If CheckWordDocsToAnalyze Then 2934*cdf0e10cSrcweir count = mWordDocCount + mWordTemplateCount 2935*cdf0e10cSrcweir End If 2936*cdf0e10cSrcweir If CheckExcelDocsToAnalyze Then 2937*cdf0e10cSrcweir count = count + mExcelDocCount + mExcelTemplateCount 2938*cdf0e10cSrcweir End If 2939*cdf0e10cSrcweir If CheckPPDocsToAnalyze Then 2940*cdf0e10cSrcweir count = count + mPPDocCount + mPPTemplateCount 2941*cdf0e10cSrcweir End If 2942*cdf0e10cSrcweir 2943*cdf0e10cSrcweir GetNumberOfDocsToAnalyze = count 2944*cdf0e10cSrcweirEnd Function 2945*cdf0e10cSrcweir 2946*cdf0e10cSrcweirFunction CheckWordDocsToAnalyze() As Boolean 2947*cdf0e10cSrcweir 2948*cdf0e10cSrcweir CheckWordDocsToAnalyze = mbDocCountCurrent And (chkWordDoc.value = vbChecked And mWordDocCount > 0) Or _ 2949*cdf0e10cSrcweir (chkWordTemplate.value = vbChecked And mWordTemplateCount > 0) 2950*cdf0e10cSrcweirEnd Function 2951*cdf0e10cSrcweir 2952*cdf0e10cSrcweirFunction CheckExcelDocsToAnalyze() As Boolean 2953*cdf0e10cSrcweir CheckExcelDocsToAnalyze = mbDocCountCurrent And (chkExcelDoc.value = vbChecked And mExcelDocCount > 0) Or _ 2954*cdf0e10cSrcweir (chkExcelTemplate.value = vbChecked And mExcelTemplateCount > 0) 2955*cdf0e10cSrcweirEnd Function 2956*cdf0e10cSrcweir 2957*cdf0e10cSrcweirFunction CheckPPDocsToAnalyze() As Boolean 2958*cdf0e10cSrcweir CheckPPDocsToAnalyze = mbDocCountCurrent And (chkPPDoc.value = vbChecked And mPPDocCount > 0) Or _ 2959*cdf0e10cSrcweir (chkPPTemplate.value = vbChecked And mPPTemplateCount > 0) 2960*cdf0e10cSrcweirEnd Function 2961*cdf0e10cSrcweir 2962*cdf0e10cSrcweirFunction CheckNumberDocsToAnalyze() As Boolean 2963*cdf0e10cSrcweir On Error GoTo HandleErrors 2964*cdf0e10cSrcweir Dim currentFunctionName As String 2965*cdf0e10cSrcweir currentFunctionName = "CheckNumberDocsToAnalyze" 2966*cdf0e10cSrcweir 2967*cdf0e10cSrcweir Set mDocFiles = New CollectedFiles 2968*cdf0e10cSrcweir 2969*cdf0e10cSrcweir Dim docSearchTypes As Collection 2970*cdf0e10cSrcweir Set docSearchTypes = New Collection 2971*cdf0e10cSrcweir 2972*cdf0e10cSrcweir mbDocCountCurrent = False 2973*cdf0e10cSrcweir 2974*cdf0e10cSrcweir SetupDocSearchTypes docSearchTypes 2975*cdf0e10cSrcweir 2976*cdf0e10cSrcweir If (cbIgnoreOld.ListIndex = 0) Then 2977*cdf0e10cSrcweir mIssueLimit = 3 2978*cdf0e10cSrcweir ElseIf (cbIgnoreOld.ListIndex = 1) Then 2979*cdf0e10cSrcweir mIssueLimit = 6 2980*cdf0e10cSrcweir Else 2981*cdf0e10cSrcweir mIssueLimit = 12 2982*cdf0e10cSrcweir End If 2983*cdf0e10cSrcweir 2984*cdf0e10cSrcweir If Not mDocFiles.Search(rootDir:=getInputDir, FileSpecs:=docSearchTypes, _ 2985*cdf0e10cSrcweir IncludeSubdirs:=IIf(chkIncludeSubdirs.value, mbTrue, mbFalse), _ 2986*cdf0e10cSrcweir ignoreOld:=IIf(chkIgnoreOld.value, mbTrue, mbFalse), Months:=mIssueLimit) Then 2987*cdf0e10cSrcweir CheckNumberDocsToAnalyze = False 2988*cdf0e10cSrcweir GoTo FinalExit 2989*cdf0e10cSrcweir End If 2990*cdf0e10cSrcweir 2991*cdf0e10cSrcweir SetDocCountsFromFileSearch mDocFiles 2992*cdf0e10cSrcweir WriteFileDateCountsToLog mDocFiles 2993*cdf0e10cSrcweir 2994*cdf0e10cSrcweir 'WriteDocsToAnalyzeToLog mDocFiles 'UNCOMMENT Recovery - want to list out files to analyze 2995*cdf0e10cSrcweir 2996*cdf0e10cSrcweir mbDocCountCurrent = True 2997*cdf0e10cSrcweir 2998*cdf0e10cSrcweir lblNumDocs.Caption = ReplaceTopicTokens(GetResString(ANALYZE_DOCUMENTS_ID), TOPIC_STR, _ 2999*cdf0e10cSrcweir CStr(mWordDocCount)) 3000*cdf0e10cSrcweir lblNumTemplates.Caption = ReplaceTopicTokens(GetResString(ANALYZE_TEMPLATES_ID), TOPIC_STR, _ 3001*cdf0e10cSrcweir CStr(mWordTemplateCount)) 3002*cdf0e10cSrcweir 3003*cdf0e10cSrcweir lblNumXLS.Caption = ReplaceTopicTokens(GetResString(ANALYZE_DOCUMENTS_XLS_ID), TOPIC_STR, _ 3004*cdf0e10cSrcweir CStr(mExcelDocCount)) 3005*cdf0e10cSrcweir lblNumXLT.Caption = ReplaceTopicTokens(GetResString(ANALYZE_TEMPLATES_ID), TOPIC_STR, _ 3006*cdf0e10cSrcweir CStr(mExcelTemplateCount)) 3007*cdf0e10cSrcweir 3008*cdf0e10cSrcweir lblNumPPT.Caption = ReplaceTopicTokens(GetResString(ANALYZE_DOCUMENTS_PPT_ID), TOPIC_STR, _ 3009*cdf0e10cSrcweir CStr(mPPDocCount)) 3010*cdf0e10cSrcweir lblNumPOT.Caption = ReplaceTopicTokens(GetResString(ANALYZE_TEMPLATES_ID), TOPIC_STR, _ 3011*cdf0e10cSrcweir CStr(mPPTemplateCount)) 3012*cdf0e10cSrcweir 3013*cdf0e10cSrcweir lblTotalNumDocs.Caption = ReplaceTopicTokens(GetResString(ANALYZE_TOTAL_NUM_DOCS_ID), TOPIC_STR, _ 3014*cdf0e10cSrcweir CStr(mTotalDocCount)) 3015*cdf0e10cSrcweir 3016*cdf0e10cSrcweir If (mIgnoredDocCount > 0) Then 3017*cdf0e10cSrcweir lblSkippedOld.Caption = ReplaceTopicTokens(GetResString(RID_STR_ENG_ANALYZE_IGNORED_DOCS_ID), _ 3018*cdf0e10cSrcweir TOPIC_STR, CStr(mIgnoredDocCount)) 3019*cdf0e10cSrcweir lblSkippedOld.Visible = True 3020*cdf0e10cSrcweir Else 3021*cdf0e10cSrcweir lblSkippedOld.Visible = False 3022*cdf0e10cSrcweir End If 3023*cdf0e10cSrcweir 3024*cdf0e10cSrcweir CheckNumberDocsToAnalyze = True 3025*cdf0e10cSrcweir 3026*cdf0e10cSrcweirFinalExit: 3027*cdf0e10cSrcweir Set docSearchTypes = Nothing 3028*cdf0e10cSrcweir Exit Function 3029*cdf0e10cSrcweir 3030*cdf0e10cSrcweirHandleErrors: 3031*cdf0e10cSrcweir WriteDebug currentFunctionName & " : " & Err.Number & " " & Err.Description & " " & Err.Source 3032*cdf0e10cSrcweir Resume FinalExit 3033*cdf0e10cSrcweirEnd Function 3034*cdf0e10cSrcweir 3035*cdf0e10cSrcweirSub SetDocCountsFromFileSearch(myDocFiles As CollectedFiles) 3036*cdf0e10cSrcweir 'No Error handling required 3037*cdf0e10cSrcweir mWordDocCount = myDocFiles.DocCount 3038*cdf0e10cSrcweir mWordTemplateCount = myDocFiles.DotCount 3039*cdf0e10cSrcweir mExcelDocCount = myDocFiles.XlsCount 3040*cdf0e10cSrcweir mExcelTemplateCount = myDocFiles.XltCount 3041*cdf0e10cSrcweir mPPDocCount = myDocFiles.PptCount 3042*cdf0e10cSrcweir mPPTemplateCount = myDocFiles.PotCount 3043*cdf0e10cSrcweir mTotalDocCount = mWordDocCount + mWordTemplateCount + mExcelDocCount + mExcelTemplateCount + _ 3044*cdf0e10cSrcweir mPPDocCount + mPPTemplateCount 3045*cdf0e10cSrcweir mIgnoredDocCount = myDocFiles.IgnoredDocCount 3046*cdf0e10cSrcweirEnd Sub 3047*cdf0e10cSrcweir 3048*cdf0e10cSrcweirSub SetupDocSearchTypes(docSearchTypes As Collection) 3049*cdf0e10cSrcweir 'No Error handling required 3050*cdf0e10cSrcweir If chkWordDoc.value Then docSearchTypes.add ("*.doc") 3051*cdf0e10cSrcweir If chkWordTemplate.value Then docSearchTypes.add ("*.dot") 3052*cdf0e10cSrcweir If chkExcelDoc.value Then docSearchTypes.add ("*.xls") 3053*cdf0e10cSrcweir If chkExcelTemplate.value Then docSearchTypes.add ("*.xlt") 3054*cdf0e10cSrcweir If chkPPDoc.value Then docSearchTypes.add ("*.ppt") 3055*cdf0e10cSrcweir If chkPPTemplate.value Then docSearchTypes.add ("*.pot") 3056*cdf0e10cSrcweirEnd Sub 3057*cdf0e10cSrcweir 3058*cdf0e10cSrcweirSub WriteDocsToAnalyzeToLog(myDocFiles As CollectedFiles) 3059*cdf0e10cSrcweir On Error GoTo HandleErrors 3060*cdf0e10cSrcweir Dim currentFunctionName As String 3061*cdf0e10cSrcweir currentFunctionName = "WriteDocsToAnalyzeToLog" 3062*cdf0e10cSrcweir 3063*cdf0e10cSrcweir Dim vFileName As Variant 3064*cdf0e10cSrcweir Dim Index As Long 3065*cdf0e10cSrcweir Dim limit As Long 3066*cdf0e10cSrcweir limit = myDocFiles.WordFiles.count 3067*cdf0e10cSrcweir For Index = 1 To limit 3068*cdf0e10cSrcweir vFileName = myDocFiles.WordFiles(Index) 3069*cdf0e10cSrcweir WriteToLog "Doc" & Index, CStr(vFileName), section:=(WIZARD_NAME & "ListFor" & CAPPNAME_WORD) 3070*cdf0e10cSrcweir Next 3071*cdf0e10cSrcweir limit = myDocFiles.ExcelFiles.count 3072*cdf0e10cSrcweir For Index = 1 To limit 3073*cdf0e10cSrcweir vFileName = myDocFiles.ExcelFiles(Index) 3074*cdf0e10cSrcweir WriteToLog "Doc" & Index, CStr(vFileName), section:=(WIZARD_NAME & "ListFor" & CAPPNAME_EXCEL) 3075*cdf0e10cSrcweir Next 3076*cdf0e10cSrcweir limit = myDocFiles.PowerPointFiles.count 3077*cdf0e10cSrcweir For Index = 1 To limit 3078*cdf0e10cSrcweir vFileName = myDocFiles.PowerPointFiles(Index) 3079*cdf0e10cSrcweir WriteToLog "Doc" & Index, CStr(vFileName), section:=(WIZARD_NAME & "ListFor" & CAPPNAME_POWERPOINT) 3080*cdf0e10cSrcweir Next 3081*cdf0e10cSrcweir 3082*cdf0e10cSrcweirFinalExit: 3083*cdf0e10cSrcweir Exit Sub 3084*cdf0e10cSrcweirHandleErrors: 3085*cdf0e10cSrcweir WriteDebug currentFunctionName & " : " & Err.Number & " " & Err.Description & " " & Err.Source 3086*cdf0e10cSrcweir Resume FinalExit 3087*cdf0e10cSrcweirEnd Sub 3088*cdf0e10cSrcweir 3089*cdf0e10cSrcweirSub WriteFileDateCountsToLog(myDocFiles As CollectedFiles) 3090*cdf0e10cSrcweir On Error GoTo HandleErrors 3091*cdf0e10cSrcweir Dim currentFunctionName As String 3092*cdf0e10cSrcweir currentFunctionName = "WriteFileDateCountsToLog" 3093*cdf0e10cSrcweir 3094*cdf0e10cSrcweir WriteToLog C_DOCS_LESS_3_MONTH, CStr(myDocFiles.DocsLessThan3Months), mIniFilePath 3095*cdf0e10cSrcweir WriteToLog C_DOCS_LESS_6_MONTH, CStr(myDocFiles.DocsLessThan6Months), mIniFilePath 3096*cdf0e10cSrcweir WriteToLog C_DOCS_LESS_12_MONTH, CStr(myDocFiles.DocsLessThan12Months), mIniFilePath 3097*cdf0e10cSrcweir WriteToLog C_DOCS_MORE_12_MONTH, CStr(myDocFiles.DocsMoreThan12Months), mIniFilePath 3098*cdf0e10cSrcweir 3099*cdf0e10cSrcweirFinalExit: 3100*cdf0e10cSrcweir Exit Sub 3101*cdf0e10cSrcweirHandleErrors: 3102*cdf0e10cSrcweir WriteDebug currentFunctionName & " : " & Err.Number & " " & Err.Description & " " & Err.Source 3103*cdf0e10cSrcweir Resume FinalExit 3104*cdf0e10cSrcweirEnd Sub 3105*cdf0e10cSrcweir 3106*cdf0e10cSrcweir 3107*cdf0e10cSrcweirFunction RunWordAnalysis(resultsTemplate As String, logFile As String, fsObject As FileSystemObject) As Boolean 3108*cdf0e10cSrcweir On Error GoTo HandleErrors 3109*cdf0e10cSrcweir Dim currentFunctionName As String 3110*cdf0e10cSrcweir currentFunctionName = "RunWordAnalysis" 3111*cdf0e10cSrcweir Const APP_WORD = "Word" 3112*cdf0e10cSrcweir Dim str As String 3113*cdf0e10cSrcweir Dim bSuccess 3114*cdf0e10cSrcweir bSuccess = False 3115*cdf0e10cSrcweir 3116*cdf0e10cSrcweir Dim wrd As Word.application 3117*cdf0e10cSrcweir Dim aDoc As Word.Document 3118*cdf0e10cSrcweir Dim sWordDriverDocPath As String 3119*cdf0e10cSrcweir Dim RegValue As Long 3120*cdf0e10cSrcweir 3121*cdf0e10cSrcweir If (chkWordDoc.value <> vbChecked) And (chkWordTemplate.value <> vbChecked) Then 3122*cdf0e10cSrcweir 'No Word doc filters selected 3123*cdf0e10cSrcweir RunWordAnalysis = True 3124*cdf0e10cSrcweir Exit Function 3125*cdf0e10cSrcweir End If 3126*cdf0e10cSrcweir 3127*cdf0e10cSrcweir sWordDriverDocPath = fsObject.GetAbsolutePathName(CBASE_RESOURCE_DIR & "\" & CWORD_DRIVER_FILE) 3128*cdf0e10cSrcweir If Not fsObject.FileExists(sWordDriverDocPath) Then 3129*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_MISSING_WORD_DRIVER), _ 3130*cdf0e10cSrcweir TOPIC_STR, sWordDriverDocPath, CR_STR, Chr(13)) 3131*cdf0e10cSrcweir WriteDebug str 3132*cdf0e10cSrcweir MsgBox str, vbCritical 3133*cdf0e10cSrcweir bSuccess = False 3134*cdf0e10cSrcweir GoTo FinalExit 3135*cdf0e10cSrcweir End If 3136*cdf0e10cSrcweir 3137*cdf0e10cSrcweir Set wrd = New Word.application 3138*cdf0e10cSrcweir If val(wrd.Version) < CSUPPORTED_VERSION Then 3139*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_SUPPORTED_VERSION), _ 3140*cdf0e10cSrcweir TOPIC_STR, wrd.Version, CR_STR, Chr(13)) 3141*cdf0e10cSrcweir WriteDebug str 3142*cdf0e10cSrcweir MsgBox str, vbCritical 3143*cdf0e10cSrcweir bSuccess = False 3144*cdf0e10cSrcweir GoTo FinalExit 3145*cdf0e10cSrcweir End If 3146*cdf0e10cSrcweir 3147*cdf0e10cSrcweir If Not CheckForAccesToWordVBProject(wrd) Then 3148*cdf0e10cSrcweir RegValue = -1 3149*cdf0e10cSrcweir If Not GiveAccessToMacroProject(APP_WORD, wrd.Version, RegValue) Then 3150*cdf0e10cSrcweir Dim Style, response 3151*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_NO_ACCESS_TO_VBPROJECT), _ 3152*cdf0e10cSrcweir TOPIC_STR, CAPPNAME_WORD, CR_STR, Chr(13)) 3153*cdf0e10cSrcweir WriteDebug str 3154*cdf0e10cSrcweir Style = vbYesNo + vbQuestion + vbDefaultButton1 3155*cdf0e10cSrcweir 3156*cdf0e10cSrcweir response = MsgBox(str, Style) 3157*cdf0e10cSrcweir If response <> vbYes Then 3158*cdf0e10cSrcweir bSuccess = False 3159*cdf0e10cSrcweir GoTo FinalExit 3160*cdf0e10cSrcweir End If 3161*cdf0e10cSrcweir End If 3162*cdf0e10cSrcweir End If 3163*cdf0e10cSrcweir 3164*cdf0e10cSrcweir Set aDoc = wrd.Documents.Open(fileName:=sWordDriverDocPath) 3165*cdf0e10cSrcweir 'Clear out any doc vars 3166*cdf0e10cSrcweir Dim MyObj As Variable 3167*cdf0e10cSrcweir For Each MyObj In aDoc.Variables 3168*cdf0e10cSrcweir MyObj.Delete 3169*cdf0e10cSrcweir Next 3170*cdf0e10cSrcweir 3171*cdf0e10cSrcweir 'Setup Input Variables 3172*cdf0e10cSrcweir 'SetupInputVariables resultsTemplate, logFile, fsObject, CAPPNAME_WORD 3173*cdf0e10cSrcweir 3174*cdf0e10cSrcweir wrd.Run ("AnalysisTool.AnalysisDriver.AnalyseDirectory") 3175*cdf0e10cSrcweir 3176*cdf0e10cSrcweir wrd.Visible = False 3177*cdf0e10cSrcweir bSuccess = True 3178*cdf0e10cSrcweir 3179*cdf0e10cSrcweirFinalExit: 3180*cdf0e10cSrcweir If RegValue <> -1 Then 3181*cdf0e10cSrcweir SetDefaultRegValue APP_WORD, wrd.Version, RegValue 3182*cdf0e10cSrcweir End If 3183*cdf0e10cSrcweir If RegValue = 0 Then 3184*cdf0e10cSrcweir DeleteRegValue APP_WORD, wrd.Version 3185*cdf0e10cSrcweir End If 3186*cdf0e10cSrcweir If Not aDoc Is Nothing Then aDoc.Close (False) 3187*cdf0e10cSrcweir Set aDoc = Nothing 3188*cdf0e10cSrcweir 3189*cdf0e10cSrcweir If Not wrd Is Nothing Then wrd.Quit (False) 3190*cdf0e10cSrcweir Set wrd = Nothing 3191*cdf0e10cSrcweir 3192*cdf0e10cSrcweir RunWordAnalysis = bSuccess 3193*cdf0e10cSrcweir Exit Function 3194*cdf0e10cSrcweir 3195*cdf0e10cSrcweirHandleErrors: 3196*cdf0e10cSrcweir On Error Resume Next 3197*cdf0e10cSrcweir 3198*cdf0e10cSrcweir bSuccess = False 3199*cdf0e10cSrcweir Set aDoc = Nothing 3200*cdf0e10cSrcweir Set wrd = Nothing 3201*cdf0e10cSrcweir 3202*cdf0e10cSrcweir Dim failedDoc As String 3203*cdf0e10cSrcweir 3204*cdf0e10cSrcweir WriteDebug currentFunctionName & " : " & Err.Number & " " & Err.Description & " " & Err.Source 3205*cdf0e10cSrcweir 3206*cdf0e10cSrcweir failedDoc = GetDebug(CAPPNAME_WORD, CANALYZING) 3207*cdf0e10cSrcweir If failedDoc = "" Or failedDoc = CSTR_ANALYSIS_LOG_DONE Then 3208*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_AUTOMATION_FAILURE), _ 3209*cdf0e10cSrcweir TOPIC_STR, CAPPNAME_WORD, CR_STR, Chr(13)) 3210*cdf0e10cSrcweir Else 3211*cdf0e10cSrcweir str = ReplaceTopic2Tokens(GetResString(ERR_WORD_DRIVER_CRASH), _ 3212*cdf0e10cSrcweir TOPIC_STR, failedDoc, CR_STR, Chr(13)) 3213*cdf0e10cSrcweir End If 3214*cdf0e10cSrcweir 3215*cdf0e10cSrcweir WriteDebug str 3216*cdf0e10cSrcweir MsgBox str, vbCritical 3217*cdf0e10cSrcweir 3218*cdf0e10cSrcweir Resume FinalExit 3219*cdf0e10cSrcweirEnd Function 3220*cdf0e10cSrcweir 3221*cdf0e10cSrcweirFunction stripLastBackslash(inputStr As String) As String 3222*cdf0e10cSrcweir Const MIN_DIR_SIZE = 3 3223*cdf0e10cSrcweir On Error GoTo HandleErrors 3224*cdf0e10cSrcweir Dim currentFunctionName As String 3225*cdf0e10cSrcweir currentFunctionName = "stripLastBackslash" 3226*cdf0e10cSrcweir 3227*cdf0e10cSrcweir If Len(inputStr) > MIN_DIR_SIZE Then 3228*cdf0e10cSrcweir Dim lastStrChar As String 3229*cdf0e10cSrcweir lastStrChar = Right(inputStr, 1) 3230*cdf0e10cSrcweir If lastStrChar = "\" Then 3231*cdf0e10cSrcweir inputStr = Left(inputStr, Len(inputStr) - 1) 3232*cdf0e10cSrcweir End If 3233*cdf0e10cSrcweir End If 3234*cdf0e10cSrcweir stripLastBackslash = inputStr 3235*cdf0e10cSrcweir 3236*cdf0e10cSrcweir Exit Function 3237*cdf0e10cSrcweir 3238*cdf0e10cSrcweirHandleErrors: 3239*cdf0e10cSrcweir WriteDebug currentFunctionName & " : " & Err.Number & " " & Err.Description & " " & Err.Source 3240*cdf0e10cSrcweir stripLastBackslash = inputStr 3241*cdf0e10cSrcweirEnd Function 3242*cdf0e10cSrcweir 3243*cdf0e10cSrcweirFunction getInputDir() As String 3244*cdf0e10cSrcweir getInputDir = stripLastBackslash(txtInputDir.Text) 3245*cdf0e10cSrcweirEnd Function 3246*cdf0e10cSrcweir 3247*cdf0e10cSrcweirFunction getOutputDir() As String 3248*cdf0e10cSrcweir Dim tmpStr As String 3249*cdf0e10cSrcweir 3250*cdf0e10cSrcweir tmpStr = stripLastBackslash(txtOutputDir.Text) 3251*cdf0e10cSrcweir 3252*cdf0e10cSrcweir 'Bug when specifying C:\ 3253*cdf0e10cSrcweir If tmpStr <> "" Then 3254*cdf0e10cSrcweir If Right(tmpStr, 1) = "\" Then 3255*cdf0e10cSrcweir tmpStr = Left(tmpStr, Len(tmpStr) - 1) 3256*cdf0e10cSrcweir End If 3257*cdf0e10cSrcweir End If 3258*cdf0e10cSrcweir getOutputDir = tmpStr 3259*cdf0e10cSrcweirEnd Function 3260*cdf0e10cSrcweir 3261*cdf0e10cSrcweirFunction CheckCreateNewResultsFile(fsObject As FileSystemObject) As Boolean 3262*cdf0e10cSrcweir If Not fsObject.FileExists(getOutputDir & "\" & txtResultsName.Text) Then 3263*cdf0e10cSrcweir 'No Results File - Create it 3264*cdf0e10cSrcweir CheckCreateNewResultsFile = True 3265*cdf0e10cSrcweir ElseIf rdbResultsAppend.value Then 3266*cdf0e10cSrcweir 'Results File exists and user wants to append to it 3267*cdf0e10cSrcweir CheckCreateNewResultsFile = False 3268*cdf0e10cSrcweir Else 3269*cdf0e10cSrcweir 'Results File exists and user has elected not to append 3270*cdf0e10cSrcweir CheckCreateNewResultsFile = True 3271*cdf0e10cSrcweir End If 3272*cdf0e10cSrcweirEnd Function 3273*cdf0e10cSrcweir 3274*cdf0e10cSrcweirSub DeleteFile(file As String) 3275*cdf0e10cSrcweir On Error GoTo HandleErrors 3276*cdf0e10cSrcweir Dim currentFunctionName As String 3277*cdf0e10cSrcweir currentFunctionName = "DeleteFile" 3278*cdf0e10cSrcweir Dim fso As Scripting.FileSystemObject 3279*cdf0e10cSrcweir Set fso = New Scripting.FileSystemObject 3280*cdf0e10cSrcweir Dim filePath As String 3281*cdf0e10cSrcweir 3282*cdf0e10cSrcweir filePath = fso.GetAbsolutePathName(file) 3283*cdf0e10cSrcweir If fso.FileExists(filePath) Then 3284*cdf0e10cSrcweir fso.DeleteFile filePath, True 3285*cdf0e10cSrcweir End If 3286*cdf0e10cSrcweir 3287*cdf0e10cSrcweirFinalExit: 3288*cdf0e10cSrcweir Set fso = Nothing 3289*cdf0e10cSrcweir Exit Sub 3290*cdf0e10cSrcweir 3291*cdf0e10cSrcweirHandleErrors: 3292*cdf0e10cSrcweir WriteDebug currentFunctionName & " : " & Err.Number & " " & Err.Description & " " & Err.Source 3293*cdf0e10cSrcweir Resume FinalExit 3294*cdf0e10cSrcweirEnd Sub 3295*cdf0e10cSrcweir 3296*cdf0e10cSrcweirPublic Property Get Version() As String 3297*cdf0e10cSrcweir Version = app.Major & "." & app.Minor & "." & app.Revision 3298*cdf0e10cSrcweirEnd Property 3299*cdf0e10cSrcweir 3300*cdf0e10cSrcweirFunction GetExcelInstance() As Excel.application 3301*cdf0e10cSrcweir Dim xl As Excel.application 3302*cdf0e10cSrcweir On Error Resume Next 3303*cdf0e10cSrcweir 'Try and get an existing instance 3304*cdf0e10cSrcweir Set xl = GetObject(, "Excel.Application") 3305*cdf0e10cSrcweir If Err.Number = 429 Then 3306*cdf0e10cSrcweir Set xl = CreateObject("Excel.Application") 3307*cdf0e10cSrcweir ElseIf Err.Number <> 0 Then 3308*cdf0e10cSrcweir Set xl = Nothing 3309*cdf0e10cSrcweir MsgBox "Error: " & Err.Description 3310*cdf0e10cSrcweir Exit Function 3311*cdf0e10cSrcweir End If 3312*cdf0e10cSrcweir Set GetExcelInstance = xl 3313*cdf0e10cSrcweir Set xl = Nothing 3314*cdf0e10cSrcweirEnd Function 3315*cdf0e10cSrcweir 3316*cdf0e10cSrcweirFunction CheckForAnalysisResultsWorkbook(analysisResultsName As String) As Boolean 3317*cdf0e10cSrcweir On Error GoTo HandleErrors 3318*cdf0e10cSrcweir Dim currentFunctionName As String 3319*cdf0e10cSrcweir currentFunctionName = "CheckForAnalysisResultsWorkbook" 3320*cdf0e10cSrcweir 3321*cdf0e10cSrcweir CheckForAnalysisResultsWorkbook = False 3322*cdf0e10cSrcweir 3323*cdf0e10cSrcweir Dim xl As Excel.application 3324*cdf0e10cSrcweir Set xl = GetExcelInstance 3325*cdf0e10cSrcweir 3326*cdf0e10cSrcweir Dim aWb As Excel.Workbook 3327*cdf0e10cSrcweir For Each aWb In xl.Workbooks 3328*cdf0e10cSrcweir 3329*cdf0e10cSrcweir If aWb.Name = analysisResultsName Then 3330*cdf0e10cSrcweir CheckForAnalysisResultsWorkbook = True 3331*cdf0e10cSrcweir Exit For 3332*cdf0e10cSrcweir End If 3333*cdf0e10cSrcweir Next aWb 3334*cdf0e10cSrcweir 3335*cdf0e10cSrcweirFinalExit: 3336*cdf0e10cSrcweir If Not xl Is Nothing Then 3337*cdf0e10cSrcweir If xl.Workbooks.count = 0 Then 3338*cdf0e10cSrcweir xl.Quit 3339*cdf0e10cSrcweir End If 3340*cdf0e10cSrcweir End If 3341*cdf0e10cSrcweir 3342*cdf0e10cSrcweir Set xl = Nothing 3343*cdf0e10cSrcweir 3344*cdf0e10cSrcweir Exit Function 3345*cdf0e10cSrcweir 3346*cdf0e10cSrcweirHandleErrors: 3347*cdf0e10cSrcweir Set xl = Nothing 3348*cdf0e10cSrcweir 3349*cdf0e10cSrcweir WriteDebug currentFunctionName & " : " & Err.Number & " " & Err.Description & " " & Err.Source 3350*cdf0e10cSrcweir Resume FinalExit 3351*cdf0e10cSrcweirEnd Function 3352*cdf0e10cSrcweir 3353*cdf0e10cSrcweirFunction CheckForExcel() As Boolean 3354*cdf0e10cSrcweir On Error GoTo HandleErrors 3355*cdf0e10cSrcweir Dim currentFunctionName As String 3356*cdf0e10cSrcweir currentFunctionName = "CheckForExcel" 3357*cdf0e10cSrcweir 3358*cdf0e10cSrcweir CheckForExcel = False 3359*cdf0e10cSrcweir 3360*cdf0e10cSrcweir Dim xl As Excel.application 3361*cdf0e10cSrcweir Set xl = GetExcelInstance 3362*cdf0e10cSrcweir 3363*cdf0e10cSrcweir 3364*cdf0e10cSrcweir If xl.Workbooks.count > 0 Then 3365*cdf0e10cSrcweir CheckForExcel = True 3366*cdf0e10cSrcweir End If 3367*cdf0e10cSrcweir 3368*cdf0e10cSrcweirFinalExit: 3369*cdf0e10cSrcweir If Not xl Is Nothing Then 3370*cdf0e10cSrcweir If xl.Workbooks.count = 0 Then 3371*cdf0e10cSrcweir xl.Quit 3372*cdf0e10cSrcweir End If 3373*cdf0e10cSrcweir End If 3374*cdf0e10cSrcweir 3375*cdf0e10cSrcweir Set xl = Nothing 3376*cdf0e10cSrcweir 3377*cdf0e10cSrcweir Exit Function 3378*cdf0e10cSrcweir 3379*cdf0e10cSrcweirHandleErrors: 3380*cdf0e10cSrcweir Set xl = Nothing 3381*cdf0e10cSrcweir 3382*cdf0e10cSrcweir WriteDebug currentFunctionName & " : " & Err.Number & " " & Err.Description & " " & Err.Source 3383*cdf0e10cSrcweir Resume FinalExit 3384*cdf0e10cSrcweirEnd Function 3385*cdf0e10cSrcweir 3386*cdf0e10cSrcweirPublic Function GetIniSetting(key As String) As String 3387*cdf0e10cSrcweir 3388*cdf0e10cSrcweir If mIniFilePath = "" Or key = "" Then Exit Function 3389*cdf0e10cSrcweir 3390*cdf0e10cSrcweir GetIniSetting = ProfileGetItem(WIZARD_NAME, key, "", mIniFilePath) 3391*cdf0e10cSrcweirEnd Function 3392*cdf0e10cSrcweir 3393*cdf0e10cSrcweirSub WriteIniSetting(key As String, value As String) 3394*cdf0e10cSrcweir 3395*cdf0e10cSrcweir If mIniFilePath = "" Or key = "" Then Exit Sub 3396*cdf0e10cSrcweir 3397*cdf0e10cSrcweir Call WritePrivateProfileString(WIZARD_NAME, key, value, mIniFilePath) 3398*cdf0e10cSrcweirEnd Sub 3399*cdf0e10cSrcweir 3400*cdf0e10cSrcweirPrivate Sub lblSetupComplete_Click(Index As Integer) 3401*cdf0e10cSrcweir 3402*cdf0e10cSrcweirEnd Sub 3403*cdf0e10cSrcweir 3404*cdf0e10cSrcweirPrivate Function CheckNeededFiles(missingFile As String) As Boolean 3405*cdf0e10cSrcweir 3406*cdf0e10cSrcweir Dim fso As New FileSystemObject 3407*cdf0e10cSrcweir Dim filePath As String 3408*cdf0e10cSrcweir 3409*cdf0e10cSrcweir CheckNeededFiles = False 3410*cdf0e10cSrcweir filePath = fso.GetAbsolutePathName(CBASE_RESOURCE_DIR & "\" & CWORD_DRIVER_FILE) 3411*cdf0e10cSrcweir If Not fso.FileExists(filePath) Then 3412*cdf0e10cSrcweir missingFile = filePath 3413*cdf0e10cSrcweir Exit Function 3414*cdf0e10cSrcweir End If 3415*cdf0e10cSrcweir 3416*cdf0e10cSrcweir filePath = fso.GetAbsolutePathName(CBASE_RESOURCE_DIR & "\" & CEXCEL_DRIVER_FILE) 3417*cdf0e10cSrcweir If Not fso.FileExists(filePath) Then 3418*cdf0e10cSrcweir missingFile = filePath 3419*cdf0e10cSrcweir Exit Function 3420*cdf0e10cSrcweir End If 3421*cdf0e10cSrcweir 3422*cdf0e10cSrcweir filePath = fso.GetAbsolutePathName(CBASE_RESOURCE_DIR & "\" & CPP_DRIVER_FILE) 3423*cdf0e10cSrcweir If Not fso.FileExists(filePath) Then 3424*cdf0e10cSrcweir missingFile = filePath 3425*cdf0e10cSrcweir Exit Function 3426*cdf0e10cSrcweir End If 3427*cdf0e10cSrcweir 3428*cdf0e10cSrcweir filePath = fso.GetAbsolutePathName(CBASE_RESOURCE_DIR & "\" & CLAUNCH_DRIVERS_EXE) 3429*cdf0e10cSrcweir If Not fso.FileExists(filePath) Then 3430*cdf0e10cSrcweir missingFile = filePath 3431*cdf0e10cSrcweir Exit Function 3432*cdf0e10cSrcweir End If 3433*cdf0e10cSrcweir 3434*cdf0e10cSrcweir filePath = fso.GetAbsolutePathName(CBASE_RESOURCE_DIR & "\" & CMSO_KILL_EXE) 3435*cdf0e10cSrcweir If Not fso.FileExists(filePath) Then 3436*cdf0e10cSrcweir missingFile = filePath 3437*cdf0e10cSrcweir Exit Function 3438*cdf0e10cSrcweir End If 3439*cdf0e10cSrcweir 3440*cdf0e10cSrcweir filePath = fso.GetAbsolutePathName(CBASE_RESOURCE_DIR & "\" & CRESULTS_TEMPLATE_FILE) 3441*cdf0e10cSrcweir If Not fso.FileExists(filePath) Then 3442*cdf0e10cSrcweir missingFile = filePath 3443*cdf0e10cSrcweir Exit Function 3444*cdf0e10cSrcweir End If 3445*cdf0e10cSrcweir 3446*cdf0e10cSrcweir filePath = fso.GetAbsolutePathName(CBASE_RESOURCE_DIR & "\" & CRESOURCE_DLL) 3447*cdf0e10cSrcweir If Not fso.FileExists(filePath) Then 3448*cdf0e10cSrcweir missingFile = filePath 3449*cdf0e10cSrcweir Exit Function 3450*cdf0e10cSrcweir End If 3451*cdf0e10cSrcweir 3452*cdf0e10cSrcweir CheckNeededFiles = True 3453*cdf0e10cSrcweirEnd Function 3454