home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form SIView
- BorderStyle = 1 'Fixed Single
- Caption = "Summary Information"
- ClientHeight = 5655
- ClientLeft = 1185
- ClientTop = 1755
- ClientWidth = 6015
- Height = 6120
- Left = 1095
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 5655
- ScaleWidth = 6015
- Top = 1380
- Width = 6195
- Begin VB.TextBox TotalText
- Enabled = 0 'False
- Height = 285
- Left = 1920
- TabIndex = 30
- TabStop = 0 'False
- Top = 2160
- Width = 1455
- End
- Begin VB.TextBox PrintText
- Enabled = 0 'False
- Height = 285
- Left = 1920
- TabIndex = 28
- TabStop = 0 'False
- Top = 3240
- Width = 3855
- End
- Begin VB.TextBox SaveText
- Enabled = 0 'False
- Height = 285
- Left = 1920
- TabIndex = 26
- TabStop = 0 'False
- Top = 2880
- Width = 3855
- End
- Begin VB.CommandButton Command2
- Cancel = -1 'True
- Caption = "Cancel"
- Height = 375
- Left = 3360
- TabIndex = 25
- Top = 5160
- Width = 1215
- End
- Begin VB.CommandButton Command1
- Caption = "OK"
- Default = -1 'True
- Height = 375
- Left = 4680
- TabIndex = 24
- Top = 5160
- Width = 1215
- End
- Begin VB.TextBox CharText
- Enabled = 0 'False
- Height = 285
- Left = 4920
- TabIndex = 21
- TabStop = 0 'False
- Top = 840
- Width = 855
- End
- Begin VB.TextBox WordText
- Enabled = 0 'False
- Height = 285
- Left = 4920
- TabIndex = 20
- TabStop = 0 'False
- Top = 480
- Width = 855
- End
- Begin VB.TextBox SecurityText
- Enabled = 0 'False
- Height = 285
- Left = 4920
- TabIndex = 18
- TabStop = 0 'False
- Top = 1200
- Width = 855
- End
- Begin VB.TextBox CommentsText
- Height = 1215
- Left = 1320
- MultiLine = -1 'True
- TabIndex = 5
- Top = 3720
- Width = 4455
- End
- Begin VB.TextBox AppText
- Enabled = 0 'False
- Height = 285
- Left = 1320
- TabIndex = 17
- TabStop = 0 'False
- Top = 1560
- Width = 2055
- End
- Begin VB.TextBox PageText
- Enabled = 0 'False
- Height = 285
- Left = 4920
- TabIndex = 16
- TabStop = 0 'False
- Top = 120
- Width = 855
- End
- Begin VB.TextBox CreateText
- Enabled = 0 'False
- Height = 285
- Left = 1920
- TabIndex = 15
- TabStop = 0 'False
- Top = 2520
- Width = 3855
- End
- Begin VB.TextBox RevText
- Enabled = 0 'False
- Height = 285
- Left = 4920
- TabIndex = 14
- TabStop = 0 'False
- Top = 1560
- Width = 855
- End
- Begin VB.TextBox KeyText
- Height = 285
- Left = 1320
- TabIndex = 4
- Top = 1200
- Width = 2055
- End
- Begin VB.TextBox AuthorText
- Height = 285
- Left = 1320
- TabIndex = 3
- Top = 840
- Width = 2055
- End
- Begin VB.TextBox SubjectText
- Height = 285
- Left = 1320
- TabIndex = 2
- Top = 480
- Width = 2055
- End
- Begin VB.TextBox TitleText
- Height = 285
- Left = 1320
- TabIndex = 1
- Top = 120
- Width = 2055
- End
- Begin VB.Label Label16
- Caption = "minutes"
- Height = 255
- Left = 3480
- TabIndex = 32
- Top = 2160
- Width = 1335
- End
- Begin VB.Label Label15
- Caption = "Total Editing Time:"
- Height = 255
- Left = 120
- TabIndex = 31
- Top = 2160
- Width = 1695
- End
- Begin VB.Label Label14
- Caption = "Date/Time Last Printed:"
- Height = 255
- Left = 120
- TabIndex = 29
- Top = 3240
- Width = 1695
- End
- Begin VB.Label Label13
- Caption = "Date/Time Last Saved:"
- Height = 255
- Left = 120
- TabIndex = 27
- Top = 2880
- Width = 1695
- End
- Begin VB.Label Label12
- Caption = "Characters:"
- Height = 255
- Left = 3720
- TabIndex = 23
- Top = 840
- Width = 1095
- End
- Begin VB.Label Label11
- Caption = "Words:"
- Height = 255
- Left = 3720
- TabIndex = 22
- Top = 480
- Width = 1095
- End
- Begin VB.Label Label10
- Caption = "Security Level:"
- Height = 255
- Left = 3720
- TabIndex = 19
- Top = 1200
- Width = 1095
- End
- Begin VB.Label Label9
- Caption = "Application:"
- Height = 255
- Left = 120
- TabIndex = 13
- Top = 1560
- Width = 1095
- End
- Begin VB.Label Label8
- Caption = "Pages:"
- Height = 255
- Left = 3720
- TabIndex = 12
- Top = 120
- Width = 1095
- End
- Begin VB.Label Label7
- Caption = "Date/Time Created:"
- Height = 255
- Left = 120
- TabIndex = 11
- Top = 2520
- Width = 1455
- End
- Begin VB.Label Label6
- Caption = "Times Revised:"
- Height = 255
- Left = 3720
- TabIndex = 10
- Top = 1560
- Width = 1095
- End
- Begin VB.Label Label5
- Caption = "Comments:"
- Height = 255
- Left = 120
- TabIndex = 9
- Top = 3720
- Width = 855
- End
- Begin VB.Label Label4
- Caption = "Keywords:"
- Height = 255
- Left = 120
- TabIndex = 8
- Top = 1200
- Width = 975
- End
- Begin VB.Label Label3
- Caption = "Subject:"
- Height = 255
- Left = 120
- TabIndex = 7
- Top = 480
- Width = 975
- End
- Begin VB.Label Label2
- Caption = "Author:"
- Height = 255
- Left = 120
- TabIndex = 6
- Top = 840
- Width = 975
- End
- Begin VB.Label Label1
- Caption = "Title:"
- Height = 255
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 975
- End
- Attribute VB_Name = "SIView"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- ' The OK button saves the Summary Information
- ' items that can be edited.
- Private Sub Command1_Click()
- GlobalRootStorage.siSetTitle (TitleText.text)
- GlobalRootStorage.siSetSubject (SubjectText.text)
- GlobalRootStorage.siSetAuthor (AuthorText.text)
- GlobalRootStorage.siSetKeywords (KeyText.text)
- GlobalRootStorage.siSetComments (CommentsText.text)
- GlobalRootStorage.siSaveSummaryInfo
- GlobalRootStorage.Commit 0 ' don't forget this
- Unload SIView
- End Sub
- ' The Cancel button just exits.
- Private Sub Command2_Click()
- Unload SIView
- End Sub
- ' Opens the Summary Information stream and reads in
- ' all the information.
- Private Sub Form_Load()
- Dim printDate As Date
- If (GlobalRootStorage.siOpenSummaryInfo() = False) Then
- MsgBox "Error While Reading Summary Info"
- Exit Sub
- End If
- TitleText.text = GlobalRootStorage.siGetTitle()
- SubjectText.text = GlobalRootStorage.siGetSubject()
- AuthorText.text = GlobalRootStorage.siGetAuthor()
- KeyText.text = GlobalRootStorage.siGetKeywords()
- AppText.text = GlobalRootStorage.siGetApplication()
- PageText.text = CStr(GlobalRootStorage.siGetNumberOfPages())
- WordText.text = CStr(GlobalRootStorage.siGetNumberOfWords())
- CharText.text = CStr(GlobalRootStorage.siGetNumberOfCharacters())
- SecurityText.text = CStr(GlobalRootStorage.siGetSecurity())
- RevText.text = GlobalRootStorage.siGetRevNum()
- TotalText.text = CStr(GlobalRootStorage.siGetTotalEditTime())
- CreateText.text = CStr(GlobalRootStorage.siGetCreateDate())
- SaveText.text = CStr(GlobalRootStorage.siGetLastSaveDate())
- printDate = GlobalRootStorage.siGetLastPrintDate()
- If (printDate = 0) Then
- PrintText.text = "Never printed"
- Else
- PrintText.text = CStr(printDate)
- End If
- CommentsText.text = GlobalRootStorage.siGetComments()
- End Sub
-