⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmmarklist.frm

📁 网上教务管理系统 包括(教师
💻 FRM
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Object = "{0BA686C6-F7D3-101A-993E-0000C0EF6F5E}#2.0#0"; "THREED20.OCX"
Begin VB.Form frmMarkList 
   BackColor       =   &H00C0C0C0&
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "班级学习成绩排序"
   ClientHeight    =   6795
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5220
   Icon            =   "frmMarkList.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   6795
   ScaleWidth      =   5220
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin Threed.SSPanel SSPanel1 
      Height          =   705
      Left            =   30
      TabIndex        =   1
      Top             =   6060
      Width           =   5145
      _ExtentX        =   9075
      _ExtentY        =   1244
      _Version        =   131073
      BevelInner      =   1
      Begin VB.Image Image1 
         Height          =   255
         Left            =   930
         Picture         =   "frmMarkList.frx":0442
         Top             =   240
         Width           =   255
      End
      Begin Threed.SSCommand Command2 
         Height          =   525
         Left            =   2520
         TabIndex        =   3
         Top             =   90
         Width           =   1005
         _ExtentX        =   1773
         _ExtentY        =   926
         _Version        =   131073
         Font3D          =   1
         MousePointer    =   99
         ForeColor       =   0
         PictureFrames   =   1
         MouseIcon       =   "frmMarkList.frx":04CE
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Picture         =   "frmMarkList.frx":07E8
         Caption         =   "打印"
         Alignment       =   4
         ButtonStyle     =   3
         PictureAlignment=   1
      End
      Begin Threed.SSCommand Command1 
         Height          =   525
         Left            =   3780
         TabIndex        =   2
         Top             =   90
         Width           =   1065
         _ExtentX        =   1879
         _ExtentY        =   926
         _Version        =   131073
         Font3D          =   1
         MousePointer    =   99
         ForeColor       =   0
         PictureFrames   =   1
         MouseIcon       =   "frmMarkList.frx":0E62
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Picture         =   "frmMarkList.frx":117C
         Caption         =   "返回"
         Alignment       =   4
         ButtonStyle     =   3
         PictureAlignment=   1
      End
   End
   Begin MSFlexGridLib.MSFlexGrid ms 
      Height          =   6015
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   5205
      _ExtentX        =   9181
      _ExtentY        =   10610
      _Version        =   393216
      Rows            =   40
      Cols            =   3
      FixedCols       =   0
      BackColor       =   16777215
      ForeColor       =   0
      BackColorFixed  =   12632256
      ForeColorFixed  =   8388863
      BackColorSel    =   4194304
      GridColor       =   0
   End
End
Attribute VB_Name = "frmMarkList"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim ex As Excel.Application
Dim exwbook As Excel.WorkBook
Dim exsheet As Excel.WorkSheet
Dim exchart As Excel.Chart
Private Sub Command1_Click()
On Error Resume Next
Unload Me
End Sub

Private Sub Command2_Click()
If MsgBox("确信要继续打印?", vbQuestion + vbYesNo) = vbNo Then
Exit Sub
Else
Set ex = CreateObject("excel.application")
Set exwbook = ex.Workbooks().Add
Set exsheet = exwbook.Worksheets("sheet1")
Dim rec As Recordset
Dim q As Integer
Screen.MousePointer = 11
ex.Caption = "班级学生排名表"

    ms.Row = 0
    For J = 1 To ms.Cols
        ms.col = J - 1
        ex.Cells(1, J).Value = ms.Text
    Next J
    For I = 1 To ms.Rows
        ms.Row = I - 1
        For J = 1 To ms.Cols
            ms.col = J - 1
            ex.Cells(I, J).Value = ms.Text
        Next J
    Next I

ex.Visible = True
exwbook.Saved = True
Screen.MousePointer = vbArrow
Set exsheet = Nothing
Set exwbook = Nothing
Set ex = Nothing
End If
End Sub

Private Sub Form_Load()
'ms.ColWidth(1) = 1000

End Sub

Private Sub Form_Unload(Cancel As Integer)
On Error Resume Next
'frmMark.Show 1
Unload Me
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -