1*d4a3fa4bSAndrew Rist'*************************************************************************
2*d4a3fa4bSAndrew Rist'
3*d4a3fa4bSAndrew Rist'  Licensed to the Apache Software Foundation (ASF) under one
4*d4a3fa4bSAndrew Rist'  or more contributor license agreements.  See the NOTICE file
5*d4a3fa4bSAndrew Rist'  distributed with this work for additional information
6*d4a3fa4bSAndrew Rist'  regarding copyright ownership.  The ASF licenses this file
7*d4a3fa4bSAndrew Rist'  to you under the Apache License, Version 2.0 (the
8*d4a3fa4bSAndrew Rist'  "License"); you may not use this file except in compliance
9*d4a3fa4bSAndrew Rist'  with the License.  You may obtain a copy of the License at
10*d4a3fa4bSAndrew Rist'
11*d4a3fa4bSAndrew Rist'    http://www.apache.org/licenses/LICENSE-2.0
12*d4a3fa4bSAndrew Rist'
13*d4a3fa4bSAndrew Rist'  Unless required by applicable law or agreed to in writing,
14*d4a3fa4bSAndrew Rist'  software distributed under the License is distributed on an
15*d4a3fa4bSAndrew Rist'  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d4a3fa4bSAndrew Rist'  KIND, either express or implied.  See the License for the
17*d4a3fa4bSAndrew Rist'  specific language governing permissions and limitations
18*d4a3fa4bSAndrew Rist'  under the License.
19*d4a3fa4bSAndrew Rist'
20*d4a3fa4bSAndrew Rist'*************************************************************************
21cdf0e10cSrcweir
22cdf0e10cSrcweirPublic wrdStrings As StringDataManager
23cdf0e10cSrcweir
24cdf0e10cSrcweirPrivate Sub Document_Open()
25cdf0e10cSrcweir    Set wrdStrings = New stringDataManager
26cdf0e10cSrcweir
27cdf0e10cSrcweir    wrdStrings.InitStringData (GetResourceDataFileName(ThisDocument.Path))
28cdf0e10cSrcweir    LoadCommonStrings wrdStrings
29cdf0e10cSrcweir    LoadWordStrings wrdStrings
30cdf0e10cSrcweir    LoadResultsStrings wrdStrings
31cdf0e10cSrcweir    SetWordDriverText
32cdf0e10cSrcweir    Set wrdString = Nothing
33cdf0e10cSrcweirEnd Sub
34cdf0e10cSrcweir
35cdf0e10cSrcweir' Set the loaded string variable into the fields in the document
36cdf0e10cSrcweirPrivate Sub SetWordDriverText()
37cdf0e10cSrcweir    On Error Resume Next
38cdf0e10cSrcweir    CAPP_DOCPROP_LOCATION = RID_STR_COMMON_RESULTS_LOCATION_TYPE_DOCUMENT
39cdf0e10cSrcweir    ThisDocument.FormFields.item("RID_STR_WDVR_SOANA").Result = RID_STR_WDVR_SOANA
40cdf0e10cSrcweir    ThisDocument.FormFields.item("RID_STR_WDVR_INTRO").Result = RID_STR_WDVR_INTRO
41cdf0e10cSrcweir    ThisDocument.FormFields.item("RID_STR_WDVR_TITLE").Result = RID_STR_WDVR_TITLE
42cdf0e10cSrcweir    ThisDocument.FormFields.item("RID_STR_WDVR_PURPO").Result = RID_STR_WDVR_PURPO
43cdf0e10cSrcweir    ThisDocument.FormFields.item("RID_STR_WDVR_PARA1").Result = RID_STR_WDVR_PARA1
44cdf0e10cSrcweir    ThisDocument.FormFields.item("RID_STR_WDVR_ISSUE").Result = RID_STR_WDVR_ISSUE
45cdf0e10cSrcweir    ThisDocument.FormFields.item("RID_STR_WDVR_PARA2").Result = RID_STR_WDVR_PARA2
46cdf0e10cSrcweirEnd Sub
47