frmchartdemo.frm

来自「打印预览程序」· FRM 代码 · 共 67 行

FRM
67
字号
VERSION 5.00
Begin VB.Form frmChartDemo 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "MsChart打印预览示例"
   ClientHeight    =   3045
   ClientLeft      =   4350
   ClientTop       =   3540
   ClientWidth     =   4830
   Icon            =   "frmChartDemo.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3045
   ScaleWidth      =   4830
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "预览/打印选项"
      Height          =   555
      Left            =   1140
      TabIndex        =   1
      Top             =   1620
      Width           =   2490
   End
   Begin VB.CommandButton Command1 
      Caption         =   "预览/打印 Chart"
      Height          =   555
      Left            =   1140
      TabIndex        =   0
      Top             =   480
      Width           =   2490
   End
End
Attribute VB_Name = "frmChartDemo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居汉化收藏整理
'发布日期:05/05/13
'描  述:打印预览源码示例---MsChart
'网  站:http://www.mndsoft.com/
'e-mail:mnd@mndsoft.com
'OICQ  : 88382850
'****************************************************************************'/*************************************/
Private Sub Command1_Click()
    Command1.Enabled = False
    Set cPrint = New clsMultiPgPreview
    cPrint.Orientation = PagePortrait
    cPrint.SendToPrinter = False
    cPrint.pStartDoc
    cPrint.pChart 4, 3.5, 1.5, 1.5, 4, 6, False, True
    cPrint.pFooter
    cPrint.pEndDoc
    Set cPrint = Nothing
    Command1.Enabled = True
End Sub


Private Sub Command2_Click()
    frmChartOption2.Show
End Sub


⌨️ 快捷键说明

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