home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Tool Box
/
SIMS_2.iso
/
bp_2_94
/
winword
/
oleauto
/
olesys.frm
< prev
next >
Wrap
Text File
|
1994-04-03
|
2KB
|
75 lines
VERSION 2.00
Begin Form OLEMAKRO
Caption = "OLE Automation Visual Basic 3.0 - Winword 6.0"
ClientHeight = 3390
ClientLeft = 1020
ClientTop = 1500
ClientWidth = 5595
Height = 3795
Left = 960
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3390
ScaleWidth = 5595
Top = 1155
Width = 5715
Begin CommandButton MakroAusfⁿhren
Caption = "Systeminfo aus Winword holen"
Height = 495
Left = 240
TabIndex = 2
Top = 2760
Width = 4815
End
Begin Label Systeminfo
BorderStyle = 1 'nicht Σnderbar, einfach
Caption = "Systeminfo"
Height = 2415
Left = 4080
TabIndex = 1
Top = 240
Width = 1335
End
Begin Label Legende
Alignment = 1 'Rechts
BorderStyle = 1 'nicht Σnderbar, einfach
Caption = "Legende"
Height = 2415
Left = 240
TabIndex = 0
Top = 240
Width = 3615
End
End
'Basic Proefessionell Ausgabe 2/94
'Projekt: OLESYS.MAK
'Form: OLESYS.FRM
'Startet das Winword 6.0 Makro 'AbrufenSysteminfo', siehe OLESYS.WRI - Datei
'und fⁿllt zwei VB Bezeichnungsfelder mit den ermittelten Daten
'Autor: Walter Jung - Mainz - 1/94
Option Explicit
Dim Doc As Object
Dim lf As String, info As String
Sub Form_Load ()
Set Doc = CreateObject("Word.Basic")
lf = Chr(10)
info = "Umgebung" + lf + "Prozessor" + lf + "MS-DOS" + lf + "Windows" + lf
info = info + "Freie Resourcen" + lf + "Freie FestplattenkapazitΣt in Byte" + lf + "Modus" + lf
info = info + "Coprozessor" + lf + "LΣnderkennung" + lf + "Sprache" + lf
info = info + "Vertikale Bildschirmaufl÷sung in Pixel" + lf + "Horizontale Bildschimaufl÷sung in Pixel"
End Sub
Sub MakroAusfⁿhren_Click ()
Legende = info
Doc.Extrasmakro "AbrufenSysteminfo", 1
Systeminfo = Doc.markierung()
Doc.dateischlie▀en 2
End Sub