StartForm.vb
上传用户:wj57717022
上传日期:2014-12-16
资源大小:4093k
文件大小:68k
- Imports DataDynamics.ActiveReports.Design
- Imports System.ComponentModel
- Imports System.Collections
- Imports System
- Imports System.Drawing
- Imports System.Windows.Forms.ToolBarButtonClickEventArgs
- 'Demonstrates a custom end-user report designer that can be integrated in your applications
- ' to allow users to modify report layouts.
- Public Class StartForm
- Inherits System.Windows.Forms.Form
- #Region " Windows Form Designer generated code "
- Public Sub New()
- MyBase.New()
- 'This call is required by the Windows Form Designer.
- InitializeComponent()
- 'Add any initialization after the InitializeComponent() call
- End Sub
- 'Form overrides dispose to clean up the component list.
- Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
- If disposing Then
- If Not (components Is Nothing) Then
- components.Dispose()
- End If
- End If
- MyBase.Dispose(disposing)
- End Sub
- 'Required by the Windows Form Designer
- Private components As System.ComponentModel.IContainer
- 'NOTE: The following procedure is required by the Windows Form Designer
- 'It can be modified using the Windows Form Designer.
- 'Do not modify it using the code editor.
- Friend WithEvents Panel1 As System.Windows.Forms.Panel
- Friend WithEvents Panel2 As System.Windows.Forms.Panel
- Friend WithEvents Splitter1 As System.Windows.Forms.Splitter
- Friend WithEvents Designer1 As DataDynamics.ActiveReports.Design.Designer
- Friend WithEvents Panel3 As System.Windows.Forms.Panel
- Friend WithEvents Panel4 As System.Windows.Forms.Panel
- Friend WithEvents Splitter2 As System.Windows.Forms.Splitter
- Friend WithEvents Panel5 As System.Windows.Forms.Panel
- Friend WithEvents ReportExplorer1 As DataDynamics.ActiveReports.Design.ReportExplorer
- Friend WithEvents PropertyGrid1 As System.Windows.Forms.PropertyGrid
- Friend WithEvents Label1 As System.Windows.Forms.Label
- Friend WithEvents Imgtoolbox As System.Windows.Forms.ImageList
- Friend WithEvents ImgLayout As System.Windows.Forms.ImageList
- Friend WithEvents ImgReport As System.Windows.Forms.ImageList
- Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu
- Friend WithEvents MenuItem4 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem7 As System.Windows.Forms.MenuItem
- Friend WithEvents MenuItem10 As System.Windows.Forms.MenuItem
- Friend WithEvents mnuFile As System.Windows.Forms.MenuItem
- Friend WithEvents mnuPrintPreview As System.Windows.Forms.MenuItem
- Friend WithEvents mnuLoadLayout As System.Windows.Forms.MenuItem
- Friend WithEvents mnuSaveLayout As System.Windows.Forms.MenuItem
- Friend WithEvents mnuPageSetup As System.Windows.Forms.MenuItem
- Friend WithEvents mnuExit As System.Windows.Forms.MenuItem
- Friend WithEvents cmbFontSize As System.Windows.Forms.ComboBox
- Friend WithEvents cmbFonts As System.Windows.Forms.ComboBox
- Friend WithEvents cmbClassName As System.Windows.Forms.ComboBox
- Friend WithEvents tlbLayout As System.Windows.Forms.ToolBar
- Friend WithEvents tlbReport As System.Windows.Forms.ToolBar
- Friend WithEvents tbbAligntoGrid As System.Windows.Forms.ToolBarButton
- Private WithEvents tbbLine1 As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbAlignLefts As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbAlignCenters As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbAlignRights As System.Windows.Forms.ToolBarButton
- Private WithEvents tbbLine2 As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbAlignTops As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbAlignMiddles As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbAlignBottoms As System.Windows.Forms.ToolBarButton
- Private WithEvents tbbLine3 As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbMakeSameWidth As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbSizeToGrid As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbMakeSameHeight As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbMakeSameSize As System.Windows.Forms.ToolBarButton
- Private WithEvents tbbLine4 As System.Windows.Forms.ToolBarButton
- Private WithEvents tbbLine5 As System.Windows.Forms.ToolBarButton
- Private WithEvents tbbLine6 As System.Windows.Forms.ToolBarButton
- Private WithEvents tbbLine7 As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbBringToFront As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbSendToBack As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbMakeHorizSpaceEqual As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbIncreaseHorizSpace As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbDecreaseHorizSpace As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbRemoveHorizSpace As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbMakeVertSpaceEqual As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbIncreaseVertSpace As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbDecreaseVertSpace As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbRemoveVertSpace As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbCenterHoriz As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbCenterVert As System.Windows.Forms.ToolBarButton
- Friend WithEvents tlbARToolbox As System.Windows.Forms.ToolBar
- Private WithEvents tbbLine8 As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbViewGrid As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbReorderGroups As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbEditScript As System.Windows.Forms.ToolBarButton
- Private WithEvents tbbLine9 As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbBold As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbItalic As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbUnderline As System.Windows.Forms.ToolBarButton
- Private WithEvents tbbLine10 As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbAlignLeft As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbCenter As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbAlignRight As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbJustify As System.Windows.Forms.ToolBarButton
- Private WithEvents tbbLine11 As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbBullets As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbDecreaseIndent As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbIncreaseIndent As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbPointer As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbLabel As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbTextBox As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbCheckBox As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbPicture As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbShape As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbLine As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbSubreport As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbPageBreak As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbBarcode As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbbRichTextBox As System.Windows.Forms.ToolBarButton
- Friend WithEvents btnLoad As System.Windows.Forms.ToolBarButton
- Friend WithEvents btnSave As System.Windows.Forms.ToolBarButton
- Friend WithEvents btnPrintview As System.Windows.Forms.ToolBarButton
- Friend WithEvents btnPrintSetup As System.Windows.Forms.ToolBarButton
- Friend WithEvents btnExit As System.Windows.Forms.ToolBarButton
- <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
- Me.components = New System.ComponentModel.Container
- Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(StartForm))
- Me.tlbLayout = New System.Windows.Forms.ToolBar
- Me.tbbAligntoGrid = New System.Windows.Forms.ToolBarButton
- Me.tbbLine1 = New System.Windows.Forms.ToolBarButton
- Me.tbbAlignLefts = New System.Windows.Forms.ToolBarButton
- Me.tbbAlignCenters = New System.Windows.Forms.ToolBarButton
- Me.tbbAlignRights = New System.Windows.Forms.ToolBarButton
- Me.tbbLine2 = New System.Windows.Forms.ToolBarButton
- Me.tbbAlignTops = New System.Windows.Forms.ToolBarButton
- Me.tbbAlignMiddles = New System.Windows.Forms.ToolBarButton
- Me.tbbAlignBottoms = New System.Windows.Forms.ToolBarButton
- Me.tbbLine3 = New System.Windows.Forms.ToolBarButton
- Me.tbbMakeSameWidth = New System.Windows.Forms.ToolBarButton
- Me.tbbSizeToGrid = New System.Windows.Forms.ToolBarButton
- Me.tbbMakeSameHeight = New System.Windows.Forms.ToolBarButton
- Me.tbbMakeSameSize = New System.Windows.Forms.ToolBarButton
- Me.tbbLine4 = New System.Windows.Forms.ToolBarButton
- Me.tbbMakeHorizSpaceEqual = New System.Windows.Forms.ToolBarButton
- Me.tbbIncreaseHorizSpace = New System.Windows.Forms.ToolBarButton
- Me.tbbDecreaseHorizSpace = New System.Windows.Forms.ToolBarButton
- Me.tbbRemoveHorizSpace = New System.Windows.Forms.ToolBarButton
- Me.tbbLine5 = New System.Windows.Forms.ToolBarButton
- Me.tbbMakeVertSpaceEqual = New System.Windows.Forms.ToolBarButton
- Me.tbbIncreaseVertSpace = New System.Windows.Forms.ToolBarButton
- Me.tbbDecreaseVertSpace = New System.Windows.Forms.ToolBarButton
- Me.tbbRemoveVertSpace = New System.Windows.Forms.ToolBarButton
- Me.tbbLine6 = New System.Windows.Forms.ToolBarButton
- Me.tbbCenterHoriz = New System.Windows.Forms.ToolBarButton
- Me.tbbCenterVert = New System.Windows.Forms.ToolBarButton
- Me.tbbLine7 = New System.Windows.Forms.ToolBarButton
- Me.tbbBringToFront = New System.Windows.Forms.ToolBarButton
- Me.tbbSendToBack = New System.Windows.Forms.ToolBarButton
- Me.btnLoad = New System.Windows.Forms.ToolBarButton
- Me.btnSave = New System.Windows.Forms.ToolBarButton
- Me.btnPrintview = New System.Windows.Forms.ToolBarButton
- Me.btnPrintSetup = New System.Windows.Forms.ToolBarButton
- Me.btnExit = New System.Windows.Forms.ToolBarButton
- Me.ImgLayout = New System.Windows.Forms.ImageList(Me.components)
- Me.Panel1 = New System.Windows.Forms.Panel
- Me.tlbARToolbox = New System.Windows.Forms.ToolBar
- Me.tbbPointer = New System.Windows.Forms.ToolBarButton
- Me.tbbLabel = New System.Windows.Forms.ToolBarButton
- Me.tbbTextBox = New System.Windows.Forms.ToolBarButton
- Me.tbbCheckBox = New System.Windows.Forms.ToolBarButton
- Me.tbbPicture = New System.Windows.Forms.ToolBarButton
- Me.tbbShape = New System.Windows.Forms.ToolBarButton
- Me.tbbLine = New System.Windows.Forms.ToolBarButton
- Me.tbbRichTextBox = New System.Windows.Forms.ToolBarButton
- Me.tbbSubreport = New System.Windows.Forms.ToolBarButton
- Me.tbbPageBreak = New System.Windows.Forms.ToolBarButton
- Me.tbbBarcode = New System.Windows.Forms.ToolBarButton
- Me.Imgtoolbox = New System.Windows.Forms.ImageList(Me.components)
- Me.Label1 = New System.Windows.Forms.Label
- Me.Panel2 = New System.Windows.Forms.Panel
- Me.Panel5 = New System.Windows.Forms.Panel
- Me.ReportExplorer1 = New DataDynamics.ActiveReports.Design.ReportExplorer
- Me.Designer1 = New DataDynamics.ActiveReports.Design.Designer
- Me.Splitter2 = New System.Windows.Forms.Splitter
- Me.Panel4 = New System.Windows.Forms.Panel
- Me.PropertyGrid1 = New System.Windows.Forms.PropertyGrid
- Me.Splitter1 = New System.Windows.Forms.Splitter
- Me.Panel3 = New System.Windows.Forms.Panel
- Me.tlbReport = New System.Windows.Forms.ToolBar
- Me.tbbViewGrid = New System.Windows.Forms.ToolBarButton
- Me.tbbReorderGroups = New System.Windows.Forms.ToolBarButton
- Me.tbbLine8 = New System.Windows.Forms.ToolBarButton
- Me.tbbEditScript = New System.Windows.Forms.ToolBarButton
- Me.tbbLine9 = New System.Windows.Forms.ToolBarButton
- Me.tbbBold = New System.Windows.Forms.ToolBarButton
- Me.tbbItalic = New System.Windows.Forms.ToolBarButton
- Me.tbbUnderline = New System.Windows.Forms.ToolBarButton
- Me.tbbLine10 = New System.Windows.Forms.ToolBarButton
- Me.tbbAlignLeft = New System.Windows.Forms.ToolBarButton
- Me.tbbCenter = New System.Windows.Forms.ToolBarButton
- Me.tbbAlignRight = New System.Windows.Forms.ToolBarButton
- Me.tbbJustify = New System.Windows.Forms.ToolBarButton
- Me.tbbLine11 = New System.Windows.Forms.ToolBarButton
- Me.tbbBullets = New System.Windows.Forms.ToolBarButton
- Me.tbbDecreaseIndent = New System.Windows.Forms.ToolBarButton
- Me.tbbIncreaseIndent = New System.Windows.Forms.ToolBarButton
- Me.ImgReport = New System.Windows.Forms.ImageList(Me.components)
- Me.cmbFontSize = New System.Windows.Forms.ComboBox
- Me.cmbFonts = New System.Windows.Forms.ComboBox
- Me.cmbClassName = New System.Windows.Forms.ComboBox
- Me.MainMenu1 = New System.Windows.Forms.MainMenu
- Me.mnuFile = New System.Windows.Forms.MenuItem
- Me.mnuPrintPreview = New System.Windows.Forms.MenuItem
- Me.MenuItem4 = New System.Windows.Forms.MenuItem
- Me.mnuLoadLayout = New System.Windows.Forms.MenuItem
- Me.mnuSaveLayout = New System.Windows.Forms.MenuItem
- Me.MenuItem7 = New System.Windows.Forms.MenuItem
- Me.mnuPageSetup = New System.Windows.Forms.MenuItem
- Me.MenuItem10 = New System.Windows.Forms.MenuItem
- Me.mnuExit = New System.Windows.Forms.MenuItem
- Me.Panel1.SuspendLayout()
- Me.Panel2.SuspendLayout()
- Me.Panel5.SuspendLayout()
- Me.Panel4.SuspendLayout()
- Me.Panel3.SuspendLayout()
- Me.SuspendLayout()
- '
- 'tlbLayout
- '
- Me.tlbLayout.Appearance = System.Windows.Forms.ToolBarAppearance.Flat
- Me.tlbLayout.Buttons.AddRange(New System.Windows.Forms.ToolBarButton() {Me.tbbAligntoGrid, Me.tbbLine1, Me.tbbAlignLefts, Me.tbbAlignCenters, Me.tbbAlignRights, Me.tbbLine2, Me.tbbAlignTops, Me.tbbAlignMiddles, Me.tbbAlignBottoms, Me.tbbLine3, Me.tbbMakeSameWidth, Me.tbbSizeToGrid, Me.tbbMakeSameHeight, Me.tbbMakeSameSize, Me.tbbLine4, Me.tbbMakeHorizSpaceEqual, Me.tbbIncreaseHorizSpace, Me.tbbDecreaseHorizSpace, Me.tbbRemoveHorizSpace, Me.tbbLine5, Me.tbbMakeVertSpaceEqual, Me.tbbIncreaseVertSpace, Me.tbbDecreaseVertSpace, Me.tbbRemoveVertSpace, Me.tbbLine6, Me.tbbCenterHoriz, Me.tbbCenterVert, Me.tbbLine7, Me.tbbBringToFront, Me.tbbSendToBack, Me.btnLoad, Me.btnSave, Me.btnPrintview, Me.btnPrintSetup, Me.btnExit})
- Me.tlbLayout.DropDownArrows = True
- Me.tlbLayout.ImageList = Me.ImgLayout
- Me.tlbLayout.Location = New System.Drawing.Point(0, 0)
- Me.tlbLayout.Name = "tlbLayout"
- Me.tlbLayout.ShowToolTips = True
- Me.tlbLayout.Size = New System.Drawing.Size(1028, 41)
- Me.tlbLayout.TabIndex = 0
- '
- 'tbbAligntoGrid
- '
- Me.tbbAligntoGrid.ImageIndex = 0
- Me.tbbAligntoGrid.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbAligntoGrid.Tag = "AligntoGrid"
- Me.tbbAligntoGrid.ToolTipText = "AligntoGrid"
- '
- 'tbbLine1
- '
- Me.tbbLine1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator
- '
- 'tbbAlignLefts
- '
- Me.tbbAlignLefts.ImageIndex = 1
- Me.tbbAlignLefts.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbAlignLefts.Tag = "AlignLefts"
- Me.tbbAlignLefts.ToolTipText = "AlignLefts"
- '
- 'tbbAlignCenters
- '
- Me.tbbAlignCenters.ImageIndex = 2
- Me.tbbAlignCenters.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbAlignCenters.Tag = "AlignCenters"
- Me.tbbAlignCenters.ToolTipText = "AlignCenters"
- '
- 'tbbAlignRights
- '
- Me.tbbAlignRights.ImageIndex = 3
- Me.tbbAlignRights.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbAlignRights.Tag = "AlignRights"
- Me.tbbAlignRights.ToolTipText = "AlignRights"
- '
- 'tbbLine2
- '
- Me.tbbLine2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator
- '
- 'tbbAlignTops
- '
- Me.tbbAlignTops.ImageIndex = 4
- Me.tbbAlignTops.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbAlignTops.Tag = "AlignTops"
- Me.tbbAlignTops.ToolTipText = "AlignTops"
- '
- 'tbbAlignMiddles
- '
- Me.tbbAlignMiddles.ImageIndex = 5
- Me.tbbAlignMiddles.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbAlignMiddles.Tag = "AlignMiddles"
- Me.tbbAlignMiddles.ToolTipText = "AlignMiddles"
- '
- 'tbbAlignBottoms
- '
- Me.tbbAlignBottoms.ImageIndex = 6
- Me.tbbAlignBottoms.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbAlignBottoms.Tag = "AlignBottoms"
- Me.tbbAlignBottoms.ToolTipText = "AlignBottoms"
- '
- 'tbbLine3
- '
- Me.tbbLine3.Style = System.Windows.Forms.ToolBarButtonStyle.Separator
- '
- 'tbbMakeSameWidth
- '
- Me.tbbMakeSameWidth.ImageIndex = 7
- Me.tbbMakeSameWidth.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbMakeSameWidth.Tag = "MakeSameWidth"
- Me.tbbMakeSameWidth.ToolTipText = "MakeSameWidth"
- '
- 'tbbSizeToGrid
- '
- Me.tbbSizeToGrid.ImageIndex = 8
- Me.tbbSizeToGrid.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbSizeToGrid.Tag = "SizeToGrid"
- Me.tbbSizeToGrid.ToolTipText = "SizeToGrid"
- '
- 'tbbMakeSameHeight
- '
- Me.tbbMakeSameHeight.ImageIndex = 9
- Me.tbbMakeSameHeight.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbMakeSameHeight.Tag = "MakeSameHeight"
- Me.tbbMakeSameHeight.ToolTipText = "MakeSameHeight"
- '
- 'tbbMakeSameSize
- '
- Me.tbbMakeSameSize.ImageIndex = 10
- Me.tbbMakeSameSize.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbMakeSameSize.Tag = "MakeSameSize"
- Me.tbbMakeSameSize.ToolTipText = "MakeSameSize"
- '
- 'tbbLine4
- '
- Me.tbbLine4.Style = System.Windows.Forms.ToolBarButtonStyle.Separator
- '
- 'tbbMakeHorizSpaceEqual
- '
- Me.tbbMakeHorizSpaceEqual.ImageIndex = 11
- Me.tbbMakeHorizSpaceEqual.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbMakeHorizSpaceEqual.Tag = "MakeHorizSpaceEqual"
- Me.tbbMakeHorizSpaceEqual.ToolTipText = "MakeHorizSpaceEqual"
- '
- 'tbbIncreaseHorizSpace
- '
- Me.tbbIncreaseHorizSpace.ImageIndex = 12
- Me.tbbIncreaseHorizSpace.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbIncreaseHorizSpace.Tag = "IncreaseHorizSpace"
- Me.tbbIncreaseHorizSpace.ToolTipText = "IncreaseHorizSpace"
- '
- 'tbbDecreaseHorizSpace
- '
- Me.tbbDecreaseHorizSpace.ImageIndex = 13
- Me.tbbDecreaseHorizSpace.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbDecreaseHorizSpace.Tag = "DecreaseHorizSpace"
- Me.tbbDecreaseHorizSpace.ToolTipText = "DecreaseHorizSpace"
- '
- 'tbbRemoveHorizSpace
- '
- Me.tbbRemoveHorizSpace.ImageIndex = 14
- Me.tbbRemoveHorizSpace.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbRemoveHorizSpace.Tag = "RemoveHorizSpace"
- Me.tbbRemoveHorizSpace.ToolTipText = "RemoveHorizSpace"
- '
- 'tbbLine5
- '
- Me.tbbLine5.Style = System.Windows.Forms.ToolBarButtonStyle.Separator
- '
- 'tbbMakeVertSpaceEqual
- '
- Me.tbbMakeVertSpaceEqual.ImageIndex = 15
- Me.tbbMakeVertSpaceEqual.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbMakeVertSpaceEqual.Tag = "MakeVertSpaceEqual"
- Me.tbbMakeVertSpaceEqual.ToolTipText = "MakeVertSpaceEqual"
- '
- 'tbbIncreaseVertSpace
- '
- Me.tbbIncreaseVertSpace.ImageIndex = 16
- Me.tbbIncreaseVertSpace.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbIncreaseVertSpace.Tag = "IncreaseVertSpace"
- Me.tbbIncreaseVertSpace.ToolTipText = "IncreaseVertSpace"
- '
- 'tbbDecreaseVertSpace
- '
- Me.tbbDecreaseVertSpace.ImageIndex = 17
- Me.tbbDecreaseVertSpace.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbDecreaseVertSpace.Tag = "DecreaseVertSpace"
- Me.tbbDecreaseVertSpace.ToolTipText = "DecreaseVertSpace"
- '
- 'tbbRemoveVertSpace
- '
- Me.tbbRemoveVertSpace.ImageIndex = 18
- Me.tbbRemoveVertSpace.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbRemoveVertSpace.Tag = "RemoveVertSpace"
- Me.tbbRemoveVertSpace.ToolTipText = "RemoveVertSpace"
- '
- 'tbbLine6
- '
- Me.tbbLine6.Style = System.Windows.Forms.ToolBarButtonStyle.Separator
- '
- 'tbbCenterHoriz
- '
- Me.tbbCenterHoriz.ImageIndex = 19
- Me.tbbCenterHoriz.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbCenterHoriz.Tag = "CenterHoriz"
- Me.tbbCenterHoriz.ToolTipText = "CenterHoriz"
- '
- 'tbbCenterVert
- '
- Me.tbbCenterVert.ImageIndex = 20
- Me.tbbCenterVert.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbCenterVert.Tag = "CenterVert"
- Me.tbbCenterVert.ToolTipText = "CenterVert"
- '
- 'tbbLine7
- '
- Me.tbbLine7.Style = System.Windows.Forms.ToolBarButtonStyle.Separator
- '
- 'tbbBringToFront
- '
- Me.tbbBringToFront.ImageIndex = 21
- Me.tbbBringToFront.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbBringToFront.Tag = "BringToFront"
- Me.tbbBringToFront.ToolTipText = "BringToFront"
- '
- 'tbbSendToBack
- '
- Me.tbbSendToBack.ImageIndex = 22
- Me.tbbSendToBack.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbSendToBack.Tag = "SendToBack"
- Me.tbbSendToBack.ToolTipText = "SendToBack"
- '
- 'btnLoad
- '
- Me.btnLoad.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.btnLoad.Tag = "加载报表"
- Me.btnLoad.Text = "加载报表"
- '
- 'btnSave
- '
- Me.btnSave.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.btnSave.Tag = "保存报表"
- Me.btnSave.Text = "保存报表"
- '
- 'btnPrintview
- '
- Me.btnPrintview.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.btnPrintview.Tag = "报表预览"
- Me.btnPrintview.Text = "报表预览"
- '
- 'btnPrintSetup
- '
- Me.btnPrintSetup.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.btnPrintSetup.Tag = "打印设置"
- Me.btnPrintSetup.Text = "打印设置"
- '
- 'btnExit
- '
- Me.btnExit.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.btnExit.Tag = "退出"
- Me.btnExit.Text = "退出"
- '
- 'ImgLayout
- '
- Me.ImgLayout.ImageSize = New System.Drawing.Size(16, 16)
- Me.ImgLayout.ImageStream = CType(resources.GetObject("ImgLayout.ImageStream"), System.Windows.Forms.ImageListStreamer)
- Me.ImgLayout.TransparentColor = System.Drawing.Color.Transparent
- '
- 'Panel1
- '
- Me.Panel1.Controls.Add(Me.tlbARToolbox)
- Me.Panel1.Controls.Add(Me.Label1)
- Me.Panel1.Dock = System.Windows.Forms.DockStyle.Left
- Me.Panel1.Location = New System.Drawing.Point(0, 66)
- Me.Panel1.Name = "Panel1"
- Me.Panel1.Size = New System.Drawing.Size(125, 667)
- Me.Panel1.TabIndex = 2
- '
- 'tlbARToolbox
- '
- Me.tlbARToolbox.Appearance = System.Windows.Forms.ToolBarAppearance.Flat
- Me.tlbARToolbox.Buttons.AddRange(New System.Windows.Forms.ToolBarButton() {Me.tbbPointer, Me.tbbLabel, Me.tbbTextBox, Me.tbbCheckBox, Me.tbbPicture, Me.tbbShape, Me.tbbLine, Me.tbbRichTextBox, Me.tbbSubreport, Me.tbbPageBreak, Me.tbbBarcode})
- Me.tlbARToolbox.Divider = False
- Me.tlbARToolbox.Dock = System.Windows.Forms.DockStyle.Fill
- Me.tlbARToolbox.DropDownArrows = True
- Me.tlbARToolbox.ImageList = Me.Imgtoolbox
- Me.tlbARToolbox.Location = New System.Drawing.Point(0, 17)
- Me.tlbARToolbox.Name = "tlbARToolbox"
- Me.tlbARToolbox.ShowToolTips = True
- Me.tlbARToolbox.Size = New System.Drawing.Size(125, 224)
- Me.tlbARToolbox.TabIndex = 1
- Me.tlbARToolbox.TextAlign = System.Windows.Forms.ToolBarTextAlign.Right
- '
- 'tbbPointer
- '
- Me.tbbPointer.ImageIndex = 0
- Me.tbbPointer.Tag = "Pointer"
- Me.tbbPointer.Text = "Pointer"
- Me.tbbPointer.ToolTipText = "Pointer"
- '
- 'tbbLabel
- '
- Me.tbbLabel.ImageIndex = 1
- Me.tbbLabel.Tag = "Label"
- Me.tbbLabel.Text = "Label"
- Me.tbbLabel.ToolTipText = "Label"
- '
- 'tbbTextBox
- '
- Me.tbbTextBox.ImageIndex = 2
- Me.tbbTextBox.Tag = "TextBox"
- Me.tbbTextBox.Text = "TextBox"
- Me.tbbTextBox.ToolTipText = "TextBox"
- '
- 'tbbCheckBox
- '
- Me.tbbCheckBox.ImageIndex = 3
- Me.tbbCheckBox.Tag = "CheckBox"
- Me.tbbCheckBox.Text = "CheckBox"
- Me.tbbCheckBox.ToolTipText = "CheckBox"
- '
- 'tbbPicture
- '
- Me.tbbPicture.ImageIndex = 4
- Me.tbbPicture.Tag = "Picture"
- Me.tbbPicture.Text = "Picture"
- Me.tbbPicture.ToolTipText = "Picture"
- '
- 'tbbShape
- '
- Me.tbbShape.ImageIndex = 5
- Me.tbbShape.Tag = "Shape"
- Me.tbbShape.Text = "Shape"
- Me.tbbShape.ToolTipText = "Shape"
- '
- 'tbbLine
- '
- Me.tbbLine.ImageIndex = 6
- Me.tbbLine.Tag = "Line"
- Me.tbbLine.Text = "Line"
- Me.tbbLine.ToolTipText = "Line"
- '
- 'tbbRichTextBox
- '
- Me.tbbRichTextBox.ImageIndex = 7
- Me.tbbRichTextBox.Tag = "RichText"
- Me.tbbRichTextBox.Text = "RichTextBox"
- Me.tbbRichTextBox.ToolTipText = "RichTextBox"
- '
- 'tbbSubreport
- '
- Me.tbbSubreport.ImageIndex = 8
- Me.tbbSubreport.Tag = "Subreport"
- Me.tbbSubreport.Text = "Subreport"
- Me.tbbSubreport.ToolTipText = "Subreport"
- '
- 'tbbPageBreak
- '
- Me.tbbPageBreak.ImageIndex = 9
- Me.tbbPageBreak.Tag = "PageBreak"
- Me.tbbPageBreak.Text = "PageBreak"
- Me.tbbPageBreak.ToolTipText = "PageBreak"
- '
- 'tbbBarcode
- '
- Me.tbbBarcode.ImageIndex = 10
- Me.tbbBarcode.Tag = "Barcode"
- Me.tbbBarcode.Text = "Barcode"
- Me.tbbBarcode.ToolTipText = "Barcode"
- '
- 'Imgtoolbox
- '
- Me.Imgtoolbox.ImageSize = New System.Drawing.Size(16, 16)
- Me.Imgtoolbox.ImageStream = CType(resources.GetObject("Imgtoolbox.ImageStream"), System.Windows.Forms.ImageListStreamer)
- Me.Imgtoolbox.TransparentColor = System.Drawing.Color.Transparent
- '
- 'Label1
- '
- Me.Label1.BackColor = System.Drawing.SystemColors.ControlDark
- Me.Label1.Dock = System.Windows.Forms.DockStyle.Top
- Me.Label1.ForeColor = System.Drawing.SystemColors.ControlLightLight
- Me.Label1.Location = New System.Drawing.Point(0, 0)
- Me.Label1.Name = "Label1"
- Me.Label1.Size = New System.Drawing.Size(125, 17)
- Me.Label1.TabIndex = 0
- Me.Label1.Text = "ActiveReports"
- '
- 'Panel2
- '
- Me.Panel2.Controls.Add(Me.Panel5)
- Me.Panel2.Controls.Add(Me.Splitter2)
- Me.Panel2.Controls.Add(Me.Panel4)
- Me.Panel2.Dock = System.Windows.Forms.DockStyle.Right
- Me.Panel2.Location = New System.Drawing.Point(856, 66)
- Me.Panel2.Name = "Panel2"
- Me.Panel2.Size = New System.Drawing.Size(172, 667)
- Me.Panel2.TabIndex = 3
- '
- 'Panel5
- '
- Me.Panel5.Controls.Add(Me.ReportExplorer1)
- Me.Panel5.Dock = System.Windows.Forms.DockStyle.Fill
- Me.Panel5.Location = New System.Drawing.Point(0, 0)
- Me.Panel5.Name = "Panel5"
- Me.Panel5.Size = New System.Drawing.Size(172, 556)
- Me.Panel5.TabIndex = 2
- '
- 'ReportExplorer1
- '
- Me.ReportExplorer1.Dock = System.Windows.Forms.DockStyle.Fill
- Me.ReportExplorer1.Location = New System.Drawing.Point(0, 0)
- Me.ReportExplorer1.Name = "ReportExplorer1"
- Me.ReportExplorer1.ReportDesigner = Me.Designer1
- Me.ReportExplorer1.Size = New System.Drawing.Size(172, 556)
- Me.ReportExplorer1.TabIndex = 0
- '
- 'Designer1
- '
- Me.Designer1.DesignUnits = DataDynamics.ActiveReports.Design.MeasurementUnits.US
- Me.Designer1.Dock = System.Windows.Forms.DockStyle.Fill
- Me.Designer1.DrawGrid = True
- Me.Designer1.GridX = 16
- Me.Designer1.GridY = 16
- Me.Designer1.IsDirty = False
- Me.Designer1.Location = New System.Drawing.Point(125, 66)
- Me.Designer1.LockControls = False
- Me.Designer1.Name = "Designer1"
- Me.Designer1.ShowDataSourceIcon = True
- Me.Designer1.Size = New System.Drawing.Size(727, 667)
- Me.Designer1.SnapGrid = True
- Me.Designer1.TabIndex = 5
- Me.Designer1.ToolBoxItem = Nothing
- '
- 'Splitter2
- '
- Me.Splitter2.Dock = System.Windows.Forms.DockStyle.Bottom
- Me.Splitter2.Location = New System.Drawing.Point(0, 556)
- Me.Splitter2.Name = "Splitter2"
- Me.Splitter2.Size = New System.Drawing.Size(172, 3)
- Me.Splitter2.TabIndex = 1
- Me.Splitter2.TabStop = False
- '
- 'Panel4
- '
- Me.Panel4.Controls.Add(Me.PropertyGrid1)
- Me.Panel4.Dock = System.Windows.Forms.DockStyle.Bottom
- Me.Panel4.Location = New System.Drawing.Point(0, 559)
- Me.Panel4.Name = "Panel4"
- Me.Panel4.Size = New System.Drawing.Size(172, 108)
- Me.Panel4.TabIndex = 0
- '
- 'PropertyGrid1
- '
- Me.PropertyGrid1.CommandsVisibleIfAvailable = True
- Me.PropertyGrid1.Dock = System.Windows.Forms.DockStyle.Fill
- Me.PropertyGrid1.LargeButtons = False
- Me.PropertyGrid1.LineColor = System.Drawing.SystemColors.ScrollBar
- Me.PropertyGrid1.Location = New System.Drawing.Point(0, 0)
- Me.PropertyGrid1.Name = "PropertyGrid1"
- Me.PropertyGrid1.Size = New System.Drawing.Size(172, 108)
- Me.PropertyGrid1.TabIndex = 0
- Me.PropertyGrid1.Text = "PropertyGrid1"
- Me.PropertyGrid1.ViewBackColor = System.Drawing.SystemColors.Window
- Me.PropertyGrid1.ViewForeColor = System.Drawing.SystemColors.WindowText
- '
- 'Splitter1
- '
- Me.Splitter1.Dock = System.Windows.Forms.DockStyle.Right
- Me.Splitter1.Location = New System.Drawing.Point(852, 66)
- Me.Splitter1.Name = "Splitter1"
- Me.Splitter1.Size = New System.Drawing.Size(4, 667)
- Me.Splitter1.TabIndex = 4
- Me.Splitter1.TabStop = False
- '
- 'Panel3
- '
- Me.Panel3.Controls.Add(Me.tlbReport)
- Me.Panel3.Controls.Add(Me.cmbFontSize)
- Me.Panel3.Controls.Add(Me.cmbFonts)
- Me.Panel3.Controls.Add(Me.cmbClassName)
- Me.Panel3.Dock = System.Windows.Forms.DockStyle.Top
- Me.Panel3.Location = New System.Drawing.Point(0, 41)
- Me.Panel3.Name = "Panel3"
- Me.Panel3.Size = New System.Drawing.Size(1028, 25)
- Me.Panel3.TabIndex = 6
- '
- 'tlbReport
- '
- Me.tlbReport.Appearance = System.Windows.Forms.ToolBarAppearance.Flat
- Me.tlbReport.Buttons.AddRange(New System.Windows.Forms.ToolBarButton() {Me.tbbViewGrid, Me.tbbReorderGroups, Me.tbbLine8, Me.tbbEditScript, Me.tbbLine9, Me.tbbBold, Me.tbbItalic, Me.tbbUnderline, Me.tbbLine10, Me.tbbAlignLeft, Me.tbbCenter, Me.tbbAlignRight, Me.tbbJustify, Me.tbbLine11, Me.tbbBullets, Me.tbbDecreaseIndent, Me.tbbIncreaseIndent})
- Me.tlbReport.Dock = System.Windows.Forms.DockStyle.Fill
- Me.tlbReport.DropDownArrows = True
- Me.tlbReport.ImageList = Me.ImgReport
- Me.tlbReport.Location = New System.Drawing.Point(436, 0)
- Me.tlbReport.Name = "tlbReport"
- Me.tlbReport.ShowToolTips = True
- Me.tlbReport.Size = New System.Drawing.Size(592, 28)
- Me.tlbReport.TabIndex = 3
- '
- 'tbbViewGrid
- '
- Me.tbbViewGrid.ImageIndex = 12
- Me.tbbViewGrid.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbViewGrid.Tag = "ViewGrid"
- Me.tbbViewGrid.ToolTipText = "ViewGrid"
- '
- 'tbbReorderGroups
- '
- Me.tbbReorderGroups.ImageIndex = 11
- Me.tbbReorderGroups.Tag = "ReorderGroups"
- Me.tbbReorderGroups.ToolTipText = "ReorderGroups"
- '
- 'tbbLine8
- '
- Me.tbbLine8.Style = System.Windows.Forms.ToolBarButtonStyle.Separator
- '
- 'tbbEditScript
- '
- Me.tbbEditScript.ImageIndex = 10
- Me.tbbEditScript.Tag = "EditScript"
- Me.tbbEditScript.ToolTipText = "EditScript"
- '
- 'tbbLine9
- '
- Me.tbbLine9.Style = System.Windows.Forms.ToolBarButtonStyle.Separator
- '
- 'tbbBold
- '
- Me.tbbBold.ImageIndex = 0
- Me.tbbBold.Tag = "Bold"
- Me.tbbBold.ToolTipText = "Bold"
- '
- 'tbbItalic
- '
- Me.tbbItalic.ImageIndex = 1
- Me.tbbItalic.Tag = "Italic"
- Me.tbbItalic.ToolTipText = "Italic"
- '
- 'tbbUnderline
- '
- Me.tbbUnderline.ImageIndex = 2
- Me.tbbUnderline.Tag = "Underline"
- Me.tbbUnderline.ToolTipText = "Underline"
- '
- 'tbbLine10
- '
- Me.tbbLine10.Style = System.Windows.Forms.ToolBarButtonStyle.Separator
- '
- 'tbbAlignLeft
- '
- Me.tbbAlignLeft.ImageIndex = 6
- Me.tbbAlignLeft.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbAlignLeft.Tag = "AlignLeft"
- Me.tbbAlignLeft.ToolTipText = "AlignLeft"
- '
- 'tbbCenter
- '
- Me.tbbCenter.ImageIndex = 7
- Me.tbbCenter.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbCenter.Tag = "Center"
- Me.tbbCenter.ToolTipText = "Center"
- '
- 'tbbAlignRight
- '
- Me.tbbAlignRight.ImageIndex = 8
- Me.tbbAlignRight.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbAlignRight.Tag = "AlignRight"
- Me.tbbAlignRight.ToolTipText = "AlignRight"
- '
- 'tbbJustify
- '
- Me.tbbJustify.ImageIndex = 9
- Me.tbbJustify.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbJustify.Tag = "Justify"
- Me.tbbJustify.ToolTipText = "Justify"
- '
- 'tbbLine11
- '
- Me.tbbLine11.Style = System.Windows.Forms.ToolBarButtonStyle.Separator
- '
- 'tbbBullets
- '
- Me.tbbBullets.ImageIndex = 5
- Me.tbbBullets.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton
- Me.tbbBullets.Tag = "Bullets"
- Me.tbbBullets.ToolTipText = "Bullets"
- '
- 'tbbDecreaseIndent
- '
- Me.tbbDecreaseIndent.ImageIndex = 4
- Me.tbbDecreaseIndent.Tag = "DecreaseIndent"
- Me.tbbDecreaseIndent.ToolTipText = "DecreaseIndent"
- '
- 'tbbIncreaseIndent
- '
- Me.tbbIncreaseIndent.ImageIndex = 3
- Me.tbbIncreaseIndent.Tag = "IncreaseIndent"
- Me.tbbIncreaseIndent.ToolTipText = "IncreaseIndent"
- '
- 'ImgReport
- '
- Me.ImgReport.ImageSize = New System.Drawing.Size(16, 16)
- Me.ImgReport.ImageStream = CType(resources.GetObject("ImgReport.ImageStream"), System.Windows.Forms.ImageListStreamer)
- Me.ImgReport.TransparentColor = System.Drawing.Color.Transparent
- '
- 'cmbFontSize
- '
- Me.cmbFontSize.Dock = System.Windows.Forms.DockStyle.Left
- Me.cmbFontSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
- Me.cmbFontSize.Location = New System.Drawing.Point(290, 0)
- Me.cmbFontSize.Name = "cmbFontSize"
- Me.cmbFontSize.Size = New System.Drawing.Size(146, 20)
- Me.cmbFontSize.TabIndex = 2
- '
- 'cmbFonts
- '
- Me.cmbFonts.Dock = System.Windows.Forms.DockStyle.Left
- Me.cmbFonts.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
- Me.cmbFonts.Location = New System.Drawing.Point(145, 0)
- Me.cmbFonts.Name = "cmbFonts"
- Me.cmbFonts.Size = New System.Drawing.Size(145, 20)
- Me.cmbFonts.TabIndex = 1
- '
- 'cmbClassName
- '
- Me.cmbClassName.Dock = System.Windows.Forms.DockStyle.Left
- Me.cmbClassName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
- Me.cmbClassName.Location = New System.Drawing.Point(0, 0)
- Me.cmbClassName.Name = "cmbClassName"
- Me.cmbClassName.Size = New System.Drawing.Size(145, 20)
- Me.cmbClassName.TabIndex = 0
- '
- 'MainMenu1
- '
- Me.MainMenu1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mnuFile})
- '
- 'mnuFile
- '
- Me.mnuFile.Index = 0
- Me.mnuFile.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mnuPrintPreview, Me.MenuItem4, Me.mnuLoadLayout, Me.mnuSaveLayout, Me.MenuItem7, Me.mnuPageSetup, Me.MenuItem10, Me.mnuExit})
- Me.mnuFile.Text = "&File"
- '
- 'mnuPrintPreview
- '
- Me.mnuPrintPreview.Index = 0
- Me.mnuPrintPreview.Text = "&Print Preview"
- '
- 'MenuItem4
- '
- Me.MenuItem4.Index = 1
- Me.MenuItem4.Text = "-"
- '
- 'mnuLoadLayout
- '
- Me.mnuLoadLayout.Index = 2
- Me.mnuLoadLayout.Text = "&Load Layout"
- '
- 'mnuSaveLayout
- '
- Me.mnuSaveLayout.Index = 3
- Me.mnuSaveLayout.Text = "&Save Layout"
- '
- 'MenuItem7
- '
- Me.MenuItem7.Index = 4
- Me.MenuItem7.Text = "-"
- '
- 'mnuPageSetup
- '
- Me.mnuPageSetup.Index = 5
- Me.mnuPageSetup.Text = "Page Set&up"
- '
- 'MenuItem10
- '
- Me.MenuItem10.Index = 6
- Me.MenuItem10.Text = "-"
- '
- 'mnuExit
- '
- Me.mnuExit.Index = 7
- Me.mnuExit.Text = "E&xit"
- '
- 'StartForm
- '
- Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
- Me.ClientSize = New System.Drawing.Size(1028, 733)
- Me.Controls.Add(Me.Designer1)
- Me.Controls.Add(Me.Splitter1)
- Me.Controls.Add(Me.Panel2)
- Me.Controls.Add(Me.Panel1)
- Me.Controls.Add(Me.Panel3)
- Me.Controls.Add(Me.tlbLayout)
- Me.Menu = Me.MainMenu1
- Me.Name = "StartForm"
- Me.Text = "用户报表设计"
- Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
- Me.Panel1.ResumeLayout(False)
- Me.Panel2.ResumeLayout(False)
- Me.Panel5.ResumeLayout(False)
- Me.Panel4.ResumeLayout(False)
- Me.Panel3.ResumeLayout(False)
- Me.ResumeLayout(False)
- End Sub
- #End Region
- Protected Enum toolbarModes
- singleControl
- twoControls
- multiControls
- noControls
- End Enum
- Dim i As Integer
- Dim cnt As Integer
- Dim ctl As String
- #Region "fill comboboxes"
- Private Sub fillFonts()
- Me.cmbFonts.Items.Clear()
- Dim fc As New System.Drawing.Text.InstalledFontCollection()
- For i = 0 To fc.Families.Length - 1
- Me.cmbFonts.Items.Add(fc.Families(i).Name)
- Next
- Me.cmbFonts.SelectedIndex = 0
- End Sub
- Private Sub fillFontSizes()
- cmbFontSize.Items.Clear()
- cmbFontSize.Items.Add(" 8")
- cmbFontSize.Items.Add(" 9")
- cmbFontSize.Items.Add("10")
- cmbFontSize.Items.Add("11")
- cmbFontSize.Items.Add("12")
- cmbFontSize.Items.Add("14")
- cmbFontSize.Items.Add("16")
- cmbFontSize.Items.Add("18")
- cmbFontSize.Items.Add("20")
- cmbFontSize.Items.Add("22")
- cmbFontSize.Items.Add("24")
- cmbFontSize.Items.Add("26")
- cmbFontSize.Items.Add("28")
- cmbFontSize.Items.Add("36")
- cmbFontSize.Items.Add("48")
- cmbFontSize.Items.Add("72")
- Me.cmbFontSize.SelectedIndex = 0
- End Sub
- Private Sub fillClassName()
- Me.cmbClassName.Items.Clear()
- For i = 0 To Designer1.Report.StyleSheet.Count - 1
- Me.cmbClassName.Items.Add(Designer1.Report.StyleSheet(i).Name)
- Next
- Me.cmbClassName.SelectedIndex = 0
- End Sub
- #End Region
- Private Sub StartForm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
- Me.fillClassName()
- Me.fillFonts()
- Me.fillFontSizes()
- Me.setModes(toolbarModes.noControls)
- Me.Designer1.Focus()
- End Sub
- #Region "Selection Changed Actions for the Report Toolbar"
- Private Sub selChangeReportToolbar()
- Dim m_arrayFont As New ArrayList()
- Dim m_arrayFontSize As New ArrayList()
- Dim m_arrayClassName As New ArrayList()
- Dim sFont As String
- Dim sFontSize As String
- Dim sClassName As String
- sFont = ""
- sFontSize = ""
- sClassName = ""
- Dim ctl As String
- cnt = Designer1.Selection.Count
- If cnt = 0 Then
- Exit Sub
- End If
- For i = 0 To cnt - 1
- ctl = Designer1.Selection(i).GetType().ToString
- If ((ctl.IndexOf("TextBox") > 0) Or (ctl.IndexOf("CheckBox") > 0) Or (ctl.IndexOf("Label") > 0)) Then
- Select Case ctl
- Case "DataDynamics.ActiveReports.TextBox"
- sFont = CType(Designer1.Selection(i), DataDynamics.ActiveReports.TextBox).Font.Name.ToString()
- sFontSize = CType(Designer1.Selection(i), DataDynamics.ActiveReports.TextBox).Font.Size.ToString()
- sClassName = CType(Designer1.Selection(i), DataDynamics.ActiveReports.TextBox).ClassName.ToString()
- If m_arrayFont.Contains(sFont) = False Then
- m_arrayFont.Add(sFont)
- If m_arrayFontSize.Contains(sFontSize) = False Then
- m_arrayFontSize.Add(sFontSize)
- If m_arrayClassName.Contains(sClassName) = False Then
- m_arrayClassName.Add(sClassName)
- End If
- End If
- End If
- Case "DataDynamics.ActiveReports.Label"
- sFont = CType(Designer1.Selection(i), DataDynamics.ActiveReports.Label).Font.Name.ToString()
- sFontSize = CType(Designer1.Selection(i), DataDynamics.ActiveReports.Label).Font.Size.ToString()
- sClassName = CType(Designer1.Selection(i), DataDynamics.ActiveReports.Label).ClassName.ToString()
- If m_arrayFont.Contains(sFont) = False Then
- m_arrayFont.Add(sFont)
- If m_arrayFontSize.Contains(sFontSize) = False Then
- m_arrayFontSize.Add(sFontSize)
- If m_arrayClassName.Contains(sClassName) = False Then
- m_arrayClassName.Add(sClassName)
- End If
- End If
- End If
- Case "DataDynamics.ActiveReports.CheckBox"
- sFont = CType(Designer1.Selection(i), DataDynamics.ActiveReports.CheckBox).Font.Name
- sFontSize = CType(Designer1.Selection(i), DataDynamics.ActiveReports.CheckBox).Font.Size
- sClassName = CType(Designer1.Selection(i), DataDynamics.ActiveReports.CheckBox).ClassName
- If m_arrayFont.Contains(sFont) = False Then
- m_arrayFont.Add(sFont)
- If m_arrayFontSize.Contains(sFontSize) = False Then
- m_arrayFontSize.Add(sFontSize)
- If m_arrayClassName.Contains(sClassName) = False Then
- m_arrayClassName.Add(sClassName)
- End If
- End If
- End If
- End Select
- End If
- Next
- If ((m_arrayFont.Count >= 1) AndAlso (cnt > 1)) Then
- cmbFonts.Text = ""
- cmbFonts.Enabled = True
- ElseIf (m_arrayFont.Count = 0) Then
- cmbFonts.Text = ""
- cmbFonts.Enabled = False
- ElseIf (m_arrayFont.Count = 1) Then
- cmbFonts.Text = m_arrayFont(0).ToString()
- cmbFonts.Enabled = True
- End If
- If ((m_arrayFont.Count >= 1) AndAlso (cnt > 1)) Then
- cmbFontSize.Text = ""
- cmbFontSize.Enabled = True
- ElseIf (m_arrayFontSize.Count = 0) Then
- cmbFontSize.Text = ""
- cmbFontSize.Enabled = False
- ElseIf (m_arrayFontSize.Count = 1) Then
- cmbFontSize.Text = m_arrayFontSize(0).ToString()
- cmbFontSize.Enabled = True
- End If
- If ((m_arrayFont.Count >= 1) AndAlso (cnt > 1)) Then
- cmbClassName.Text = ""
- cmbClassName.Enabled = True
- ElseIf (m_arrayClassName.Count = 0) Then
- cmbClassName.Text = ""
- cmbClassName.Enabled = False
- ElseIf (m_arrayClassName.Count = 1) Then
- cmbClassName.Text = m_arrayClassName(0).ToString()
- cmbClassName.Enabled = True
- End If
- End Sub
- #End Region
- #Region "Selection Changed Actions for the Layout Toolbar"
- Private Sub selChangeLayoutToolbar()
- cnt = Me.Designer1.Selection.Count
- If cnt = 0 Then
- Me.setModes(toolbarModes.noControls)
- ElseIf ((cnt = 1) AndAlso ((Me.Designer1.Selection(0).GetType().BaseType.ToString() <> "DataDynamics.ActiveReports.Section") AndAlso (Me.Designer1.Selection(0).GetType().BaseType.ToString() <> "System.Object"))) Then
- Me.setModes(toolbarModes.singleControl)
- ElseIf (cnt = 2) Then
- Me.setModes(toolbarModes.twoControls)
- ElseIf (cnt > 2) Then
- Me.setModes(toolbarModes.multiControls)
- End If
- End Sub
- #End Region
- #Region "Selection Changed Actions for the Property Grid"
- Private Sub selChangePropGrid()
- cnt = Me.Designer1.Selection.Count - 1
- Dim selectedControls(cnt) As Object
- Try
- For i = 0 To Me.Designer1.Selection.Count - 1
- selectedControls.SetValue(CType(Me.Designer1.Selection(i), Object), i)
- Next
- Me.PropertyGrid1.SelectedObjects = selectedControls
- Catch ex As Exception
- MessageBox.Show(Me, ex.Message + ": " + ex.Source + ": " + ex.StackTrace, "Selection Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
- End Try
- End Sub
- #End Region
- Private Sub tlbARToolbox_ButtonClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles tlbARToolbox.ButtonClick
- If (e.Button.Tag.ToString() <> "Pointer") Then
- Designer1.ToolBoxItem = e.Button.Tag.ToString()
- Else
- Designer1.ToolBoxItem = Nothing
- End If
- End Sub
- Private Sub tlbReport_ButtonClick(ByVal sender As Object, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles tlbReport.ButtonClick
- executeReportAction(e.Button.Tag.ToString(), e)
- End Sub
- #Region "Execute Report Action method for tlbReport"
- Private Sub executeReportAction(ByVal action As String, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs)
- Try
- Select Case action
- Case "Bold"
- Designer1.ExecuteAction(DesignerAction.FormatFontBold)
- Case "Italic"
- Designer1.ExecuteAction(DesignerAction.FormatFontItalic)
- Case "Underline"
- Designer1.ExecuteAction(DesignerAction.FormatFontUnderline)
- Case "AlignRight"
- Designer1.ExecuteAction(DesignerAction.FormatTextAlignRight)
- Case "Center"
- Designer1.ExecuteAction(DesignerAction.FormatTextAlignCenter)
- Case "AlignLeft"
- Designer1.ExecuteAction(DesignerAction.FormatTextAlignLeft)
- Case "Justify"
- Designer1.ExecuteAction(DesignerAction.FormatTextAlignJustify)
- Case "Bullets"
- Designer1.ExecuteAction(DesignerAction.FormatRTFBullets)
- Case "DecreaseIndent"
- Designer1.ExecuteAction(DesignerAction.FormatRTFOutdent)
- Case "IncreaseIndent"
- Designer1.ExecuteAction(DesignerAction.FormatRTFIndent)
- Case "EditScript"
- Designer1.ExecuteAction(DesignerAction.EditScript)
-
- End Select
- Catch ex As Exception
- MessageBox.Show(Me, ex.Message, "Action Failed", MessageBoxButtons.OK, MessageBoxIcon.Error)
- End Try
- End Sub
- #End Region
- Private Sub cmbFonts_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmbFonts.SelectedIndexChanged
- If cmbFonts.Text <> "" Then
- setFont()
- End If
- End Sub
- Private Sub cmbFontSize_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmbFontSize.SelectedIndexChanged
- If cmbFontSize.Text <> "" Then
- setFont()
- End If
- End Sub
- Private Sub cmbClassName_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmbClassName.SelectedIndexChanged
- If cmbClassName.Text <> "" Then
- setClassName()
- End If
- End Sub
- #Region "Adjusts texts in the ComboBoxes"
- Private Sub setFont()
- For i = 0 To i < Designer1.Selection.Count - 1
- ctl = Designer1.Selection(i).GetType.ToString()
- If ((ctl.IndexOf("TextBox") > 0) Or (ctl.IndexOf("CheckBox") > 0) Or (ctl.IndexOf("Label") > 0)) Then
- Select Case ctl
- Case "DataDynamics.ActiveReports.TextBox"
- If cmbFontSize.Text <> "" Then
- CType(Designer1.Selection(i), DataDynamics.ActiveReports.TextBox).Font = New Font(cmbFonts.Text, (Long.Parse(cmbFontSize.Text)))
- Else
- CType(Designer1.Selection(i), DataDynamics.ActiveReports.TextBox).Font = New Font(cmbFonts.Text, (Long.Parse(Font.Size.ToString)))
- End If
- Case "DataDynamics.ActiveReports.Label"
- If cmbFontSize.Text <> "" Then
- CType(Designer1.Selection(i), DataDynamics.ActiveReports.Label).Font = New Font(cmbFonts.Text, (Long.Parse(cmbFontSize.Text)))
- Else
- CType(Designer1.Selection(i), DataDynamics.ActiveReports.Label).Font = New Font(cmbFonts.Text, (Long.Parse(Font.Size.ToString)))
- End If
- Case "DataDynamics.ActiveReports.CheckBox"
- If cmbFontSize.Text <> "" Then
- CType(Designer1.Selection(i), DataDynamics.ActiveReports.CheckBox).Font = New Font(cmbFonts.Text, (Long.Parse(cmbFontSize.Text)))
- Else
- CType(Designer1.Selection(i), DataDynamics.ActiveReports.CheckBox).Font = New Font(cmbFonts.Text, (Long.Parse(Font.Size.ToString)))
- End If
- End Select
- End If
- Next
- End Sub
- Private Sub setClassName()
- For i = 0 To i < Designer1.Selection.Count - 1
- ctl = Designer1.Selection(i).GetType.ToString()
- If ctl.IndexOf("TextBox") > 0 Or ctl.IndexOf("CheckBox") > 0 Or ctl.IndexOf("Label") > 0 Then
- Select Case ctl
- Case "DataDynamics.ActiveReports.TextBox"
- CType(Designer1.Selection(i), DataDynamics.ActiveReports.TextBox).ClassName = cmbClassName.Text
- Case "DataDynamics.ActiveReports.Label"
- CType(Designer1.Selection(i), DataDynamics.ActiveReports.Label).ClassName = cmbClassName.Text
- Case "DataDynamics.ActiveReports.CheckBox"
- CType(Designer1.Selection(i), DataDynamics.ActiveReports.CheckBox).ClassName = cmbClassName.Text
- End Select
- End If
- Next
- End Sub
- #End Region
- Private Sub Designer1_StatusChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Designer1.StatusChanged
- For i = 0 To Me.tlbReport.Buttons.Count - 1
- Dim tb As New System.Windows.Forms.ToolBarButton()
- tb = Me.tlbReport.Buttons(i)
- If tb.Tag Is Nothing = False Then
- setStatus(tb.Tag, tb)
- End If
- Next
- End Sub
- Private Sub setStatus(ByVal action As String, ByVal toolbutton As System.Windows.Forms.ToolBarButton)
- Dim m_action As New DataDynamics.ActiveReports.Design.DesignerAction()
- m_action = getActionFromString(action)
- toolbutton.Enabled = Designer1.QueryActionEnabled(m_action)
- toolbutton.Pushed = Designer1.QueryActionChecked(m_action)
- End Sub
- #Region "Designer Action returned for string value of action in function (tlbReport)"
- Private Function getActionFromString(ByVal action As String) As DataDynamics.ActiveReports.Design.DesignerAction
- Dim m_action As New DataDynamics.ActiveReports.Design.DesignerAction()
- Select Case (action)
- Case "Bold"
- m_action = DesignerAction.FormatFontBold
- Case "Italic"
- m_action = DesignerAction.FormatFontItalic
- Case "Underline"
- m_action = DesignerAction.FormatFontUnderline
- Case "Bullets"
- m_action = DesignerAction.FormatRTFBullets
- Case "IncreaseIndent"
- m_action = DesignerAction.FormatRTFIndent
- Case "DecreaseIndent"
- m_action = DesignerAction.FormatRTFOutdent
- Case "EditScript"
- m_action = DesignerAction.EditScript
- Case "ReorderGroups"
- m_action = DesignerAction.ReorderGroups
- Case "ViewGrid"
- m_action = DesignerAction.ViewGrid
- Case "AlignLeft"
- m_action = DesignerAction.FormatTextAlignLeft
- Case "Center"
- m_action = DesignerAction.FormatTextAlignCenter
- Case "AlignRight"
- m_action = DesignerAction.FormatTextAlignRight
- Case "Justify"
- m_action = DesignerAction.FormatTextAlignJustify
- End Select
- Return m_action
- End Function
- #End Region
- #Region "Sets the Mode for tlbLayout"
- 'Layout Toolbar stuff
- Private Sub setModes(ByVal tbModes As StartForm.toolbarModes)
- Me.SuspendLayout()
- Select Case tbModes
- Case toolbarModes.multiControls
- Me.tbbAlignBottoms.Enabled = True
- Me.tbbAlignCenters.Enabled = True
- Me.tbbAlignLefts.Enabled = True
- Me.tbbAlignMiddles.Enabled = True
- Me.tbbAlignRights.Enabled = True
- Me.tbbAligntoGrid.Enabled = True
- Me.tbbAlignTops.Enabled = True
- Me.tbbBringToFront.Enabled = True
- Me.tbbCenterHoriz.Enabled = True
- Me.tbbCenterVert.Enabled = True
- Me.tbbDecreaseHorizSpace.Enabled = True
- Me.tbbDecreaseVertSpace.Enabled = True
- Me.tbbIncreaseHorizSpace.Enabled = True
- Me.tbbIncreaseVertSpace.Enabled = True
- Me.tbbMakeHorizSpaceEqual.Enabled = True
- Me.tbbMakeSameHeight.Enabled = True
- Me.tbbMakeSameSize.Enabled = True
- Me.tbbMakeSameWidth.Enabled = True
- Me.tbbMakeVertSpaceEqual.Enabled = True
- Me.tbbRemoveHorizSpace.Enabled = True
- Me.tbbRemoveVertSpace.Enabled = True
- Me.tbbSendToBack.Enabled = True
- Me.tbbSizeToGrid.Enabled = True
- Case toolbarModes.twoControls
- Me.tbbAlignBottoms.Enabled = True
- Me.tbbAlignCenters.Enabled = True
- Me.tbbAlignLefts.Enabled = True
- Me.tbbAlignMiddles.Enabled = True
- Me.tbbAlignRights.Enabled = True
- Me.tbbAligntoGrid.Enabled = True
- Me.tbbAlignTops.Enabled = True
- Me.tbbBringToFront.Enabled = True
- Me.tbbCenterHoriz.Enabled = True
- Me.tbbCenterVert.Enabled = True
- Me.tbbDecreaseHorizSpace.Enabled = False
- Me.tbbDecreaseVertSpace.Enabled = False
- Me.tbbIncreaseHorizSpace.Enabled = False
- Me.tbbIncreaseVertSpace.Enabled = False
- Me.tbbMakeHorizSpaceEqual.Enabled = False
- Me.tbbMakeSameHeight.Enabled = True
- Me.tbbMakeSameWidth.Enabled = True
- Me.tbbMakeSameSize.Enabled = True
- Me.tbbMakeVertSpaceEqual.Enabled = False
- Me.tbbRemoveHorizSpace.Enabled = True
- Me.tbbRemoveVertSpace.Enabled = True
- Me.tbbSendToBack.Enabled = True
- Me.tbbSizeToGrid.Enabled = True
- Case toolbarModes.singleControl
- Me.tbbAlignBottoms.Enabled = False
- Me.tbbAlignCenters.Enabled = False
- Me.tbbAlignLefts.Enabled = False
- Me.tbbAlignMiddles.Enabled = False
- Me.tbbAlignRights.Enabled = False
- Me.tbbAligntoGrid.Enabled = True
- Me.tbbAlignTops.Enabled = False
- Me.tbbCenterHoriz.Enabled = True
- Me.tbbCenterVert.Enabled = True
- Me.tbbDecreaseVertSpace.Enabled = False
- Me.tbbIncreaseVertSpace.Enabled = False
- Me.tbbDecreaseHorizSpace.Enabled = False
- Me.tbbIncreaseHorizSpace.Enabled = False
- Me.tbbMakeHorizSpaceEqual.Enabled = False
- Me.tbbMakeSameHeight.Enabled = False
- Me.tbbMakeSameSize.Enabled = False
- Me.tbbMakeSameWidth.Enabled = False
- Me.tbbMakeVertSpaceEqual.Enabled = False
- Me.tbbRemoveHorizSpace.Enabled = False
- Me.tbbRemoveVertSpace.Enabled = False
- Me.tbbSendToBack.Enabled = True
- Me.tbbSizeToGrid.Enabled = True
- Me.tbbBringToFront.Enabled = True
- Case toolbarModes.noControls
- Me.tbbAlignBottoms.Enabled = False
- Me.tbbAlignCenters.Enabled = False
- Me.tbbAlignLefts.Enabled = False
- Me.tbbAlignMiddles.Enabled = False
- Me.tbbAlignRights.Enabled = False
- Me.tbbAligntoGrid.Enabled = False
- Me.tbbAlignTops.Enabled = False
- Me.tbbBringToFront.Enabled = False
- Me.tbbCenterHoriz.Enabled = False
- Me.tbbCenterVert.Enabled = False
- Me.tbbDecreaseHorizSpace.Enabled = False
- Me.tbbDecreaseVertSpace.Enabled = False
- Me.tbbIncreaseHorizSpace.Enabled = False
- Me.tbbIncreaseVertSpace.Enabled = False
- Me.tbbMakeHorizSpaceEqual.Enabled = False
- Me.tbbMakeSameHeight.Enabled = False
- Me.tbbMakeSameSize.Enabled = False
- Me.tbbMakeSameWidth.Enabled = False
- Me.tbbMakeVertSpaceEqual.Enabled = False
- Me.tbbRemoveHorizSpace.Enabled = False
- Me.tbbRemoveVertSpace.Enabled = False
- Me.tbbSendToBack.Enabled = False
- Me.tbbSizeToGrid.Enabled = False
- End Select
- Me.ResumeLayout()
- End Sub
- #End Region
- Private Sub tlbLayout_ButtonClick(ByVal sender As Object, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles tlbLayout.ButtonClick
- Me.executeLayoutAction(e.Button.Tag.ToString())
-
- End Sub
- #Region "Execute action code for tlbLayout"
- Private Sub executeLayoutAction(ByVal actionTool As String)
- Select Case actionTool
- Case "BringToFront"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatOrderBringToFront)
- Case "SendToBack"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatOrderSendToBack)
- Case "MakeSameHeight"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatSizeSameHeight)
- Case "MakeSameWidth"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatSizeSameWidth)
- Case "MakeSameSize"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatSizeBoth)
- Case "AlignTops"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatAlignTop)
- Case "AlignBottoms"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatAlignBottom)
- Case "AlignLefts"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatAlignLeft)
- Case "AlignRights"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatAlignRight)
- Case "AlignMiddles"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatAlignMiddle)
- Case "AlignCenters"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatAlignCenter)
- Case "SizeToGrid"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.SnapToGrid)
- Case "MakeHorizSpaceEqual"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatSpaceEquallyHorizontal)
- Case "IncreaseHorizSpace"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatSpaceIncreaseHorizontal)
- Case "DecreaseHorizSpace"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatSpaceDecreaseHorizontal)
- Case "MakeVertSpaceEqual"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatSpaceEquallyVertical)
- Case "IncreaseVertSpace"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatSpaceIncreaseVertical)
- Case "DecreaseVertSpace"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatSpaceDecreaseVertical)
- Case "CenterHoriz"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatCenterHorizontally)
- Case "CenterVert"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatCenterVertically)
- Case "RemoveHorizSpace"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatSpaceRemoveHorizontal)
- Case "RemoveVertSpace"
- Me.Designer1.ExecuteAction(DataDynamics.ActiveReports.Design.DesignerAction.FormatSpaceRemoveVertical)
- Case "加载报表"
- Me.Designer1.ExecuteAction(DesignerAction.FileOpen)
- Case "保存报表"
- Me.Designer1.ExecuteAction(DesignerAction.FileSave)
- Case "报表预览"
- Dim rpt As New DataDynamics.ActiveReports.ActiveReport
- Dim m_stream As New System.IO.MemoryStream
- Me.Designer1.Report.SaveLayout(m_stream)
- m_stream.Position = 0
- rpt.LoadLayout(m_stream)
- m_stream.Close()
- Dim frm As New frmViewer
- frm.SetReport(rpt)
- frm.ShowDialog(Me)
- Case "打印设置"
- Me.Designer1.ExecuteAction(DesignerAction.ReportSettings)
- Case "退出"
- Me.Close()
- End Select
- End Sub
- #End Region
- 'Menu actions code
- Private Sub mnuPrintPreview_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuPrintPreview.Click
- Dim rpt As New DataDynamics.ActiveReports.ActiveReport()
- Dim m_stream As New System.IO.MemoryStream()
- Me.Designer1.Report.SaveLayout(m_stream)
- m_stream.Position = 0
- rpt.LoadLayout(m_stream)
- m_stream.Close()
- Dim frm As New frmViewer()
- frm.SetReport(rpt)
- frm.ShowDialog(Me)
- End Sub
- Private Sub mnuLoadLayout_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuLoadLayout.Click
- Me.Designer1.ExecuteAction(DesignerAction.FileOpen)
- End Sub
- Private Sub mnuSaveLayout_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuSaveLayout.Click
- Me.Designer1.ExecuteAction(DesignerAction.FileSave)
- End Sub
- Private Sub mnuPageSetup_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuPageSetup.Click
- Me.Designer1.ExecuteAction(DesignerAction.ReportSettings)
- End Sub
- Private Sub mnuExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuExit.Click
- Me.Close()
- End Sub
- Private Sub Designer1_SelectionChanged() Handles Designer1.SelectionChanged
- selChangeReportToolbar()
- selChangeLayoutToolbar()
- selChangePropGrid()
- End Sub
- Private Sub Designer1_SystemColorsChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Designer1.SystemColorsChanged
- End Sub
- Private Sub Designer1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Designer1.Load
- End Sub
- End Class