Private Sub GlobalMacroStorage_Start()
'устанавливаем параметры страницы
'ActiveDocument.Unit = cdrInch
ActiveDocument.Unit = cdrMillimeter
If GetSetting("GF2", "Setting", "Width", "2070") <> "" And GetSetting("GF2", "Setting", "Height", "2800") <> "" Then
ActiveDocument.MasterPage.SetSize GetSetting("GF2", "Setting", "Width", "2070"), GetSetting("GF2", "Setting", "Height", "2800")
Else
ActiveDocument.MasterPage.SetSize 2070, 2800
End If
ActiveWindow.ActiveView.ToFitPage
ActiveDocument.ReferencePoint = cdrCenter
If GetSetting("GF2", "Setting", "Folder") <> "" Then
strFolder = GetSetting("GF2", "Setting", "Folder")
Else
Dim strTmp As String
strTmp = CorelScriptTools.getfolder
If strTmp <> "" Then
strFolder = strTmp
SaveSetting "GF2", "Setting", "Folder", strFolder
Else
MsgBox "Рабочая папка не выбрана!"
End If
End If
'загружаем язык
Dim tmp As String
If GetSetting("GF2", "Setting", "Lang", "ru.txt") <> "" Then
strLang = GetSetting("GF2", "Setting", "Lang", "ru.txt")
Else
strLang = strFolder & "ru.txt"
End If
Open strFolder & "\Lang\" & strLang For Input As 1#
Set colLang = Nothing
While Not EOF(1)
Line Input #1, tmp
colLang.Add tmp
Wend
Close 1#
'
BaseForm.MultiPage1.Page6.Visible = True
'загружаем основную форму
BaseForm.Show
End Sub