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

📄 frmfawengaozhi.frm

📁 公文管理系统》是一套通过行文收发
💻 FRM
📖 第 1 页 / 共 5 页
字号:
      Begin VB.Line Line1 
         BorderColor     =   &H000000FF&
         X1              =   0
         X2              =   9570
         Y1              =   5460
         Y2              =   5460
      End
      Begin VB.Line Line2 
         BorderColor     =   &H000000FF&
         Index           =   0
         X1              =   45
         X2              =   9570
         Y1              =   7710
         Y2              =   7710
      End
      Begin VB.Line Line3 
         BorderColor     =   &H000000FF&
         X1              =   0
         X2              =   9570
         Y1              =   5865
         Y2              =   5865
      End
      Begin VB.Line Line2 
         BorderColor     =   &H000000FF&
         Index           =   1
         X1              =   0
         X2              =   9570
         Y1              =   5055
         Y2              =   5055
      End
      Begin VB.Line Line2 
         BorderColor     =   &H000000FF&
         Index           =   2
         X1              =   0
         X2              =   9570
         Y1              =   3870
         Y2              =   3870
      End
      Begin VB.Line Line2 
         BorderColor     =   &H000000FF&
         Index           =   3
         X1              =   15
         X2              =   9570
         Y1              =   3495
         Y2              =   3495
      End
      Begin VB.Line Line2 
         BorderColor     =   &H000000FF&
         Index           =   4
         X1              =   0
         X2              =   9570
         Y1              =   3090
         Y2              =   3090
      End
      Begin VB.Line Line2 
         BorderColor     =   &H000000FF&
         Index           =   5
         X1              =   0
         X2              =   9570
         Y1              =   4275
         Y2              =   4275
      End
      Begin VB.Line Line2 
         BorderColor     =   &H000000FF&
         Index           =   6
         X1              =   0
         X2              =   9570
         Y1              =   4650
         Y2              =   4650
      End
      Begin VB.Line Line5 
         BorderColor     =   &H000000FF&
         X1              =   2655
         X2              =   2655
         Y1              =   915
         Y2              =   3090
      End
      Begin VB.Line Line6 
         BorderColor     =   &H000000FF&
         X1              =   5655
         X2              =   5655
         Y1              =   915
         Y2              =   3090
      End
      Begin VB.Line Line7 
         BorderColor     =   &H000000FF&
         X1              =   5655
         X2              =   9570
         Y1              =   2025
         Y2              =   2025
      End
      Begin VB.Line Line8 
         BorderColor     =   &H000000FF&
         X1              =   5655
         X2              =   9570
         Y1              =   2685
         Y2              =   2685
      End
   End
   Begin MSAdodcLib.Adodc datPrimaryRS 
      Height          =   330
      Left            =   0
      Top             =   7680
      Visible         =   0   'False
      Width           =   1500
      _ExtentX        =   2646
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   " "
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   1680
      Top             =   7680
      Visible         =   0   'False
      Width           =   1935
      _ExtentX        =   3413
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "frmFaWenGaoZhi.frx":0015
      CausesValidation=   0   'False
      Height          =   8055
      Left            =   0
      TabIndex        =   57
      Top             =   0
      Visible         =   0   'False
      Width           =   9855
      _ExtentX        =   17383
      _ExtentY        =   14208
      _Version        =   393216
      AllowUpdate     =   0   'False
      HeadLines       =   1
      RowHeight       =   15
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Caption         =   "发  文"
      ColumnCount     =   2
      BeginProperty Column00 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
End
Attribute VB_Name = "frmFaWenGaoZhi"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim mvBookmark As Variant
Dim strUserName As String

Private Sub cmdGoto_Click()
    Dim i As Integer
    Dim strID As String
    If Not (datPrimaryRS.Recordset.BOF Or datPrimaryRS.Recordset.EOF) Then
        strID = DataGrid1.Columns(0).Text
        datPrimaryRS.Recordset.MoveFirst
        datPrimaryRS.Recordset.Find "ID=" & strID
    End If
    setVisible False
End Sub

Private Sub cmdList_Click()
    Dim i As Integer
    setVisible True
    '保存记录位置
    If Not (datPrimaryRS.Recordset.BOF Or datPrimaryRS.Recordset.EOF) Then
        mvBookmark = datPrimaryRS.Recordset.Bookmark
        '刷新记录集
        cmdRefresh_Click
        datPrimaryRS.Recordset.MoveFirst
    End If
    '刷新Grid
'    Set DataGrid1.DataSource = datPrimaryRS.Recordset
    DataGrid1.Refresh
    For i = 0 To DataGrid1.Columns.Count - 1
        If i = 0 Or i = 11 Or i = 17 Or i = 19 Then
            DataGrid1.Columns(i).Visible = True
        Else
            DataGrid1.Columns(i).Visible = False
        End If
    Next
    DataGrid1_InitColumnProps
End Sub

Private Sub cmdPrint_Click()
'    Dim strPrint As String
'    strPrint = ""
'    For i = 0 To 21
'        strPrint = strPrint & txtFields(i).Text & Chr(255)
'    Next
'    EXEPrint "FaWenGaoZhi", strPrint
    
    Dim oWrd As Object, i As Integer

    Set oWrd = CreateObject("Word.Application")
    oWrd.Visible = True
    oWrd.Activate
    oWrd.Documents.Add

    With oWrd.ActiveDocument.PageSetup
        .TopMargin = 72
        .BottomMargin = 66
        .LeftMargin = 55
        .RightMargin = 66
        .Gutter = 28.35
        .HeaderDistance = 30
        .FooterDistance = 50
        .PageWidth = 595.35
        .PageHeight = 841.95
    End With
    
    With oWrd.Selection
      With .ParagraphFormat
        .Alignment = 3
        .TabStops.Add Position:=320, Alignment:=0, Leader:=0
      End With
      
      .Font.Size = 14    '四号
      .Font.Name = "宋体"
      .Font.Bold = False
      
      
      
      '会签
      With .ParagraphFormat
        .SpaceBefore = 146
        .SpaceAfter = 4
        .LeftIndent = 42
      End With
      
      .TypeText txtFields(8).Text
      .TypeParagraph
            
      '事由
      Select Case Len(txtFields(9).Text)
      Case Is <= 28
          With .ParagraphFormat
            .SpaceBefore = 4
            .SpaceAfter = 4
            .LeftIndent = 42
          End With
      Case Is <= 38
          .Font.Size = 10.5    '五号
          With .ParagraphFormat
            .SpaceBefore = 12
            .SpaceAfter = 12
            .LeftIndent = 42
          End With
      Case Is > 38
          .Font.Size = 10.5    '五号
          
          With .ParagraphFormat
            .SpaceBefore = 4
            .SpaceAfter = 2
            .LeftIndent = 42
            
          End With
      End Select
      
      .TypeText txtFields(9).Text
      .TypeParagraph
      .Font.Size = 14    '四号
      
      '主送机关、附件
      With .ParagraphFormat
        .SpaceBefore = 4
        .SpaceAfter = 4

⌨️ 快捷键说明

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