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