home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 4 Unleashed / Visual_Basic_4_Unleashed_SAMS_Publishing_1995.iso / crystal / extras / ocx45_32 / demo.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-08-30  |  124.0 KB  |  3,152 lines

  1. VERSION 4.00
  2. Begin VB.Form Demo 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "Crystal Reports 4.5 OCX Demo Application"
  5.    ClientHeight    =   6315
  6.    ClientLeft      =   990
  7.    ClientTop       =   1575
  8.    ClientWidth     =   10320
  9.    Height          =   6720
  10.    Icon            =   "Demo.frx":0000
  11.    Left            =   930
  12.    LinkTopic       =   "Form1"
  13.    LockControls    =   -1  'True
  14.    MaxButton       =   0   'False
  15.    ScaleHeight     =   421
  16.    ScaleMode       =   3  'Pixel
  17.    ScaleWidth      =   688
  18.    ShowInTaskbar   =   0   'False
  19.    Top             =   1230
  20.    Width           =   10440
  21.    Begin VB.Timer Timer1 
  22.       Left            =   9840
  23.       Top             =   0
  24.    End
  25.    Begin VB.CommandButton CmdCancel 
  26.       Caption         =   "Cancel"
  27.       Height          =   375
  28.       Left            =   8400
  29.       TabIndex        =   16
  30.       Top             =   5760
  31.       Width           =   1575
  32.    End
  33.    Begin VB.CommandButton CmdAccept 
  34.       Caption         =   "Print Report"
  35.       Height          =   375
  36.       Left            =   6720
  37.       TabIndex        =   15
  38.       Top             =   5760
  39.       Width           =   1455
  40.    End
  41.    Begin VB.CommandButton CmdNext 
  42.       Caption         =   "Next >>"
  43.       Height          =   375
  44.       Left            =   2040
  45.       TabIndex        =   14
  46.       Top             =   5760
  47.       Width           =   1455
  48.    End
  49.    Begin VB.CommandButton CmdBack 
  50.       Caption         =   "<< Back "
  51.       Height          =   375
  52.       Left            =   360
  53.       TabIndex        =   13
  54.       Top             =   5760
  55.       Width           =   1455
  56.    End
  57.    Begin TabDlg.SSTab MainTab 
  58.       Height          =   5415
  59.       Left            =   360
  60.       TabIndex        =   0
  61.       Top             =   240
  62.       Width           =   9615
  63.       _Version        =   65536
  64.       _ExtentX        =   16960
  65.       _ExtentY        =   9551
  66.       _StockProps     =   15
  67.       Caption         =   "Destination"
  68.       TabsPerRow      =   6
  69.       Tab             =   1
  70.       TabOrientation  =   0
  71.       Tabs            =   6
  72.       Style           =   1
  73.       TabMaxWidth     =   265
  74.       TabHeight       =   529
  75.       TabCaption(0)   =   "Open a Crystal Report"
  76.       Tab(0).ControlCount=   1
  77.       Tab(0).ControlEnabled=   0   'False
  78.       Tab(0).Control(0)=   "Frame1"
  79.       TabCaption(1)   =   "Destination"
  80.       Tab(1).ControlCount=   1
  81.       Tab(1).ControlEnabled=   -1  'True
  82.       Tab(1).Control(0)=   "Frame4"
  83.       TabCaption(2)   =   "Database / Formatting"
  84.       Tab(2).ControlCount=   1
  85.       Tab(2).ControlEnabled=   0   'False
  86.       Tab(2).Control(0)=   "Frame9"
  87.       TabCaption(3)   =   "Set Report Formulas"
  88.       Tab(3).ControlCount=   1
  89.       Tab(3).ControlEnabled=   0   'False
  90.       Tab(3).Control(0)=   "Frame5"
  91.       TabCaption(4)   =   "Graphing"
  92.       Tab(4).ControlCount=   1
  93.       Tab(4).ControlEnabled=   0   'False
  94.       Tab(4).Control(0)=   "Frame27"
  95.       TabCaption(5)   =   "About The OCX Demo"
  96.       Tab(5).ControlCount=   1
  97.       Tab(5).ControlEnabled=   0   'False
  98.       Tab(5).Control(0)=   "Frame20"
  99.       Begin VB.Frame Frame27 
  100.          Height          =   4695
  101.          Left            =   -74520
  102.          TabIndex        =   39
  103.          Top             =   480
  104.          Width           =   8895
  105.          Begin VB.TextBox TxtGrphNum 
  106.             Height          =   285
  107.             Left            =   8040
  108.             TabIndex        =   270
  109.             Top             =   840
  110.             Width           =   735
  111.          End
  112.          Begin VB.CommandButton CmdGrphType 
  113.             Caption         =   "Set &Type"
  114.             Height          =   375
  115.             Left            =   6180
  116.             TabIndex        =   269
  117.             Top             =   4200
  118.             Width           =   1200
  119.          End
  120.          Begin VB.CommandButton CmdGrphOpt 
  121.             Caption         =   "Set  &Options"
  122.             Height          =   375
  123.             Left            =   4800
  124.             TabIndex        =   268
  125.             Top             =   4200
  126.             Width           =   1200
  127.          End
  128.          Begin VB.ComboBox CboSecList 
  129.             Height          =   300
  130.             Index           =   1
  131.             Left            =   2640
  132.             Style           =   2  'Dropdown List
  133.             TabIndex        =   245
  134.             Top             =   840
  135.             Width           =   3255
  136.          End
  137.          Begin VB.CommandButton CmdSetGraph 
  138.             Caption         =   "&Set Text"
  139.             Height          =   375
  140.             Left            =   7560
  141.             TabIndex        =   236
  142.             Top             =   4200
  143.             Width           =   1200
  144.          End
  145.          Begin VB.Frame Frame43 
  146.             Height          =   3375
  147.             Left            =   120
  148.             TabIndex        =   166
  149.             Top             =   1200
  150.             Width           =   4575
  151.             Begin VB.TextBox TxtRisers 
  152.                Height          =   285
  153.                Left            =   2520
  154.                TabIndex        =   278
  155.                Top             =   2475
  156.                Width           =   1935
  157.             End
  158.             Begin VB.ComboBox CboDataDir 
  159.                Height          =   300
  160.                Left            =   120
  161.                Style           =   2  'Dropdown List
  162.                TabIndex        =   275
  163.                Top             =   2880
  164.                Width           =   3015
  165.             End
  166.             Begin VB.TextBox TxtGraphCols 
  167.                Height          =   285
  168.                Left            =   2520
  169.                TabIndex        =   274
  170.                Top             =   2175
  171.                Width           =   1935
  172.             End
  173.             Begin VB.TextBox TxtGraphRows 
  174.                Height          =   285
  175.                Left            =   2520
  176.                TabIndex        =   273
  177.                Top             =   1860
  178.                Width           =   1935
  179.             End
  180.             Begin VB.CommandButton CmdGraphData 
  181.                Caption         =   "Set &Data"
  182.                Height          =   375
  183.                Left            =   3240
  184.                TabIndex        =   272
  185.                Top             =   2880
  186.                Width           =   1200
  187.             End
  188.             Begin VB.Frame Frame46 
  189.                Caption         =   "Graph Options:"
  190.                Height          =   1575
  191.                Left            =   120
  192.                TabIndex        =   237
  193.                Top             =   240
  194.                Width           =   4335
  195.                Begin VB.OptionButton OptGrphBars 
  196.                   Caption         =   "Horzontal"
  197.                   Height          =   255
  198.                   Index           =   1
  199.                   Left            =   3240
  200.                   TabIndex        =   260
  201.                   Top             =   840
  202.                   Width           =   975
  203.                End
  204.                Begin VB.OptionButton OptGrphBars 
  205.                   Caption         =   "Vertical"
  206.                   Height          =   195
  207.                   Index           =   0
  208.                   Left            =   2160
  209.                   TabIndex        =   259
  210.                   Top             =   840
  211.                   Value           =   -1  'True
  212.                   Width           =   855
  213.                End
  214.                Begin VB.CheckBox ChkLegend 
  215.                   Caption         =   "Show Legend"
  216.                   Height          =   225
  217.                   Left            =   120
  218.                   TabIndex        =   244
  219.                   Top             =   720
  220.                   Width           =   1335
  221.                End
  222.                Begin VB.CheckBox ChkGridLines 
  223.                   Caption         =   "Show Grid Lines"
  224.                   Height          =   255
  225.                   Left            =   120
  226.                   TabIndex        =   243
  227.                   Top             =   480
  228.                   Width           =   1455
  229.                End
  230.                Begin VB.CheckBox ChkBarRisers 
  231.                   Caption         =   "Show Bar Risers"
  232.                   Height          =   255
  233.                   Left            =   120
  234.                   TabIndex        =   242
  235.                   Top             =   240
  236.                   Width           =   1455
  237.                End
  238.                Begin VB.TextBox TxtGrphFont 
  239.                   Height          =   285
  240.                   Left            =   3000
  241.                   TabIndex        =   241
  242.                   Top             =   240
  243.                   Width           =   1215
  244.                End
  245.                Begin VB.TextBox TxtMinRange 
  246.                   Height          =   285
  247.                   Left            =   2160
  248.                   TabIndex        =   239
  249.                   Top             =   1200
  250.                   Width           =   735
  251.                End
  252.                Begin VB.TextBox TxtMaxRange 
  253.                   Height          =   285
  254.                   Left            =   3480
  255.                   TabIndex        =   238
  256.                   Top             =   1200
  257.                   Width           =   735
  258.                End
  259.                Begin VB.Label Label46 
  260.                   Caption         =   "Direction of Bars"
  261.                   Height          =   255
  262.                   Left            =   2160
  263.                   TabIndex        =   258
  264.                   Top             =   600
  265.                   Width           =   1335
  266.                End
  267.                Begin VB.Label Label45 
  268.                   Caption         =   "Max:"
  269.                   Height          =   255
  270.                   Left            =   3000
  271.                   TabIndex        =   257
  272.                   Top             =   1200
  273.                   Width           =   375
  274.                End
  275.                Begin VB.Label Label36 
  276.                   Caption         =   "Range of Values:         Min:"
  277.                   Height          =   255
  278.                   Left            =   120
  279.                   TabIndex        =   256
  280.                   Top             =   1200
  281.                   Width           =   1935
  282.                End
  283.                Begin VB.Label Label44 
  284.                   Caption         =   "Graph Font:"
  285.                   Height          =   255
  286.                   Left            =   2040
  287.                   TabIndex        =   240
  288.                   Top             =   360
  289.                   Width           =   975
  290.                End
  291.             End
  292.             Begin VB.Label Label48 
  293.                Caption         =   "Summarized field for Risers:"
  294.                Height          =   255
  295.                Left            =   120
  296.                TabIndex        =   279
  297.                Top             =   2560
  298.                Width           =   2415
  299.             End
  300.             Begin VB.Label Label47 
  301.                Caption         =   "Group # used to create columns:"
  302.                Height          =   255
  303.                Left            =   120
  304.                TabIndex        =   277
  305.                Top             =   2280
  306.                Width           =   2380
  307.             End
  308.             Begin VB.Label Label43 
  309.                Caption         =   "Group # used to create rows:"
  310.                Height          =   255
  311.                Left            =   120
  312.                TabIndex        =   276
  313.                Top             =   1920
  314.                Width           =   2295
  315.             End
  316.          End
  317.          Begin VB.Frame Frame28 
  318.             Caption         =   "Graph Text:"
  319.             Height          =   2895
  320.             Left            =   4800
  321.             TabIndex        =   165
  322.             Top             =   1200
  323.             Width           =   3975
  324.             Begin VB.TextBox TxtZAxis 
  325.                Height          =   285
  326.                Left            =   1350
  327.                TabIndex        =   254
  328.                Top             =   2450
  329.                Width           =   2500
  330.             End
  331.             Begin VB.TextBox TxtYAxis 
  332.                Height          =   285
  333.                Left            =   1350
  334.                TabIndex        =   235
  335.                Top             =   2130
  336.                Width           =   2500
  337.             End
  338.             Begin VB.TextBox TxtXAxis 
  339.                Height          =   285
  340.                Left            =   1350
  341.                TabIndex        =   234
  342.                Top             =   1820
  343.                Width           =   2500
  344.             End
  345.             Begin VB.TextBox TxtSeriesTitle 
  346.                Height          =   285
  347.                Left            =   1350
  348.                TabIndex        =   233
  349.                Top             =   1500
  350.                Width           =   2500
  351.             End
  352.             Begin VB.TextBox TxtGrpTitle 
  353.                Height          =   285
  354.                Left            =   1350
  355.                TabIndex        =   232
  356.                Top             =   1190
  357.                Width           =   2500
  358.             End
  359.             Begin VB.TextBox TxtFootNote 
  360.                Height          =   285
  361.                Left            =   1350
  362.                TabIndex        =   231
  363.                Top             =   870
  364.                Width           =   2500
  365.             End
  366.             Begin VB.TextBox TxtSubTitle 
  367.                Height          =   285
  368.                Left            =   1350
  369.                TabIndex        =   230
  370.                Top             =   560
  371.                Width           =   2500
  372.             End
  373.             Begin VB.TextBox TxtTitle 
  374.                Height          =   285
  375.                Left            =   1350
  376.                TabIndex        =   229
  377.                Top             =   240
  378.                Width           =   2500
  379.             End
  380.             Begin VB.Label LblGraphText 
  381.                Caption         =   "Z Axis Title:"
  382.                Height          =   255
  383.                Index           =   7
  384.                Left            =   240
  385.                TabIndex        =   255
  386.                Top             =   2600
  387.                Width           =   1095
  388.             End
  389.             Begin VB.Label LblGraphText 
  390.                Caption         =   "Y Axis Title:"
  391.                Height          =   255
  392.                Index           =   6
  393.                Left            =   240
  394.                TabIndex        =   253
  395.                Top             =   2250
  396.                Width           =   1095
  397.             End
  398.             Begin VB.Label LblGraphText 
  399.                Caption         =   "X Axis Title:"
  400.                Height          =   255
  401.                Index           =   5
  402.                Left            =   240
  403.                TabIndex        =   252
  404.                Top             =   1940
  405.                Width           =   1095
  406.             End
  407.             Begin VB.Label LblGraphText 
  408.                Caption         =   "Series Title:"
  409.                Height          =   255
  410.                Index           =   4
  411.                Left            =   240
  412.                TabIndex        =   251
  413.                Top             =   1620
  414.                Width           =   1215
  415.             End
  416.             Begin VB.Label LblGraphText 
  417.                Caption         =   "Groups Title:"
  418.                Height          =   255
  419.                Index           =   3
  420.                Left            =   240
  421.                TabIndex        =   250
  422.                Top             =   1290
  423.                Width           =   975
  424.             End
  425.             Begin VB.Label LblGraphText 
  426.                Caption         =   "FootNote:"
  427.                Height          =   255
  428.                Index           =   2
  429.                Left            =   240
  430.                TabIndex        =   249
  431.                Top             =   980
  432.                Width           =   1095
  433.             End
  434.             Begin VB.Label LblGraphText 
  435.                Caption         =   "Sub Title:"
  436.                Height          =   255
  437.                Index           =   1
  438.                Left            =   240
  439.                TabIndex        =   248
  440.                Top             =   680
  441.                Width           =   1095
  442.             End
  443.             Begin VB.Label LblGraphText 
  444.                Caption         =   "Title:"
  445.                Height          =   255
  446.                Index           =   0
  447.                Left            =   240
  448.                TabIndex        =   247
  449.                Top             =   360
  450.                Width           =   975
  451.             End
  452.          End
  453.          Begin VB.Label LblGrphNum 
  454.             Caption         =   "Graph Number:"
  455.             Height          =   255
  456.             Left            =   6720
  457.             TabIndex        =   271
  458.             Top             =   960
  459.             Width           =   1215
  460.          End
  461.          Begin VB.Label LblGrphSection 
  462.             Caption         =   "Section with Graph to be modified:"
  463.             Height          =   255
  464.             Left            =   120
  465.             TabIndex        =   246
  466.             Top             =   960
  467.             Width           =   2655
  468.          End
  469.          Begin ComctlLib.Toolbar Toolbar1 
  470.             Height          =   675
  471.             Left            =   750
  472.             TabIndex        =   164
  473.             Top             =   120
  474.             Width           =   7455
  475.             _Version        =   65536
  476.             _ExtentX        =   13150
  477.             _ExtentY        =   1191
  478.             _StockProps     =   96
  479.             ImageList       =   "ImageList1"
  480.             ButtonWidth     =   1085
  481.             ButtonHeight    =   1085
  482.             NumButtons      =   12
  483.             i1              =   "Demo.frx":030A
  484.             i2              =   "Demo.frx":04BD
  485.             i3              =   "Demo.frx":0670
  486.             i4              =   "Demo.frx":081F
  487.             i5              =   "Demo.frx":09D2
  488.             i6              =   "Demo.frx":0B81
  489.             i7              =   "Demo.frx":0D34
  490.             i8              =   "Demo.frx":0EDB
  491.             i9              =   "Demo.frx":1082
  492.             i10             =   "Demo.frx":122D
  493.             i11             =   "Demo.frx":13CD
  494.             i12             =   "Demo.frx":1581
  495.             AlignSet        =   -1  'True
  496.          End
  497.          Begin ComctlLib.ImageList ImageList1 
  498.             Left            =   240
  499.             Top             =   360
  500.             _Version        =   65536
  501.             _ExtentX        =   1005
  502.             _ExtentY        =   1005
  503.             _StockProps     =   1
  504.             BackColor       =   -2147483643
  505.             ImageWidth      =   34
  506.             ImageHeight     =   35
  507.             NumImages       =   12
  508.             i1              =   "Demo.frx":1735
  509.             i2              =   "Demo.frx":1B28
  510.             i3              =   "Demo.frx":1F07
  511.             i4              =   "Demo.frx":22E6
  512.             i5              =   "Demo.frx":26C5
  513.             i6              =   "Demo.frx":2A1C
  514.             i7              =   "Demo.frx":2D53
  515.             i8              =   "Demo.frx":309A
  516.             i9              =   "Demo.frx":33E1
  517.             i10             =   "Demo.frx":37AC
  518.             i11             =   "Demo.frx":3B8C
  519.             i12             =   "Demo.frx":3F58
  520.          End
  521.       End
  522.       Begin VB.Frame Frame4 
  523.          Height          =   4695
  524.          Left            =   360
  525.          TabIndex        =   37
  526.          Top             =   480
  527.          Width           =   8895
  528.          Begin TabDlg.SSTab DestTab 
  529.             Height          =   4215
  530.             Left            =   240
  531.             TabIndex        =   38
  532.             Top             =   240
  533.             Width           =   8415
  534.             _Version        =   65536
  535.             _ExtentX        =   14843
  536.             _ExtentY        =   7435
  537.             _StockProps     =   15
  538.             Caption         =   "E-Mail"
  539.             TabsPerRow      =   5
  540.             Tab             =   4
  541.             TabOrientation  =   0
  542.             Tabs            =   5
  543.             Style           =   1
  544.             TabMaxWidth     =   0
  545.             TabHeight       =   529
  546.             TabCaption(0)   =   "General"
  547.             Tab(0).ControlCount=   1
  548.             Tab(0).ControlEnabled=   0   'False
  549.             Tab(0).Control(0)=   "Frame7"
  550.             TabCaption(1)   =   "Print to a Window"
  551.             Tab(1).ControlCount=   1
  552.             Tab(1).ControlEnabled=   0   'False
  553.             Tab(1).Control(0)=   "Frame22"
  554.             TabCaption(2)   =   "Print to a Printer"
  555.             Tab(2).ControlCount=   1
  556.             Tab(2).ControlEnabled=   0   'False
  557.             Tab(2).Control(0)=   "Frame23"
  558.             TabCaption(3)   =   "Print to a File"
  559.             Tab(3).ControlCount=   1
  560.             Tab(3).ControlEnabled=   0   'False
  561.             Tab(3).Control(0)=   "Frame24"
  562.             TabCaption(4)   =   "E-Mail"
  563.             Tab(4).ControlCount=   1
  564.             Tab(4).ControlEnabled=   -1  'True
  565.             Tab(4).Control(0)=   "FrameEmail"
  566.             Begin VB.Frame FrameEmail 
  567.                Height          =   3255
  568.                Left            =   360
  569.                TabIndex        =   44
  570.                Top             =   600
  571.                Width           =   7695
  572.                Begin VB.ComboBox CboPrnFileType 
  573.                   Height          =   300
  574.                   Index           =   1
  575.                   Left            =   240
  576.                   Style           =   2  'Dropdown List
  577.                   TabIndex        =   267
  578.                   Top             =   2760
  579.                   Width           =   3855
  580.                End
  581.                Begin VB.TextBox TxtQuote 
  582.                   Enabled         =   0   'False
  583.                   Height          =   285
  584.                   Index           =   1
  585.                   Left            =   6720
  586.                   TabIndex        =   266
  587.                   Top             =   840
  588.                   Width           =   700
  589.                End
  590.                Begin VB.TextBox TxtSep 
  591.                   Enabled         =   0   'False
  592.                   Height          =   285
  593.                   Index           =   1
  594.                   Left            =   5160
  595.                   TabIndex        =   264
  596.                   Top             =   840
  597.                   Width           =   700
  598.                End
  599.                Begin VB.CheckBox ChkDateFormat 
  600.                   Caption         =   "Same &date format as in the report"
  601.                   Enabled         =   0   'False
  602.                   Height          =   255
  603.                   Index           =   1
  604.                   Left            =   4320
  605.                   TabIndex        =   262
  606.                   Top             =   550
  607.                   Width           =   3255
  608.                End
  609.                Begin VB.CheckBox ChkNumFormat 
  610.                   Caption         =   "Same &number format as in the report"
  611.                   Enabled         =   0   'False
  612.                   Height          =   255
  613.                   Index           =   1
  614.                   Left            =   4320
  615.                   TabIndex        =   261
  616.                   Top             =   240
  617.                   Width           =   3255
  618.                End
  619.                Begin VB.CommandButton CmdEmail 
  620.                   Caption         =   "Set Mail &Info"
  621.                   Height          =   375
  622.                   Left            =   6000
  623.                   TabIndex        =   154
  624.                   Top             =   2760
  625.                   Width           =   1455
  626.                End
  627.                Begin VB.TextBox TxtMailMessage 
  628.                   Height          =   1215
  629.                   Left            =   240
  630.                   MultiLine       =   -1  'True
  631.                   ScrollBars      =   2  'Vertical
  632.                   TabIndex        =   48
  633.                   Top             =   1320
  634.                   Width           =   7215
  635.                End
  636.                Begin VB.TextBox TxtMailSub 
  637.                   Height          =   285
  638.                   Left            =   1080
  639.                   TabIndex        =   47
  640.                   Top             =   960
  641.                   Width           =   3135
  642.                End
  643.                Begin VB.TextBox TxtMailCC 
  644.                   Height          =   285
  645.                   Left            =   1080
  646.                   TabIndex        =   46
  647.                   Top             =   600
  648.                   Width           =   3135
  649.                End
  650.                Begin VB.TextBox TxtMailTo 
  651.                   Height          =   285
  652.                   Left            =   1080
  653.                   TabIndex        =   45
  654.                   Top             =   240
  655.                   Width           =   3135
  656.                End
  657.                Begin VB.Label LblQuote 
  658.                   Caption         =   "Quote:"
  659.                   Enabled         =   0   'False
  660.                   Height          =   255
  661.                   Index           =   1
  662.                   Left            =   6120
  663.                   TabIndex        =   265
  664.                   Top             =   960
  665.                   Width           =   615
  666.                End
  667.                Begin VB.Label LblSep 
  668.                   Caption         =   "Seperator:"
  669.                   Enabled         =   0   'False
  670.                   Height          =   255
  671.                   Index           =   1
  672.                   Left            =   4320
  673.                   TabIndex        =   263
  674.                   Top             =   960
  675.                   Width           =   855
  676.                End
  677.                Begin VB.Label Label23 
  678.                   Caption         =   "Subject:"
  679.                   Height          =   255
  680.                   Left            =   240
  681.                   TabIndex        =   153
  682.                   Top             =   1080
  683.                   Width           =   855
  684.                End
  685.                Begin VB.Label Label22 
  686.                   Caption         =   "CC:"
  687.                   Height          =   255
  688.                   Left            =   240
  689.                   TabIndex        =   152
  690.                   Top             =   720
  691.                   Width           =   495
  692.                End
  693.                Begin VB.Label Label13 
  694.                   Caption         =   "To:"
  695.                   Height          =   255
  696.                   Left            =   240
  697.                   TabIndex        =   49
  698.                   Top             =   360
  699.                   Width           =   495
  700.                End
  701.             End
  702.             Begin VB.Frame Frame24 
  703.                Height          =   3135
  704.                Left            =   -74640
  705.                TabIndex        =   43
  706.                Top             =   600
  707.                Width           =   7695
  708.                Begin VB.TextBox TxtPrnFileName 
  709.                   Height          =   285
  710.                   Left            =   4800
  711.                   TabIndex        =   53
  712.                   Top             =   240
  713.                   Width           =   2775
  714.                End
  715.                Begin VB.Frame Frame29 
  716.                   Caption         =   "Print File Type:"
  717.                   Height          =   855
  718.                   Left            =   3120
  719.                   TabIndex        =   52
  720.                   Top             =   2160
  721.                   Width           =   4455
  722.                   Begin VB.ComboBox CboPrnFileType 
  723.                      Height          =   300
  724.                      Index           =   0
  725.                      ItemData        =   "Demo.frx":4338
  726.                      Left            =   120
  727.                      List            =   "Demo.frx":433A
  728.                      Style           =   2  'Dropdown List
  729.                      TabIndex        =   144
  730.                      Top             =   360
  731.                      Width           =   4215
  732.                   End
  733.                End
  734.                Begin VB.Frame FrameSep 
  735.                   Height          =   1455
  736.                   Left            =   3120
  737.                   TabIndex        =   51
  738.                   Top             =   600
  739.                   Width           =   4455
  740.                   Begin VB.TextBox TxtQuote 
  741.                      Enabled         =   0   'False
  742.                      Height          =   285
  743.                      Index           =   0
  744.                      Left            =   3360
  745.                      TabIndex        =   150
  746.                      Top             =   960
  747.                      Width           =   700
  748.                   End
  749.                   Begin VB.TextBox TxtSep 
  750.                      Enabled         =   0   'False
  751.                      Height          =   285
  752.                      Index           =   0
  753.                      Left            =   1200
  754.                      TabIndex        =   147
  755.                      Top             =   960
  756.                      Width           =   700
  757.                   End
  758.                   Begin VB.CheckBox ChkDateFormat 
  759.                      Caption         =   "Same &date as in the report"
  760.                      Enabled         =   0   'False
  761.                      Height          =   255
  762.                      Index           =   0
  763.                      Left            =   120
  764.                      TabIndex        =   146
  765.                      Top             =   560
  766.                      Width           =   2295
  767.                   End
  768.                   Begin VB.CheckBox ChkNumFormat 
  769.                      Caption         =   "Same &number format as in the report"
  770.                      Enabled         =   0   'False
  771.                      Height          =   255
  772.                      Index           =   0
  773.                      Left            =   120
  774.                      TabIndex        =   145
  775.                      Top             =   240
  776.                      Width           =   3135
  777.                   End
  778.                   Begin VB.Label LblQuote 
  779.                      Caption         =   "Quote:"
  780.                      Enabled         =   0   'False
  781.                      Height          =   255
  782.                      Index           =   0
  783.                      Left            =   2280
  784.                      TabIndex        =   149
  785.                      Top             =   1080
  786.                      Width           =   1215
  787.                   End
  788.                   Begin VB.Label LblSep 
  789.                      Caption         =   "Seperator:"
  790.                      Enabled         =   0   'False
  791.                      Height          =   255
  792.                      Index           =   0
  793.                      Left            =   120
  794.                      TabIndex        =   148
  795.                      Top             =   1080
  796.                      Width           =   1215
  797.                   End
  798.                End
  799.                Begin VB.Frame Frame26 
  800.                   Caption         =   "File Directory:"
  801.                   Height          =   2775
  802.                   Left            =   120
  803.                   TabIndex        =   50
  804.                   Top             =   240
  805.                   Width           =   2895
  806.                   Begin VB.DriveListBox PrnFileDrive 
  807.                      Height          =   315
  808.                      Left            =   120
  809.                      TabIndex        =   56
  810.                      Top             =   2400
  811.                      Width           =   2655
  812.                   End
  813.                   Begin VB.DirListBox PrnFileDir 
  814.                      Height          =   2055
  815.                      Left            =   120
  816.                      TabIndex        =   55
  817.                      Top             =   240
  818.                      Width           =   2655
  819.                   End
  820.                End
  821.                Begin VB.Label Label14 
  822.                   Caption         =   "Filename:"
  823.                   Height          =   255
  824.                   Left            =   3180
  825.                   TabIndex        =   54
  826.                   Top             =   360
  827.                   Width           =   1335
  828.                End
  829.             End
  830.             Begin VB.Frame Frame23 
  831.                Height          =   3135
  832.                Left            =   -74640
  833.                TabIndex        =   42
  834.                Top             =   600
  835.                Width           =   7695
  836.                Begin VB.Frame Frame31 
  837.                   Caption         =   "Print Range:"
  838.                   Height          =   2775
  839.                   Left            =   120
  840.                   TabIndex        =   58
  841.                   Top             =   240
  842.                   Width           =   4455
  843.                   Begin VB.CommandButton CmdRange 
  844.                      Caption         =   "Set &Print Range"
  845.                      Height          =   375
  846.                      Left            =   2960
  847.                      TabIndex        =   209
  848.                      Top             =   1680
  849.                      Width           =   1335
  850.                   End
  851.                   Begin VB.OptionButton OptRange 
  852.                      Caption         =   "Modify Print Range"
  853.                      Height          =   255
  854.                      Index           =   1
  855.                      Left            =   2160
  856.                      TabIndex        =   208
  857.                      Top             =   240
  858.                      Width           =   2055
  859.                   End
  860.                   Begin VB.OptionButton OptRange 
  861.                      Caption         =   "All Pages"
  862.                      Height          =   255
  863.                      Index           =   0
  864.                      Left            =   240
  865.                      TabIndex        =   207
  866.                      Top             =   240
  867.                      Value           =   -1  'True
  868.                      Width           =   1815
  869.                   End
  870.                   Begin VB.TextBox TxtStartPage 
  871.                      Enabled         =   0   'False
  872.                      Height          =   285
  873.                      Left            =   3360
  874.                      TabIndex        =   204
  875.                      Top             =   840
  876.                      Width           =   855
  877.                   End
  878.                   Begin VB.TextBox TxtEndPage 
  879.                      Enabled         =   0   'False
  880.                      Height          =   285
  881.                      Left            =   3360
  882.                      TabIndex        =   203
  883.                      Top             =   1200
  884.                      Width           =   855
  885.                   End
  886.                   Begin VB.CheckBox ChkCollate 
  887.                      Caption         =   "Collate Copies"
  888.                      Height          =   255
  889.                      Left            =   120
  890.                      TabIndex        =   108
  891.                      Top             =   2350
  892.                      Width           =   1575
  893.                   End
  894.                   Begin VB.TextBox TxtPrnCopies 
  895.                      Height          =   285
  896.                      Left            =   3360
  897.                      TabIndex        =   106
  898.                      Top             =   2280
  899.                      Width           =   495
  900.                   End
  901.                   Begin VB.Label LblRange 
  902.                      Caption         =   "End Page:"
  903.                      Enabled         =   0   'False
  904.                      Height          =   255
  905.                      Index           =   1
  906.                      Left            =   1680
  907.                      TabIndex        =   206
  908.                      Top             =   1320
  909.                      Width           =   1455
  910.                   End
  911.                   Begin VB.Label LblRange 
  912.                      Caption         =   "Start Page:"
  913.                      Enabled         =   0   'False
  914.                      Height          =   255
  915.                      Index           =   0
  916.                      Left            =   1680
  917.                      TabIndex        =   205
  918.                      Top             =   960
  919.                      Width           =   1095
  920.                   End
  921.                   Begin VB.Label LblNumCopies 
  922.                      Caption         =   "Number of Copies:"
  923.                      Height          =   255
  924.                      Left            =   1920
  925.                      TabIndex        =   107
  926.                      Top             =   2400
  927.                      Width           =   1335
  928.                   End
  929.                   Begin Spin.SpinButton SpinButton1 
  930.                      Height          =   350
  931.                      Left            =   3960
  932.                      TabIndex        =   105
  933.                      Top             =   2250
  934.                      Width           =   350
  935.                      _Version        =   65536
  936.                      _ExtentX        =   609
  937.                      _ExtentY        =   609
  938.                      _StockProps     =   73
  939.                      TdThickness     =   2
  940.                   End
  941.                End
  942.                Begin VB.Frame Frame30 
  943.                   Caption         =   "Select Printer:"
  944.                   Height          =   2775
  945.                   Left            =   4680
  946.                   TabIndex        =   57
  947.                   Top             =   240
  948.                   Width           =   2895
  949.                   Begin VB.CommandButton CmdSelPrinter 
  950.                      Caption         =   "&Select Printer"
  951.                      Height          =   375
  952.                      Left            =   240
  953.                      TabIndex        =   65
  954.                      Top             =   2280
  955.                      Width           =   2415
  956.                   End
  957.                   Begin VB.TextBox TxtPrnPort 
  958.                      Height          =   285
  959.                      Left            =   240
  960.                      TabIndex        =   64
  961.                      Top             =   1680
  962.                      Width           =   2415
  963.                   End
  964.                   Begin VB.TextBox TxtPrnDriver 
  965.                      Height          =   285
  966.                      Left            =   240
  967.                      TabIndex        =   62
  968.                      Top             =   1080
  969.                      Width           =   2415
  970.                   End
  971.                   Begin VB.TextBox TxtPrnName 
  972.                      Height          =   285
  973.                      Left            =   240
  974.                      TabIndex        =   60
  975.                      Top             =   480
  976.                      Width           =   2415
  977.                   End
  978.                   Begin VB.Label Label17 
  979.                      Caption         =   "Printer Port:"
  980.                      Height          =   255
  981.                      Left            =   240
  982.                      TabIndex        =   63
  983.                      Top             =   1440
  984.                      Width           =   2415
  985.                   End
  986.                   Begin VB.Label Label16 
  987.                      Caption         =   "Printer Driver:"
  988.                      Height          =   255
  989.                      Left            =   240
  990.                      TabIndex        =   61
  991.                      Top             =   840
  992.                      Width           =   2415
  993.                   End
  994.                   Begin VB.Label Label15 
  995.                      Caption         =   "Printer Name:"
  996.                      Height          =   255
  997.                      Left            =   240
  998.                      TabIndex        =   59
  999.                      Top             =   240
  1000.                      Width           =   2535
  1001.                   End
  1002.                End
  1003.             End
  1004.             Begin VB.Frame Frame22 
  1005.                Height          =   3135
  1006.                Left            =   -74640
  1007.                TabIndex        =   41
  1008.                Top             =   600
  1009.                Width           =   7695
  1010.                Begin VB.Frame Frame39 
  1011.                   Caption         =   "Window Title"
  1012.                   Height          =   1095
  1013.                   Left            =   3960
  1014.                   TabIndex        =   97
  1015.                   Top             =   240
  1016.                   Width           =   3615
  1017.                   Begin VB.CommandButton CmdWinTitle 
  1018.                      Caption         =   "Set &Title"
  1019.                      Height          =   375
  1020.                      Left            =   360
  1021.                      TabIndex        =   100
  1022.                      Top             =   600
  1023.                      Width           =   1215
  1024.                   End
  1025.                   Begin VB.CommandButton CmdClearTitle 
  1026.                      Caption         =   "&Clear Title"
  1027.                      Height          =   375
  1028.                      Left            =   2040
  1029.                      TabIndex        =   99
  1030.                      Top             =   600
  1031.                      Width           =   1215
  1032.                   End
  1033.                   Begin VB.TextBox TxtWinTitle 
  1034.                      Height          =   285
  1035.                      Left            =   120
  1036.                      TabIndex        =   98
  1037.                      Top             =   240
  1038.                      Width           =   3375
  1039.                   End
  1040.                End
  1041.                Begin VB.Frame Frame36 
  1042.                   Caption         =   "Window Style:"
  1043.                   Height          =   1335
  1044.                   Left            =   120
  1045.                   TabIndex        =   78
  1046.                   Top             =   240
  1047.                   Width           =   3735
  1048.                   Begin VB.CheckBox ChkCtrls 
  1049.                      Caption         =   "Window Controls"
  1050.                      Height          =   255
  1051.                      Left            =   120
  1052.                      TabIndex        =   101
  1053.                      Top             =   960
  1054.                      Value           =   1  'Checked
  1055.                      Width           =   1695
  1056.                   End
  1057.                   Begin VB.CheckBox ChkMax 
  1058.                      Caption         =   "Maximize Button"
  1059.                      Height          =   255
  1060.                      Left            =   120
  1061.                      TabIndex        =   90
  1062.                      Top             =   600
  1063.                      Value           =   1  'Checked
  1064.                      Width           =   1455
  1065.                   End
  1066.                   Begin VB.CheckBox ChkMin 
  1067.                      Caption         =   "Minimize Button"
  1068.                      Height          =   255
  1069.                      Left            =   120
  1070.                      TabIndex        =   89
  1071.                      Top             =   240
  1072.                      Value           =   1  'Checked
  1073.                      Width           =   1575
  1074.                   End
  1075.                End
  1076.                Begin VB.Frame Frame35 
  1077.                   Caption         =   "Page Margins:"
  1078.                   Height          =   1575
  1079.                   Left            =   3960
  1080.                   TabIndex        =   74
  1081.                   Top             =   1440
  1082.                   Width           =   3615
  1083.                   Begin VB.CommandButton CmdClearMargins 
  1084.                      Caption         =   "Clear &Margins"
  1085.                      Height          =   375
  1086.                      Left            =   2040
  1087.                      TabIndex        =   84
  1088.                      Top             =   1080
  1089.                      Width           =   1215
  1090.                   End
  1091.                   Begin VB.CommandButton CmdSetMargins 
  1092.                      Caption         =   "&Set Margins"
  1093.                      Height          =   375
  1094.                      Left            =   360
  1095.                      TabIndex        =   83
  1096.                      Top             =   1080
  1097.                      Width           =   1215
  1098.                   End
  1099.                   Begin VB.TextBox TxtLeft 
  1100.                      Alignment       =   1  'Right Justify
  1101.                      Height          =   285
  1102.                      Left            =   2640
  1103.                      TabIndex        =   82
  1104.                      Top             =   600
  1105.                      Width           =   735
  1106.                   End
  1107.                   Begin VB.TextBox TxtBottom 
  1108.                      Alignment       =   1  'Right Justify
  1109.                      Height          =   285
  1110.                      Left            =   960
  1111.                      TabIndex        =   81
  1112.                      Top             =   600
  1113.                      Width           =   735
  1114.                   End
  1115.                   Begin VB.TextBox TxtRight 
  1116.                      Alignment       =   1  'Right Justify
  1117.                      Height          =   285
  1118.                      Left            =   2640
  1119.                      TabIndex        =   80
  1120.                      Top             =   240
  1121.                      Width           =   735
  1122.                   End
  1123.                   Begin VB.TextBox TxtTop 
  1124.                      Alignment       =   1  'Right Justify
  1125.                      Height          =   285
  1126.                      Left            =   960
  1127.                      TabIndex        =   79
  1128.                      Top             =   240
  1129.                      Width           =   735
  1130.                   End
  1131.                   Begin VB.Label LblBottom 
  1132.                      Caption         =   "Bottom:"
  1133.                      Height          =   255
  1134.                      Left            =   240
  1135.                      TabIndex        =   88
  1136.                      Top             =   720
  1137.                      Width           =   735
  1138.                   End
  1139.                   Begin VB.Label LblTop 
  1140.                      Caption         =   "Top:"
  1141.                      Height          =   255
  1142.                      Left            =   240
  1143.                      TabIndex        =   87
  1144.                      Top             =   360
  1145.                      Width           =   615
  1146.                   End
  1147.                   Begin VB.Label LblLeft 
  1148.                      Caption         =   "Left:"
  1149.                      Height          =   255
  1150.                      Left            =   2040
  1151.                      TabIndex        =   86
  1152.                      Top             =   720
  1153.                      Width           =   495
  1154.                   End
  1155.                   Begin VB.Label LblRight 
  1156.                      Caption         =   "Right:"
  1157.                      Height          =   255
  1158.                      Left            =   2040
  1159.                      TabIndex        =   85
  1160.                      Top             =   360
  1161.                      Width           =   615
  1162.                   End
  1163.                End
  1164.                Begin VB.Frame Frame34 
  1165.                   Caption         =   "Window State:"
  1166.                   Height          =   1335
  1167.                   Left            =   120
  1168.                   TabIndex        =   73
  1169.                   Top             =   1680
  1170.                   Width           =   3735
  1171.                   Begin VB.OptionButton OptWinState 
  1172.                      Caption         =   "Normal Preview Window"
  1173.                      Height          =   255
  1174.                      Index           =   0
  1175.                      Left            =   120
  1176.                      TabIndex        =   77
  1177.                      Top             =   240
  1178.                      Value           =   -1  'True
  1179.                      Width           =   2415
  1180.                   End
  1181.                   Begin VB.OptionButton OptWinState 
  1182.                      Caption         =   "Maximized Preview Window"
  1183.                      Height          =   255
  1184.                      Index           =   2
  1185.                      Left            =   120
  1186.                      TabIndex        =   76
  1187.                      Top             =   960
  1188.                      Width           =   2295
  1189.                   End
  1190.                   Begin VB.OptionButton OptWinState 
  1191.                      Caption         =   "Minimized Preview Window"
  1192.                      Height          =   255
  1193.                      Index           =   1
  1194.                      Left            =   120
  1195.                      TabIndex        =   75
  1196.                      Top             =   600
  1197.                      Width           =   2295
  1198.                   End
  1199.                End
  1200.             End
  1201.             Begin VB.Frame Frame7 
  1202.                Height          =   3135
  1203.                Left            =   -74640
  1204.                TabIndex        =   40
  1205.                Top             =   600
  1206.                Width           =   7695
  1207.                Begin VB.Frame Frame40 
  1208.                   Caption         =   "Print Date:"
  1209.                   Height          =   1575
  1210.                   Left            =   120
  1211.                   TabIndex        =   104
  1212.                   Top             =   1440
  1213.                   Width           =   4455
  1214.                   Begin VB.CommandButton CmdPrintDate 
  1215.                      Caption         =   "Set &Print Date"
  1216.                      Height          =   375
  1217.                      Left            =   3000
  1218.                      TabIndex        =   225
  1219.                      Top             =   1080
  1220.                      Width           =   1335
  1221.                   End
  1222.                   Begin VB.TextBox TxtPrintDate 
  1223.                      Height          =   285
  1224.                      Left            =   3000
  1225.                      TabIndex        =   201
  1226.                      Top             =   240
  1227.                      Width           =   1335
  1228.                   End
  1229.                   Begin VB.Label Label35 
  1230.                      Caption         =   "e.g.  08/23/1995"
  1231.                      Height          =   255
  1232.                      Left            =   3000
  1233.                      TabIndex        =   228
  1234.                      Top             =   720
  1235.                      Width           =   1335
  1236.                   End
  1237.                   Begin VB.Label Label34 
  1238.                      Caption         =   $"Demo.frx":433C
  1239.                      Height          =   1215
  1240.                      Left            =   120
  1241.                      TabIndex        =   202
  1242.                      Top             =   240
  1243.                      Width           =   2655
  1244.                   End
  1245.                End
  1246.                Begin VB.Frame Frame38 
  1247.                   Caption         =   "Report Destination:"
  1248.                   Height          =   1095
  1249.                   Left            =   120
  1250.                   TabIndex        =   92
  1251.                   Top             =   240
  1252.                   Width           =   4455
  1253.                   Begin VB.OptionButton OptDest 
  1254.                      Caption         =   "Send Report via E-Mail"
  1255.                      Height          =   255
  1256.                      Index           =   3
  1257.                      Left            =   2280
  1258.                      TabIndex        =   96
  1259.                      Top             =   600
  1260.                      Width           =   1935
  1261.                   End
  1262.                   Begin VB.OptionButton OptDest 
  1263.                      Caption         =   "Print Report to File"
  1264.                      Height          =   255
  1265.                      Index           =   2
  1266.                      Left            =   2280
  1267.                      TabIndex        =   95
  1268.                      Top             =   240
  1269.                      Width           =   1935
  1270.                   End
  1271.                   Begin VB.OptionButton OptDest 
  1272.                      Caption         =   "Print Report to Printer"
  1273.                      Height          =   255
  1274.                      Index           =   1
  1275.                      Left            =   120
  1276.                      TabIndex        =   94
  1277.                      Top             =   600
  1278.                      Width           =   1935
  1279.                   End
  1280.                   Begin VB.OptionButton OptDest 
  1281.                      Caption         =   "Print Report to Window"
  1282.                      Height          =   255
  1283.                      Index           =   0
  1284.                      Left            =   120
  1285.                      TabIndex        =   93
  1286.                      Top             =   240
  1287.                      Width           =   2055
  1288.                   End
  1289.                End
  1290.                Begin VB.Frame Frame37 
  1291.                   Caption         =   "General Settings:"
  1292.                   Height          =   2775
  1293.                   Left            =   4680
  1294.                   TabIndex        =   91
  1295.                   Top             =   240
  1296.                   Width           =   2895
  1297.                   Begin VB.CommandButton CmdNumDetails 
  1298.                      Caption         =   "Set &Detail Copies"
  1299.                      Height          =   375
  1300.                      Left            =   840
  1301.                      TabIndex        =   227
  1302.                      Top             =   2280
  1303.                      Width           =   1400
  1304.                   End
  1305.                   Begin VB.TextBox TxtNumDetails 
  1306.                      Height          =   300
  1307.                      Left            =   1560
  1308.                      TabIndex        =   226
  1309.                      Top             =   1710
  1310.                      Width           =   615
  1311.                   End
  1312.                   Begin VB.CheckBox ChkDiscard 
  1313.                      Caption         =   "Discard Saved Data"
  1314.                      Height          =   255
  1315.                      Left            =   120
  1316.                      TabIndex        =   103
  1317.                      Top             =   600
  1318.                      Value           =   1  'Checked
  1319.                      Width           =   2175
  1320.                   End
  1321.                   Begin VB.CheckBox ChkStatus 
  1322.                      Caption         =   "Recieve Report Status "
  1323.                      Height          =   255
  1324.                      Left            =   120
  1325.                      TabIndex        =   102
  1326.                      Top             =   240
  1327.                      Width           =   2055
  1328.                   End
  1329.                   Begin Spin.SpinButton SpinButton2 
  1330.                      Height          =   345
  1331.                      Left            =   2280
  1332.                      TabIndex        =   224
  1333.                      Top             =   1680
  1334.                      Width           =   345
  1335.                      _Version        =   65536
  1336.                      _ExtentX        =   609
  1337.                      _ExtentY        =   609
  1338.                      _StockProps     =   73
  1339.                      TdThickness     =   2
  1340.                   End
  1341.                   Begin VB.Label Label32 
  1342.                      Caption         =   "Number of Detail Copies:"
  1343.                      Height          =   255
  1344.                      Left            =   120
  1345.                      TabIndex        =   196
  1346.                      Top             =   1200
  1347.                      Width           =   2655
  1348.                   End
  1349.                End
  1350.             End
  1351.          End
  1352.       End
  1353.       Begin VB.Frame Frame20 
  1354.          Height          =   4695
  1355.          Left            =   -74760
  1356.          TabIndex        =   17
  1357.          Top             =   480
  1358.          Width           =   9015
  1359.          Begin VB.Frame Frame33 
  1360.             Height          =   2655
  1361.             Left            =   120
  1362.             TabIndex        =   67
  1363.             Top             =   1920
  1364.             Width           =   8775
  1365.             Begin VB.Label Label31 
  1366.                Caption         =   "800-663-1244 or  604-681-3435                E-Mail: sales@crystalinc.com"
  1367.                Height          =   735
  1368.                Left            =   3480
  1369.                TabIndex        =   163
  1370.                Top             =   1800
  1371.                Width           =   2055
  1372.             End
  1373.             Begin VB.Label Label30 
  1374.                Caption         =   "You can also Contact Crystal directly at:"
  1375.                Height          =   255
  1376.                Left            =   480
  1377.                TabIndex        =   162
  1378.                Top             =   1800
  1379.                Width           =   2895
  1380.             End
  1381.             Begin VB.Label Label29 
  1382.                Alignment       =   2  'Center
  1383.                Caption         =   "Or Go Reports to visit the Crystal CompuServe forum."
  1384.                Height          =   255
  1385.                Left            =   360
  1386.                TabIndex        =   161
  1387.                Top             =   1440
  1388.                Width           =   7815
  1389.             End
  1390.             Begin VB.Label Label28 
  1391.                Alignment       =   2  'Center
  1392.                Caption         =   $"Demo.frx":4416
  1393.                Height          =   375
  1394.                Left            =   360
  1395.                TabIndex        =   160
  1396.                Top             =   960
  1397.                Width           =   8055
  1398.             End
  1399.             Begin VB.Label Label21 
  1400.                Alignment       =   2  'Center
  1401.                Caption         =   "Crystal Reports is the #1 award-winning reporting tool  with over 1 million copies shipped."
  1402.                Height          =   255
  1403.                Left            =   720
  1404.                TabIndex        =   72
  1405.                Top             =   600
  1406.                Width           =   7215
  1407.             End
  1408.             Begin VB.Label Label20 
  1409.                Alignment       =   2  'Center
  1410.                Caption         =   "Copyright 
  1411.  1995 Crystal Computer Services Inc.  A Seagate Software Company"
  1412.                Height          =   255
  1413.                Left            =   1320
  1414.                TabIndex        =   71
  1415.                Top             =   240
  1416.                Width           =   6135
  1417.             End
  1418.          End
  1419.          Begin VB.Frame Frame32 
  1420.             Height          =   1575
  1421.             Left            =   120
  1422.             TabIndex        =   66
  1423.             Top             =   240
  1424.             Width           =   8775
  1425.             Begin VB.PictureBox Picture1 
  1426.                AutoSize        =   -1  'True
  1427.                Height          =   510
  1428.                Left            =   240
  1429.                Picture         =   "Demo.frx":44C3
  1430.                ScaleHeight     =   480
  1431.                ScaleWidth      =   480
  1432.                TabIndex        =   68
  1433.                Top             =   240
  1434.                Width           =   510
  1435.             End
  1436.             Begin VB.Label Label19 
  1437.                Alignment       =   2  'Center
  1438.                Caption         =   $"Demo.frx":47CD
  1439.                Height          =   615
  1440.                Left            =   720
  1441.                TabIndex        =   70
  1442.                Top             =   840
  1443.                Width           =   7335
  1444.             End
  1445.             Begin VB.Label Label18 
  1446.                Alignment       =   2  'Center
  1447.                Caption         =   "Crystal Reports Professional 4.5 sample application using the Crystal 32-bit OLE Control."
  1448.                Height          =   495
  1449.                Left            =   1200
  1450.                TabIndex        =   69
  1451.                Top             =   240
  1452.                Width           =   6255
  1453.             End
  1454.          End
  1455.       End
  1456.       Begin VB.Frame Frame9 
  1457.          Height          =   4695
  1458.          Left            =   -74760
  1459.          TabIndex        =   9
  1460.          Top             =   480
  1461.          Width           =   9015
  1462.          Begin TabDlg.SSTab DataTab 
  1463.             Height          =   4215
  1464.             Left            =   360
  1465.             TabIndex        =   109
  1466.             Top             =   240
  1467.             Width           =   8415
  1468.             _Version        =   65536
  1469.             _ExtentX        =   14843
  1470.             _ExtentY        =   7435
  1471.             _StockProps     =   15
  1472.             Caption         =   "Format Section"
  1473.             TabsPerRow      =   5
  1474.             Tab             =   3
  1475.             TabOrientation  =   0
  1476.             Tabs            =   5
  1477.             Style           =   1
  1478.             TabMaxWidth     =   0
  1479.             TabHeight       =   529
  1480.             TabCaption(0)   =   "Database Location"
  1481.             Tab(0).ControlCount=   2
  1482.             Tab(0).ControlEnabled=   0   'False
  1483.             Tab(0).Control(0)=   "CmdSecurity"
  1484.             Tab(0).Control(1)=   "Frame6"
  1485.             TabCaption(1)   =   "ODBC Connection"
  1486.             Tab(1).ControlCount=   1
  1487.             Tab(1).ControlEnabled=   0   'False
  1488.             Tab(1).Control(0)=   "Frame8"
  1489.             TabCaption(2)   =   "SQL Query"
  1490.             Tab(2).ControlCount=   1
  1491.             Tab(2).ControlEnabled=   0   'False
  1492.             Tab(2).Control(0)=   "Frame42"
  1493.             TabCaption(3)   =   "Format Section"
  1494.             Tab(3).ControlCount=   1
  1495.             Tab(3).ControlEnabled=   -1  'True
  1496.             Tab(3).Control(0)=   "Frame44"
  1497.             TabCaption(4)   =   "Group Condition"
  1498.             Tab(4).ControlCount=   1
  1499.             Tab(4).ControlEnabled=   0   'False
  1500.             Tab(4).Control(0)=   "Frame45"
  1501.             Begin VB.Frame Frame45 
  1502.                Height          =   3375
  1503.                Left            =   -74760
  1504.                TabIndex        =   197
  1505.                Top             =   480
  1506.                Width           =   7935
  1507.                Begin VB.TextBox TxtGrpSection 
  1508.                   Height          =   285
  1509.                   Left            =   3240
  1510.                   TabIndex        =   223
  1511.                   Top             =   360
  1512.                   Width           =   1095
  1513.                End
  1514.                Begin VB.OptionButton OptGrpCond 
  1515.                   Caption         =   "Descending"
  1516.                   Height          =   255
  1517.                   Index           =   1
  1518.                   Left            =   5280
  1519.                   TabIndex        =   220
  1520.                   Top             =   1920
  1521.                   Width           =   1575
  1522.                End
  1523.                Begin VB.OptionButton OptGrpCond 
  1524.                   Caption         =   "Ascending"
  1525.                   Height          =   255
  1526.                   Index           =   0
  1527.                   Left            =   3240
  1528.                   TabIndex        =   219
  1529.                   Top             =   1920
  1530.                   Value           =   -1  'True
  1531.                   Width           =   1935
  1532.                End
  1533.                Begin VB.CommandButton CmdGrpCond 
  1534.                   Caption         =   "Set &Group"
  1535.                   Height          =   375
  1536.                   Left            =   6240
  1537.                   TabIndex        =   218
  1538.                   Top             =   2880
  1539.                   Width           =   1455
  1540.                End
  1541.                Begin VB.TextBox TxtGrpCond 
  1542.                   Height          =   285
  1543.                   Left            =   3240
  1544.                   TabIndex        =   214
  1545.                   Top             =   840
  1546.                   Width           =   3615
  1547.                End
  1548.                Begin VB.ComboBox CboCond 
  1549.                   Height          =   300
  1550.                   Left            =   3240
  1551.                   Style           =   2  'Dropdown List
  1552.                   TabIndex        =   213
  1553.                   Top             =   1320
  1554.                   Width           =   3615
  1555.                End
  1556.                Begin VB.Label Label42 
  1557.                   Caption         =   $"Demo.frx":48C1
  1558.                   Height          =   975
  1559.                   Left            =   120
  1560.                   TabIndex        =   222
  1561.                   Top             =   2280
  1562.                   Width           =   5895
  1563.                End
  1564.                Begin VB.Label Label41 
  1565.                   Caption         =   "Sort Direction of group:"
  1566.                   Height          =   255
  1567.                   Left            =   240
  1568.                   TabIndex        =   221
  1569.                   Top             =   1920
  1570.                   Width           =   2415
  1571.                End
  1572.                Begin VB.Label Label40 
  1573.                   Caption         =   "Condtion value that changes group:"
  1574.                   Height          =   255
  1575.                   Left            =   240
  1576.                   TabIndex        =   217
  1577.                   Top             =   1440
  1578.                   Width           =   2775
  1579.                End
  1580.                Begin VB.Label Label39 
  1581.                   Caption         =   "Field to base group section upon:"
  1582.                   Height          =   255
  1583.                   Left            =   240
  1584.                   TabIndex        =   216
  1585.                   Top             =   960
  1586.                   Width           =   2415
  1587.                End
  1588.                Begin VB.Label Label38 
  1589.                   Caption         =   "Group Section to be changed:"
  1590.                   Height          =   255
  1591.                   Left            =   240
  1592.                   TabIndex        =   215
  1593.                   Top             =   480
  1594.                   Width           =   2175
  1595.                End
  1596.             End
  1597.             Begin VB.Frame Frame44 
  1598.                Height          =   3375
  1599.                Left            =   240
  1600.                TabIndex        =   167
  1601.                Top             =   480
  1602.                Width           =   7935
  1603.                Begin VB.CommandButton CmdSetFont 
  1604.                   Caption         =   "Set &Font"
  1605.                   Height          =   375
  1606.                   Left            =   4680
  1607.                   TabIndex        =   186
  1608.                   Top             =   2880
  1609.                   Width           =   1400
  1610.                End
  1611.                Begin VB.CommandButton CmdSetFormat 
  1612.                   Caption         =   "&Set Format"
  1613.                   Height          =   375
  1614.                   Left            =   2880
  1615.                   TabIndex        =   185
  1616.                   Top             =   2880
  1617.                   Width           =   1400
  1618.                End
  1619.                Begin VB.CommandButton CmdSetHeight 
  1620.                   Caption         =   "Set &Line Height"
  1621.                   Height          =   375
  1622.                   Left            =   6400
  1623.                   TabIndex        =   184
  1624.                   Top             =   2880
  1625.                   Width           =   1400
  1626.                End
  1627.                Begin VB.ComboBox CboSecList 
  1628.                   Height          =   300
  1629.                   Index           =   0
  1630.                   Left            =   2880
  1631.                   Style           =   2  'Dropdown List
  1632.                   TabIndex        =   171
  1633.                   Top             =   240
  1634.                   Width           =   2775
  1635.                End
  1636.                Begin VB.Frame FrameSecHeight 
  1637.                   Caption         =   "Section Line Height:"
  1638.                   Height          =   1095
  1639.                   Left            =   2880
  1640.                   TabIndex        =   170
  1641.                   Top             =   1680
  1642.                   Width           =   4935
  1643.                   Begin VB.TextBox TxtLineNum 
  1644.                      Height          =   285
  1645.                      Left            =   1680
  1646.                      TabIndex        =   195
  1647.                      Top             =   240
  1648.                      Width           =   975
  1649.                   End
  1650.                   Begin VB.TextBox TxtMinHeight 
  1651.                      Height          =   285
  1652.                      Left            =   1680
  1653.                      TabIndex        =   193
  1654.                      Top             =   600
  1655.                      Width           =   975
  1656.                   End
  1657.                   Begin VB.TextBox TxtLineAscent 
  1658.                      Height          =   285
  1659.                      Left            =   3840
  1660.                      TabIndex        =   189
  1661.                      Top             =   600
  1662.                      Width           =   975
  1663.                   End
  1664.                   Begin VB.TextBox TxtLineHeight 
  1665.                      Height          =   285
  1666.                      Left            =   3840
  1667.                      TabIndex        =   188
  1668.                      Top             =   240
  1669.                      Width           =   975
  1670.                   End
  1671.                   Begin VB.Label LblLineHeight 
  1672.                      Caption         =   "Line Number:"
  1673.                      Height          =   255
  1674.                      Index           =   0
  1675.                      Left            =   120
  1676.                      TabIndex        =   194
  1677.                      Top             =   360
  1678.                      Width           =   1335
  1679.                   End
  1680.                   Begin VB.Label LblLineHeight 
  1681.                      Caption         =   "Minimum Line Height:"
  1682.                      Height          =   255
  1683.                      Index           =   1
  1684.                      Left            =   120
  1685.                      TabIndex        =   192
  1686.                      Top             =   720
  1687.                      Width           =   1575
  1688.                   End
  1689.                   Begin VB.Label LblLineHeight 
  1690.                      Caption         =   "Line Ascent:"
  1691.                      Height          =   255
  1692.                      Index           =   3
  1693.                      Left            =   2760
  1694.                      TabIndex        =   191
  1695.                      Top             =   720
  1696.                      Width           =   975
  1697.                   End
  1698.                   Begin VB.Label LblLineHeight 
  1699.                      Caption         =   "Line Height:"
  1700.                      Height          =   255
  1701.                      Index           =   2
  1702.                      Left            =   2760
  1703.                      TabIndex        =   190
  1704.                      Top             =   360
  1705.                      Width           =   975
  1706.                   End
  1707.                End
  1708.                Begin VB.Frame FrameSecFont 
  1709.                   Caption         =   "Section Font:"
  1710.                   Height          =   975
  1711.                   Left            =   2880
  1712.                   TabIndex        =   169
  1713.                   Top             =   600
  1714.                   Width           =   4935
  1715.                   Begin VB.TextBox TxtFontSize 
  1716.                      Height          =   285
  1717.                      Left            =   3840
  1718.                      TabIndex        =   212
  1719.                      Top             =   240
  1720.                      Width           =   975
  1721.                   End
  1722.                   Begin VB.TextBox TxtFontName 
  1723.                      Height          =   285
  1724.                      Left            =   120
  1725.                      TabIndex        =   211
  1726.                      Top             =   240
  1727.                      Width           =   3015
  1728.                   End
  1729.                   Begin VB.CheckBox ChkSecFont 
  1730.                      Caption         =   "Italic"
  1731.                      Height          =   255
  1732.                      Index           =   2
  1733.                      Left            =   2400
  1734.                      TabIndex        =   183
  1735.                      Top             =   600
  1736.                      Width           =   735
  1737.                   End
  1738.                   Begin VB.CheckBox ChkSecFont 
  1739.                      Caption         =   "StrikeThrough"
  1740.                      Height          =   255
  1741.                      Index           =   3
  1742.                      Left            =   3360
  1743.                      TabIndex        =   182
  1744.                      Top             =   600
  1745.                      Width           =   1455
  1746.                   End
  1747.                   Begin VB.CheckBox ChkSecFont 
  1748.                      Caption         =   "UnderLined"
  1749.                      Height          =   255
  1750.                      Index           =   1
  1751.                      Left            =   1080
  1752.                      TabIndex        =   181
  1753.                      Top             =   600
  1754.                      Width           =   1215
  1755.                   End
  1756.                   Begin VB.CheckBox ChkSecFont 
  1757.                      Caption         =   "Bold"
  1758.                      Height          =   255
  1759.                      Index           =   0
  1760.                      Left            =   120
  1761.                      TabIndex        =   180
  1762.                      Top             =   600
  1763.                      Width           =   735
  1764.                   End
  1765.                End
  1766.                Begin VB.Frame FrameSecFormat 
  1767.                   Caption         =   "Section Format:"
  1768.                   Height          =   2655
  1769.                   Left            =   120
  1770.                   TabIndex        =   168
  1771.                   Top             =   600
  1772.                   Width           =   2655
  1773.                   Begin VB.CheckBox ChkSecFormat 
  1774.                      Caption         =   "Suppress Blank Lines"
  1775.                      Height          =   255
  1776.                      Index           =   4
  1777.                      Left            =   120
  1778.                      TabIndex        =   179
  1779.                      Top             =   1620
  1780.                      Width           =   2055
  1781.                   End
  1782.                   Begin VB.CheckBox ChkSecFormat 
  1783.                      Caption         =   "Print at Bottom of Page"
  1784.                      Height          =   255
  1785.                      Index           =   6
  1786.                      Left            =   120
  1787.                      TabIndex        =   178
  1788.                      Top             =   2220
  1789.                      Width           =   2055
  1790.                   End
  1791.                   Begin VB.CheckBox ChkSecFormat 
  1792.                      Caption         =   "Reset Page Number After"
  1793.                      Height          =   255
  1794.                      Index           =   5
  1795.                      Left            =   120
  1796.                      TabIndex        =   177
  1797.                      Top             =   1920
  1798.                      Width           =   2175
  1799.                   End
  1800.                   Begin VB.CheckBox ChkSecFormat 
  1801.                      Caption         =   "New Page After"
  1802.                      Height          =   255
  1803.                      Index           =   2
  1804.                      Left            =   120
  1805.                      TabIndex        =   176
  1806.                      Top             =   1005
  1807.                      Width           =   1455
  1808.                   End
  1809.                   Begin VB.CheckBox ChkSecFormat 
  1810.                      Caption         =   "Keep Section Together"
  1811.                      Height          =   255
  1812.                      Index           =   3
  1813.                      Left            =   120
  1814.                      TabIndex        =   175
  1815.                      Top             =   1320
  1816.                      Width           =   2055
  1817.                   End
  1818.                   Begin VB.CheckBox ChkSecFormat 
  1819.                      Caption         =   "New Page Before"
  1820.                      Height          =   255
  1821.                      Index           =   1
  1822.                      Left            =   120
  1823.                      TabIndex        =   174
  1824.                      Top             =   675
  1825.                      Width           =   1695
  1826.                   End
  1827.                   Begin VB.CheckBox ChkSecFormat 
  1828.                      Caption         =   "Visible"
  1829.                      Height          =   255
  1830.                      Index           =   0
  1831.                      Left            =   120
  1832.                      TabIndex        =   173
  1833.                      Top             =   360
  1834.                      Width           =   1455
  1835.                   End
  1836.                End
  1837.                Begin VB.Label LblSec 
  1838.                   Caption         =   "Section to be Formatted:"
  1839.                   Height          =   255
  1840.                   Left            =   180
  1841.                   TabIndex        =   172
  1842.                   Top             =   360
  1843.                   Width           =   2415
  1844.                End
  1845.             End
  1846.             Begin VB.Frame Frame42 
  1847.                Height          =   3255
  1848.                Left            =   -74640
  1849.                TabIndex        =   142
  1850.                Top             =   480
  1851.                Width           =   7695
  1852.                Begin VB.CommandButton CmdQuery 
  1853.                   Caption         =   "Set &Query"
  1854.                   Height          =   375
  1855.                   Left            =   6000
  1856.                   TabIndex        =   151
  1857.                   Top             =   2760
  1858.                   Width           =   1455
  1859.                End
  1860.                Begin VB.TextBox TxtSQLQuery 
  1861.                   Height          =   2295
  1862.                   Left            =   240
  1863.                   MultiLine       =   -1  'True
  1864.                   ScrollBars      =   2  'Vertical
  1865.                   TabIndex        =   143
  1866.                   Top             =   360
  1867.                   Width           =   7215
  1868.                End
  1869.                Begin VB.Label Label37 
  1870.                   Caption         =   "From this text box, the SQL Query 'WHERE' and 'ORDERBY' clauses can be modified from what was used in the report."
  1871.                   Height          =   375
  1872.                   Left            =   240
  1873.                   TabIndex        =   210
  1874.                   Top             =   2760
  1875.                   Width           =   5655
  1876.                End
  1877.             End
  1878.             Begin VB.Frame Frame8 
  1879.                Height          =   3135
  1880.                Left            =   -74760
  1881.                TabIndex        =   121
  1882.                Top             =   480
  1883.                Width           =   7935
  1884.                Begin VB.Frame Frame41 
  1885.                   Caption         =   "Stored Procedure Parameters:"
  1886.                   Height          =   2775
  1887.                   Left            =   4680
  1888.                   TabIndex        =   131
  1889.                   Top             =   240
  1890.                   Width           =   3135
  1891.                   Begin VB.CommandButton CmdStoredProc 
  1892.                      Caption         =   "Set &Parameter"
  1893.                      Height          =   375
  1894.                      Left            =   840
  1895.                      TabIndex        =   200
  1896.                      Top             =   2280
  1897.                      Width           =   1695
  1898.                   End
  1899.                   Begin VB.TextBox TxtStoredProc 
  1900.                      Height          =   285
  1901.                      Left            =   120
  1902.                      TabIndex        =   199
  1903.                      Top             =   1320
  1904.                      Width           =   2895
  1905.                   End
  1906.                   Begin VB.Label Label33 
  1907.                      Alignment       =   2  'Center
  1908.                      Caption         =   "This text box will allow you to pass Stored Procedure Parameters to a report that is based upon a Stored Procedure."
  1909.                      Height          =   975
  1910.                      Left            =   240
  1911.                      TabIndex        =   198
  1912.                      Top             =   240
  1913.                      Width           =   2655
  1914.                   End
  1915.                End
  1916.                Begin VB.Frame Frameodbc 
  1917.                   Caption         =   "ODBC Connection:"
  1918.                   Height          =   2775
  1919.                   Left            =   120
  1920.                   TabIndex        =   122
  1921.                   Top             =   240
  1922.                   Width           =   4455
  1923.                   Begin VB.CommandButton CmdConnect 
  1924.                      Caption         =   "&Connect"
  1925.                      Height          =   375
  1926.                      Left            =   1320
  1927.                      TabIndex        =   132
  1928.                      Top             =   2280
  1929.                      Width           =   1695
  1930.                   End
  1931.                   Begin VB.TextBox TxtDSN 
  1932.                      Height          =   285
  1933.                      Left            =   1800
  1934.                      TabIndex        =   126
  1935.                      Top             =   360
  1936.                      Width           =   2415
  1937.                   End
  1938.                   Begin VB.TextBox TxtUID 
  1939.                      Height          =   285
  1940.                      Left            =   1800
  1941.                      TabIndex        =   125
  1942.                      Top             =   840
  1943.                      Width           =   2415
  1944.                   End
  1945.                   Begin VB.TextBox TxtPWD 
  1946.                      Height          =   285
  1947.                      Left            =   1800
  1948.                      PasswordChar    =   "*"
  1949.                      TabIndex        =   124
  1950.                      Top             =   1320
  1951.                      Width           =   2415
  1952.                   End
  1953.                   Begin VB.TextBox TxtDSQ 
  1954.                      Height          =   285
  1955.                      Left            =   1800
  1956.                      TabIndex        =   123
  1957.                      Top             =   1800
  1958.                      Width           =   2415
  1959.                   End
  1960.                   Begin VB.Label Label3 
  1961.                      Caption         =   "Data Source Name:"
  1962.                      Height          =   255
  1963.                      Left            =   120
  1964.                      TabIndex        =   130
  1965.                      Top             =   480
  1966.                      Width           =   1455
  1967.                   End
  1968.                   Begin VB.Label Label6 
  1969.                      Caption         =   "Password:"
  1970.                      Height          =   255
  1971.                      Left            =   120
  1972.                      TabIndex        =   129
  1973.                      Top             =   1440
  1974.                      Width           =   1455
  1975.                   End
  1976.                   Begin VB.Label Label7 
  1977.                      Caption         =   "User ID:"
  1978.                      Height          =   255
  1979.                      Left            =   120
  1980.                      TabIndex        =   128
  1981.                      Top             =   960
  1982.                      Width           =   735
  1983.                   End
  1984.                   Begin VB.Label Label8 
  1985.                      Caption         =   "Database Qualifier:"
  1986.                      Height          =   255
  1987.                      Left            =   120
  1988.                      TabIndex        =   127
  1989.                      Top             =   1920
  1990.                      Width           =   1455
  1991.                   End
  1992.                End
  1993.             End
  1994.             Begin VB.CommandButton CmdSecurity 
  1995.                Caption         =   "&Set Security"
  1996.                Height          =   375
  1997.                Left            =   -68640
  1998.                TabIndex        =   118
  1999.                Top             =   3720
  2000.                Width           =   1695
  2001.             End
  2002.             Begin VB.Frame Frame6 
  2003.                Caption         =   "Database/Access Security:"
  2004.                Height          =   3135
  2005.                Left            =   -74760
  2006.                TabIndex        =   110
  2007.                Top             =   480
  2008.                Width           =   7815
  2009.                Begin VB.Frame Frame14 
  2010.                   Caption         =   "Database:"
  2011.                   Height          =   2775
  2012.                   Left            =   3600
  2013.                   TabIndex        =   114
  2014.                   Top             =   240
  2015.                   Width           =   4095
  2016.                   Begin VB.TextBox TxtPassword 
  2017.                      Height          =   285
  2018.                      Left            =   2040
  2019.                      TabIndex        =   120
  2020.                      Top             =   2280
  2021.                      Width           =   1935
  2022.                   End
  2023.                   Begin VB.TextBox TxtUserName 
  2024.                      Height          =   285
  2025.                      Left            =   120
  2026.                      TabIndex        =   119
  2027.                      Top             =   2280
  2028.                      Width           =   1815
  2029.                   End
  2030.                   Begin VB.FileListBox DataFileList 
  2031.                      Height          =   1590
  2032.                      Left            =   120
  2033.                      Pattern         =   "*.mdb"
  2034.                      TabIndex        =   115
  2035.                      Top             =   240
  2036.                      Width           =   3855
  2037.                   End
  2038.                   Begin VB.Label Label5 
  2039.                      Caption         =   "Password:"
  2040.                      Height          =   255
  2041.                      Left            =   2040
  2042.                      TabIndex        =   117
  2043.                      Top             =   1920
  2044.                      Width           =   855
  2045.                   End
  2046.                   Begin VB.Label Label4 
  2047.                      Caption         =   "User Name:"
  2048.                      Height          =   255
  2049.                      Left            =   120
  2050.                      TabIndex        =   116
  2051.                      Top             =   1920
  2052.                      Width           =   1095
  2053.                   End
  2054.                End
  2055.                Begin VB.Frame Frame13 
  2056.                   Caption         =   "Directory:"
  2057.                   Height          =   2775
  2058.                   Left            =   120
  2059.                   TabIndex        =   111
  2060.                   Top             =   240
  2061.                   Width           =   3375
  2062.                   Begin VB.DirListBox DataDirList 
  2063.                      Height          =   1830
  2064.                      Left            =   120
  2065.                      TabIndex        =   113
  2066.                      Top             =   240
  2067.                      Width           =   3135
  2068.                   End
  2069.                   Begin VB.DriveListBox DataDriveList 
  2070.                      Height          =   315
  2071.                      Left            =   120
  2072.                      TabIndex        =   112
  2073.                      Top             =   2280
  2074.                      Width           =   3135
  2075.                   End
  2076.                End
  2077.             End
  2078.          End
  2079.       End
  2080.       Begin VB.Frame Frame5 
  2081.          Height          =   4695
  2082.          Left            =   -74760
  2083.          TabIndex        =   7
  2084.          Top             =   480
  2085.          Width           =   9015
  2086.          Begin VB.CommandButton CmdClrFormula 
  2087.             Caption         =   "Clear Formula Text"
  2088.             Height          =   375
  2089.             Left            =   5400
  2090.             TabIndex        =   27
  2091.             Top             =   4200
  2092.             Width           =   1575
  2093.          End
  2094.          Begin VB.CommandButton CmdAccptFormula 
  2095.             Caption         =   "Accept Formula"
  2096.             Height          =   375
  2097.             Left            =   7200
  2098.             TabIndex        =   26
  2099.             Top             =   4200
  2100.             Width           =   1575
  2101.          End
  2102.          Begin TabDlg.SSTab FormulaTab 
  2103.             Height          =   3735
  2104.             Left            =   240
  2105.             TabIndex        =   8
  2106.             Top             =   360
  2107.             Width           =   8535
  2108.             _Version        =   65536
  2109.             _ExtentX        =   15055
  2110.             _ExtentY        =   6588
  2111.             _StockProps     =   15
  2112.             Caption         =   "Record/Group Sort Orders"
  2113.             TabsPerRow      =   4
  2114.             Tab             =   3
  2115.             TabOrientation  =   0
  2116.             Tabs            =   4
  2117.             Style           =   1
  2118.             TabMaxWidth     =   0
  2119.             TabHeight       =   529
  2120.             TabCaption(0)   =   "Report Formula"
  2121.             Tab(0).ControlCount=   1
  2122.             Tab(0).ControlEnabled=   0   'False
  2123.             Tab(0).Control(0)=   "Frame10"
  2124.             TabCaption(1)   =   "Record Selection Formula"
  2125.             Tab(1).ControlCount=   1
  2126.             Tab(1).ControlEnabled=   0   'False
  2127.             Tab(1).Control(0)=   "Frame11"
  2128.             TabCaption(2)   =   "Group Selection Formula"
  2129.             Tab(2).ControlCount=   1
  2130.             Tab(2).ControlEnabled=   0   'False
  2131.             Tab(2).Control(0)=   "Frame12"
  2132.             TabCaption(3)   =   "Record/Group Sort Orders"
  2133.             Tab(3).ControlCount=   1
  2134.             Tab(3).ControlEnabled=   -1  'True
  2135.             Tab(3).Control(0)=   "Frame16"
  2136.             Begin VB.Frame Frame16 
  2137.                Height          =   3015
  2138.                Left            =   240
  2139.                TabIndex        =   29
  2140.                Top             =   480
  2141.                Width           =   8055
  2142.                Begin VB.Frame Frame18 
  2143.                   Caption         =   "Group Sort Order"
  2144.                   Height          =   2655
  2145.                   Left            =   4080
  2146.                   TabIndex        =   31
  2147.                   Top             =   240
  2148.                   Width           =   3800
  2149.                   Begin VB.OptionButton OptGrpSort 
  2150.                      Caption         =   "Descending"
  2151.                      Height          =   255
  2152.                      Index           =   1
  2153.                      Left            =   2040
  2154.                      TabIndex        =   141
  2155.                      Top             =   840
  2156.                      Width           =   1575
  2157.                   End
  2158.                   Begin VB.OptionButton OptGrpSort 
  2159.                      Caption         =   "Ascending"
  2160.                      Height          =   255
  2161.                      Index           =   0
  2162.                      Left            =   240
  2163.                      TabIndex        =   140
  2164.                      Top             =   840
  2165.                      Value           =   -1  'True
  2166.                      Width           =   1215
  2167.                   End
  2168.                   Begin VB.CommandButton CmdClearGrp 
  2169.                      Caption         =   "Clear Group S&ort"
  2170.                      Height          =   375
  2171.                      Left            =   2040
  2172.                      TabIndex        =   139
  2173.                      Top             =   2160
  2174.                      Width           =   1400
  2175.                   End
  2176.                   Begin VB.CommandButton CmdGrpSort 
  2177.                      Caption         =   "Set &Group Sort"
  2178.                      Height          =   375
  2179.                      Left            =   360
  2180.                      TabIndex        =   138
  2181.                      Top             =   2160
  2182.                      Width           =   1400
  2183.                   End
  2184.                   Begin VB.TextBox TxtGrpSort 
  2185.                      Height          =   285
  2186.                      Left            =   120
  2187.                      TabIndex        =   133
  2188.                      Top             =   360
  2189.                      Width           =   3495
  2190.                   End
  2191.                   Begin VB.Label Label27 
  2192.                      Caption         =   "e.g. Sum ({empdata.salary}, {empdata.empnum})"
  2193.                      Height          =   255
  2194.                      Left            =   120
  2195.                      TabIndex        =   159
  2196.                      Top             =   1830
  2197.                      Width           =   3615
  2198.                   End
  2199.                   Begin VB.Label Label25 
  2200.                      Caption         =   "The group field being entered into the textbox must be entered using the same syntax as is entered into Crystal Reports."
  2201.                      Height          =   735
  2202.                      Left            =   120
  2203.                      TabIndex        =   156
  2204.                      Top             =   1080
  2205.                      Width           =   3615
  2206.                   End
  2207.                End
  2208.                Begin VB.Frame Frame17 
  2209.                   Caption         =   "Record Sort Order"
  2210.                   Height          =   2655
  2211.                   Left            =   120
  2212.                   TabIndex        =   30
  2213.                   Top             =   240
  2214.                   Width           =   3800
  2215.                   Begin VB.CommandButton CmdClearRec 
  2216.                      Caption         =   "&Clear Record Sort"
  2217.                      Height          =   375
  2218.                      Left            =   2040
  2219.                      TabIndex        =   137
  2220.                      Top             =   2160
  2221.                      Width           =   1400
  2222.                   End
  2223.                   Begin VB.CommandButton CmdRecSort 
  2224.                      Caption         =   "&Set Record Sort"
  2225.                      Height          =   375
  2226.                      Left            =   360
  2227.                      TabIndex        =   136
  2228.                      Top             =   2160
  2229.                      Width           =   1400
  2230.                   End
  2231.                   Begin VB.OptionButton OptRecSort 
  2232.                      Caption         =   "Descending"
  2233.                      Height          =   255
  2234.                      Index           =   1
  2235.                      Left            =   1920
  2236.                      TabIndex        =   135
  2237.                      Top             =   840
  2238.                      Width           =   1575
  2239.                   End
  2240.                   Begin VB.OptionButton OptRecSort 
  2241.                      Caption         =   "Ascending"
  2242.                      Height          =   255
  2243.                      Index           =   0
  2244.                      Left            =   120
  2245.                      TabIndex        =   134
  2246.                      Top             =   840
  2247.                      Value           =   -1  'True
  2248.                      Width           =   1455
  2249.                   End
  2250.                   Begin VB.TextBox TxtRecSort 
  2251.                      Height          =   285
  2252.                      Left            =   120
  2253.                      TabIndex        =   32
  2254.                      Top             =   360
  2255.                      Width           =   3495
  2256.                   End
  2257.                   Begin VB.Label Label26 
  2258.                      Caption         =   "e.g. {Empdata.Salary}"
  2259.                      Height          =   255
  2260.                      Left            =   120
  2261.                      TabIndex        =   158
  2262.                      Top             =   1850
  2263.                      Width           =   3615
  2264.                   End
  2265.                   Begin VB.Label Label24 
  2266.                      Caption         =   "The field being entered into the text box must be entered  using the same syntax as is entered into Crystal Reports."
  2267.                      Height          =   615
  2268.                      Left            =   120
  2269.                      TabIndex        =   155
  2270.                      Top             =   1200
  2271.                      Width           =   3615
  2272.                   End
  2273.                End
  2274.             End
  2275.             Begin VB.CommandButton CmdAccptFormulas 
  2276.                Caption         =   "Accept Formula"
  2277.                Height          =   375
  2278.                Left            =   -68400
  2279.                TabIndex        =   25
  2280.                Top             =   3600
  2281.                Width           =   1695
  2282.             End
  2283.             Begin VB.Frame Frame12 
  2284.                Height          =   3015
  2285.                Left            =   -74760
  2286.                TabIndex        =   12
  2287.                Top             =   480
  2288.                Width           =   8055
  2289.                Begin VB.Frame Frame21 
  2290.                   Height          =   975
  2291.                   Left            =   120
  2292.                   TabIndex        =   35
  2293.                   Top             =   1920
  2294.                   Width           =   7815
  2295.                   Begin VB.Label Label12 
  2296.                      Caption         =   $"Demo.frx":4A1B
  2297.                      Height          =   615
  2298.                      Left            =   120
  2299.                      TabIndex        =   36
  2300.                      Top             =   240
  2301.                      Width           =   7575
  2302.                   End
  2303.                End
  2304.                Begin VB.TextBox TxtGrpSelFormula 
  2305.                   Height          =   1695
  2306.                   Left            =   120
  2307.                   MultiLine       =   -1  'True
  2308.                   ScrollBars      =   2  'Vertical
  2309.                   TabIndex        =   24
  2310.                   Top             =   240
  2311.                   Width           =   7815
  2312.                End
  2313.                Begin VB.Label Label9 
  2314.                   Height          =   855
  2315.                   Left            =   120
  2316.                   TabIndex        =   33
  2317.                   Top             =   2040
  2318.                   Width           =   7815
  2319.                End
  2320.             End
  2321.             Begin VB.Frame Frame11 
  2322.                Height          =   3015
  2323.                Left            =   -74760
  2324.                TabIndex        =   11
  2325.                Top             =   480
  2326.                Width           =   8055
  2327.                Begin VB.Frame Frame19 
  2328.                   Height          =   975
  2329.                   Left            =   120
  2330.                   TabIndex        =   34
  2331.                   Top             =   1920
  2332.                   Width           =   7815
  2333.                   Begin VB.Label Label11 
  2334.                      Caption         =   $"Demo.frx":4B33
  2335.                      Height          =   615
  2336.                      Left            =   120
  2337.                      TabIndex        =   157
  2338.                      Top             =   240
  2339.                      Width           =   7575
  2340.                   End
  2341.                End
  2342.                Begin VB.TextBox TxtRecSelFormula 
  2343.                   Height          =   1695
  2344.                   Left            =   120
  2345.                   MultiLine       =   -1  'True
  2346.                   ScrollBars      =   2  'Vertical
  2347.                   TabIndex        =   23
  2348.                   Top             =   240
  2349.                   Width           =   7815
  2350.                End
  2351.             End
  2352.             Begin VB.Frame Frame10 
  2353.                Height          =   3015
  2354.                Left            =   -74760
  2355.                TabIndex        =   10
  2356.                Top             =   480
  2357.                Width           =   8055
  2358.                Begin VB.Frame Frame15 
  2359.                   Caption         =   "Formula Text:"
  2360.                   Height          =   2055
  2361.                   Left            =   120
  2362.                   TabIndex        =   21
  2363.                   Top             =   840
  2364.                   Width           =   7815
  2365.                   Begin VB.TextBox TxtFormula 
  2366.                      Height          =   1695
  2367.                      Left            =   120
  2368.                      MaxLength       =   255
  2369.                      MultiLine       =   -1  'True
  2370.                      ScrollBars      =   2  'Vertical
  2371.                      TabIndex        =   22
  2372.                      Top             =   240
  2373.                      Width           =   7575
  2374.                   End
  2375.                End
  2376.                Begin VB.TextBox TxtFormulaName 
  2377.                   Height          =   285
  2378.                   Left            =   1560
  2379.                   TabIndex        =   19
  2380.                   Top             =   360
  2381.                   Width           =   2655
  2382.                End
  2383.                Begin VB.Label Label2 
  2384.                   Caption         =   "This formula must be entered using the same syntax of the Formula Editor."
  2385.                   Height          =   375
  2386.                   Left            =   4440
  2387.                   TabIndex        =   20
  2388.                   Top             =   360
  2389.                   Width           =   3375
  2390.                End
  2391.                Begin VB.Label Label1 
  2392.                   Caption         =   "Formula Name:"
  2393.                   Height          =   255
  2394.                   Left            =   180
  2395.                   TabIndex        =   18
  2396.                   Top             =   480
  2397.                   Width           =   1215
  2398.                End
  2399.             End
  2400.          End
  2401.          Begin VB.Label Label10 
  2402.             Height          =   405
  2403.             Left            =   240
  2404.             TabIndex        =   28
  2405.             Top             =   4200
  2406.             Width           =   5055
  2407.          End
  2408.       End
  2409.       Begin VB.Frame Frame1 
  2410.          Height          =   4695
  2411.          Left            =   -74640
  2412.          TabIndex        =   1
  2413.          Top             =   480
  2414.          Width           =   8895
  2415.          Begin VB.CommandButton CmdChooseRpt 
  2416.             Caption         =   "&OK"
  2417.             Height          =   375
  2418.             Left            =   7320
  2419.             TabIndex        =   187
  2420.             Top             =   4200
  2421.             Width           =   1455
  2422.          End
  2423.          Begin VB.Frame Frame3 
  2424.             Caption         =   "Reports:"
  2425.             Height          =   3855
  2426.             Left            =   3840
  2427.             TabIndex        =   3
  2428.             Top             =   240
  2429.             Width           =   4935
  2430.             Begin VB.FileListBox FileList 
  2431.                Height          =   3345
  2432.                Left            =   120
  2433.                Pattern         =   "*.rpt"
  2434.                TabIndex        =   6
  2435.                Top             =   240
  2436.                Width           =   4695
  2437.             End
  2438.          End
  2439.          Begin VB.Frame Frame2 
  2440.             Caption         =   "Directory:"
  2441.             Height          =   3855
  2442.             Left            =   240
  2443.             TabIndex        =   2
  2444.             Top             =   240
  2445.             Width           =   3495
  2446.             Begin VB.DriveListBox DriveList 
  2447.                Height          =   315
  2448.                Left            =   120
  2449.                TabIndex        =   5
  2450.                Top             =   3360
  2451.                Width           =   3255
  2452.             End
  2453.             Begin VB.DirListBox DirList 
  2454.                Height          =   2955
  2455.                Left            =   120
  2456.                TabIndex        =   4
  2457.                Top             =   240
  2458.                Width           =   3255
  2459.             End
  2460.          End
  2461.       End
  2462.    End
  2463.    Begin Crystal.CrystalReport CrystalReport1 
  2464.       Left            =   0
  2465.       Top             =   0
  2466.       _version        =   262149
  2467.       _extentx        =   741
  2468.       _extenty        =   741
  2469.       _stockprops     =   0
  2470.       reportfilename  =   ""
  2471.       destination     =   0
  2472.       windowleft      =   100
  2473.       windowtop       =   100
  2474.       windowwidth     =   490
  2475.       windowheight    =   300
  2476.       windowtitle     =   ""
  2477.       windowborderstyle=   2
  2478.       windowcontrolbox=   -1  'True
  2479.       windowmaxbutton =   -1  'True
  2480.       windowminbutton =   -1  'True
  2481.       copiestoprinter =   1
  2482.       printfilename   =   ""
  2483.       printfiletype   =   0
  2484.       selectionformula=   ""
  2485.       groupselectionformula=   ""
  2486.       connect         =   ""
  2487.       username        =   ""
  2488.       reportsource    =   0
  2489.       boundreportheading=   ""
  2490.       boundreportfooter=   0   'False
  2491.       sqlquery        =   ""
  2492.       discardsaveddata=   0   'False
  2493.       windowcontrols  =   -1  'True
  2494.       printerdriver   =   ""
  2495.       printername     =   ""
  2496.       printerport     =   ""
  2497.       detailcopies    =   1
  2498.       printerstartpage=   0
  2499.       printerstoppage =   0
  2500.       printercollation=   2
  2501.       windowstate     =   0
  2502.       marginleft      =   0
  2503.       marginright     =   0
  2504.       margintop       =   0
  2505.       marginbottom    =   0
  2506.       printfileuserptnumberfmt=   0   'False
  2507.       printfileuserptdatefmt=   0   'False
  2508.       printfilecharsepseperator=   ""
  2509.       printfilecharsepquote=   ""
  2510.       emailsubject    =   ""
  2511.       emailmessage    =   ""
  2512.       emailtolist     =   ""
  2513.       emailcclist     =   ""
  2514.       emailvimbcclist =   ""
  2515.    End
  2516. Attribute VB_Name = "Demo"
  2517. Attribute VB_Creatable = False
  2518. Attribute VB_Exposed = False
  2519. Option Explicit
  2520. ' Sets a variable to increment the CrystalReport1.Formulas
  2521. ' array index for each formula that is being set. This value
  2522. Dim FormulaNum As Integer
  2523. Dim RecSort, GrpSort As Integer
  2524. Dim SecNum, SecFont As Integer
  2525. Dim StoredProc As Integer
  2526. Dim MinHeight, LineHeight As Integer
  2527. Dim GroupCond As Integer
  2528. Dim GraphTextNum, GraphTypeNum, GraphOptNum, GraphDataNum As Integer
  2529. Dim ButtonVal, DataVal As String
  2530. Private Sub CboCond_Click()
  2531. GrpCondition
  2532. End Sub
  2533. Private Sub CboDataDir_Click()
  2534. Dim DataDir As String
  2535. DataDir = CboDataDir.ListIndex
  2536. Select Case DataDir
  2537. Case 0
  2538.     DataVal = "ROWS"
  2539. Case 1
  2540.     DataVal = "COLS"
  2541. Case 2
  2542.     DataVal = "ROWANDCOL"
  2543. Case 3
  2544.     DataVal = "COLANDROW"
  2545. End Select
  2546. End Sub
  2547. Private Sub CboPrnFileType_Click(Index As Integer)
  2548. Dim iPrnFileType As Integer
  2549. Select Case Index
  2550. Case 0
  2551.     iPrnFileType = 0
  2552. Case 1
  2553.     iPrnFileType = 1
  2554. End Select
  2555. FileType (iPrnFileType)
  2556. End Sub
  2557. Private Sub CboSecList_Click(Index As Integer)
  2558. Dim SectionList As Integer
  2559. Select Case Index
  2560. Case 0
  2561.     SectionList = 0
  2562. Case 1
  2563.     SectionList = 1
  2564. End Select
  2565. RptSection (SectionList)
  2566. End Sub
  2567. Private Sub ChkCollate_Click()
  2568. If ChkCollate.Value = 1 Then
  2569.     CrystalReport1.PrinterCollation = 1
  2570.     CrystalReport1.PrinterCollation = 0
  2571. End If
  2572. End Sub
  2573. Private Sub ChkCtrls_Click()
  2574. If ChkCtrls.Value = 1 Then
  2575.     CrystalReport1.WindowControls = True
  2576.     CrystalReport1.WindowControls = False
  2577.         
  2578. End If
  2579. End Sub
  2580. Private Sub ChkDateFormat_Click(Index As Integer)
  2581. If ChkDateFormat(Index).Value = 1 Then
  2582.     CrystalReport1.PrintFileUseRptDateFmt = True
  2583.     CrystalReport1.PrintFileUseRptDateFmt = True
  2584. End If
  2585. End Sub
  2586. Private Sub ChkDiscard_Click()
  2587. If ChkDiscard.Value = 1 Then
  2588.     CrystalReport1.DiscardSavedData = 1
  2589.     CrystalReport1.DiscardSavedData = 0
  2590. End If
  2591. End Sub
  2592. Private Sub ChkMax_Click()
  2593. If ChkMax.Value = 1 Then
  2594.     CrystalReport1.WindowMaxButton = True
  2595.     CrystalReport1.WindowMaxButton = False
  2596. End If
  2597. End Sub
  2598. Private Sub ChkMin_Click()
  2599. If ChkMin.Value = 1 Then
  2600.     CrystalReport1.WindowMinButton = True
  2601.     CrystalReport1.WindowMinButton = False
  2602. End If
  2603. End Sub
  2604. Private Sub ChkNumFormat_Click(Index As Integer)
  2605. If ChkNumFormat(Index).Value = 1 Then
  2606.     CrystalReport1.PrintFileUseRptNumberFmt = True
  2607.     CrystalReport1.PrintFileUseRptNumberFmt = True
  2608. End If
  2609. End Sub
  2610. Private Sub CmdAccept_Click()
  2611.     Dim iCrystalError As Integer
  2612. On Error GoTo ErrorHandler
  2613.     If CrystalReport1.Destination = 1 Then
  2614.         CrystalReport1.CopiesToPrinter = Val(TxtPrnCopies.Text)
  2615.     End If
  2616.     CrystalReport1.Action = 1
  2617.     ResetIndexes
  2618.     If ChkStatus.Value = 1 Then
  2619.         status.Show 1
  2620.     End If
  2621. ErrorHandler:
  2622.     iCrystalError = CrystalReport1.LastErrorNumber
  2623.     PrintError (iCrystalError)
  2624.     Exit Sub
  2625. End Sub
  2626. Private Sub CmdAccptFormula_Click()
  2627. Dim sFormulaText As String                      ' create avariable to hold the formula text
  2628.                                                 ' that is entered by the user.
  2629. Dim iFormulaTabNum As Integer                   ' hold the number of the tab selected.
  2630. iFormulaTabNum = FormulaTab.Tab                 ' assign the Formula Tab's active tab number to
  2631.                                                 ' to the FormulaTabNum variable.
  2632.                                                 
  2633. ' Depending on the active tab chosen, determine what formula is being edited and then assign
  2634. ' the formula text to the appropriate formula property.
  2635. Select Case iFormulaTabNum
  2636. Case 0                  ' sets the value for the CrystalReport1.Formulas(0) array property.
  2637.     sFormulaText = TxtFormulaName.Text & "= " & TxtFormula.Text
  2638.     CrystalReport1.Formulas(FormulaNum) = sFormulaText
  2639.     FormulaNum = FormulaNum + 1                 ' increments the CrystalReport1.Formulas(0)
  2640.                                                 ' array index.
  2641. Case 1                                          ' Set the Record Selection Formula.
  2642.     CrystalReport1.SelectionFormula = TxtRecSelFormula.Text
  2643. Case 2                                          ' Set the Group Selection Formula.
  2644.     CrystalReport1.GroupSelectionFormula = TxtGrpSelFormula.Text
  2645. Case 3                                          ' Disables the "Accept Formula" command button
  2646.     CmdAccptFormula.Enabled = False             ' when the user chooses the Record/Group Sort
  2647.                                                 ' Orders tab.
  2648. End Select
  2649. Timer1.Interval = 2000
  2650. TxtFormulaName.Text = " "
  2651. TxtFormula.Text = " "
  2652. End Sub
  2653. Private Sub CmdBack_Click()
  2654. If MainTab.Tab > 0 Then
  2655.     MainTab.Tab = MainTab.Tab - 1
  2656.     CmdNext.Enabled = True
  2657. End If
  2658. If MainTab.Tab < 1 Then
  2659.     CmdBack.Enabled = False
  2660. End If
  2661. End Sub
  2662. Private Sub CmdCancel_Click()
  2663.     End                                         ' Exit the program.
  2664. End Sub
  2665. Private Sub CmdChooseRpt_Click()
  2666. ChooseRpt
  2667. End Sub
  2668. Private Sub CmdClearGrp_Click()
  2669. TxtGrpSort.Text = " "
  2670. End Sub
  2671. Private Sub CmdClearMargins_Click()
  2672. TxtTop.Text = " "
  2673. TxtBottom.Text = " "
  2674. TxtRight.Text = " "
  2675. TxtLeft.Text = " "
  2676. CrystalReport1.MarginTop = 720 '1/2 inch
  2677. CrystalReport1.MarginBottom = 720 '1/2 inch
  2678. CrystalReport1.MarginRight = 1440 '1 inch
  2679. CrystalReport1.MarginLeft = 1440 '1 inch
  2680. End Sub
  2681. Private Sub CmdClearRec_Click()
  2682. TxtRecSort.Text = " "
  2683. End Sub
  2684. Private Sub CmdClearTitle_Click()
  2685. TxtWinTitle.Text = " "
  2686. CrystalReport1.WindowTitle = FileList.Path & "\" & FileList.filename
  2687. End Sub
  2688. Private Sub CmdClrFormula_Click()
  2689. Dim iClearTabNum As Integer
  2690. iClearTabNum = FormulaTab.Tab
  2691. Select Case iClearTabNum
  2692. Case 0
  2693.     TxtFormulaName.Text = " "
  2694.     TxtFormula.Text = " "
  2695.     CmdAccptFormula.Enabled = False
  2696. Case 1
  2697.     TxtRecSelFormula.Text = " "
  2698.     CmdAccptFormula.Enabled = False
  2699. Case 2
  2700.     TxtGrpSelFormula.Text = " "
  2701.     CmdAccptFormula.Enabled = False
  2702. End Select
  2703. End Sub
  2704. Private Sub CmdConnect_Click()
  2705. Dim sCnctStrng As String, sDataSrce As String, sUserID As String, sPwd As String, sDsq As String
  2706. sDataSrce = "DSN=" & TxtDSN.Text
  2707. sUserID = "UID=" & TxtUID.Text
  2708. sPwd = "PWD=" & TxtPWD.Text
  2709. sDsq = "DSQ=" & TxtDSQ.Text
  2710. 'if TxtPWD.TEXT = " "
  2711. CrystalReport1.Connect = sDataSrce & ";" & sUserID & ";" & sPwd & ";" & sDsq
  2712. End Sub
  2713. Private Sub CmdEmail_Click()
  2714. CrystalReport1.PrintFileName = TxtPrnFileName.Text
  2715. CrystalReport1.EMailToList = TxtMailTo.Text
  2716. CrystalReport1.EMailCCList = TxtMailCC.Text
  2717. CrystalReport1.EMailSubject = TxtMailSub.Text
  2718. CrystalReport1.EMailMessage = TxtMailMessage.Text
  2719. MsgBox "To send this mail, click the 'Print Report' Button"
  2720. End Sub
  2721. Private Sub CmdGraphData_Click()
  2722. Dim RptGraphData As String
  2723. RptGraphData = ReportSection & ";" & Val(TxtGrphNum.Text) & ";" & UCase(TxtGraphRows.Text) & ";"
  2724. RptGraphData = RptGraphData & UCase(TxtGraphCols.Text) & ";" & TxtRisers.Text & ";" & DataVal
  2725. CrystalReport1.GraphData(GraphDataNum) = RptGraphData
  2726. GraphDataNum = GraphDataNum + 1
  2727. End Sub
  2728. Private Sub CmdGrpCond_Click()
  2729. Dim GrpChange, SortDir As String
  2730. If OptGrpCond(0).Value Then
  2731.     SortDir = "A"
  2732.     SortDir = "D"
  2733. End If
  2734. GrpChange = "GROUP" & TxtGrpSection.Text & ";" & TxtGrpCond.Text & ";" & GroupCondition & ";"
  2735. GrpChange = GrpChange & SortDir
  2736. CrystalReport1.GroupCondition(GroupCond) = GrpChange
  2737. GroupCond = GroupCond + 1
  2738. End Sub
  2739. Private Sub CmdGrphOpt_Click()
  2740. Dim RptGraphOptions, GrphOptDir As String
  2741. If OptGrphBars(0).Value Then
  2742.     GrphOptDir = "V"
  2743.     GrphOptDir = "H"
  2744. End If
  2745. RptGraphOptions = ReportSection & ";" & Val(TxtGrphNum.Text) & ";" & TxtGrphFont.Text & ";"
  2746. RptGraphOptions = RptGraphOptions & GrphOptDir & ";" & ChkBarRisers.Value & ";"
  2747. RptGraphOptions = RptGraphOptions & ChkGridLines.Value & ";" & ChkLegend.Value & ";"
  2748. RptGraphOptions = RptGraphOptions & Val(TxtMinRange.Text) & ";" & Val(TxtMaxRange.Text)
  2749. CrystalReport1.GraphOptions(GraphOptNum) = RptGraphOptions
  2750. GraphOptNum = GraphOptNum + 1
  2751. End Sub
  2752. Private Sub CmdGrphType_Click()
  2753. Dim RptGraphType As String
  2754. RptGraphType = ReportSection & ";" & Val(TxtGrphNum.Text) & ";" & ButtonVal
  2755. CrystalReport1.GraphType(GraphTypeNum) = RptGraphType
  2756. GraphTypeNum = GraphTypeNum + 1
  2757. End Sub
  2758. Private Sub CmdGrpSort_Click()
  2759. Dim sortgrp As String
  2760. If OptGrpSort(0).Value Then
  2761.     sortgrp = "+" & TxtGrpSort.Text
  2762.     sortgrp = "-" & TxtGrpSort.Text
  2763. End If
  2764.    CrystalReport1.GroupSortFields(GrpSort) = sortgrp
  2765.     GrpSort = GrpSort + 1
  2766. End Sub
  2767. Private Sub CmdNext_Click()
  2768. If MainTab.Tab < MainTab.Tabs - 1 Then
  2769.     MainTab.Tab = MainTab.Tab + 1
  2770.     CmdBack.Enabled = True
  2771. End If
  2772. If MainTab.Tab = MainTab.Tabs - 1 Then
  2773.     CmdNext.Enabled = False
  2774. End If
  2775. End Sub
  2776. Private Sub CmdNumDetails_Click()
  2777. CrystalReport1.DetailCopies = Val(TxtNumDetails.Text)
  2778. End Sub
  2779. Private Sub CmdPrintDate_Click()
  2780. Dim RptDay, RptMonth, RptYear As String
  2781. If Left(TxtPrintDate.Text, 2) >= 1 And Left(TxtPrintDate.Text, 2) <= 12 Then
  2782.     RptMonth = Left(TxtPrintDate.Text, 2)
  2783.     CrystalReport1.PrintMonth = RptMonth
  2784.     MsgBox "Invalid Month Range"
  2785.     TxtPrintDate.SetFocus
  2786. End If
  2787. If Mid(TxtPrintDate.Text, 4, 2) >= 1 And Mid(TxtPrintDate.Text, 4, 2) <= 31 Then
  2788.     RptDay = Mid(TxtPrintDate.Text, 4, 2)
  2789.     CrystalReport1.PrintDay = RptDay
  2790.     MsgBox "Invalid Day Range"
  2791.     TxtPrintDate.SetFocus
  2792. End If
  2793. If Mid(TxtPrintDate.Text, 7, 2) = 19 And (Right(TxtPrintDate.Text, 2) >= 0 And Right(TxtPrintDate.Text, 2) <= 99) Then
  2794.     RptYear = Right(TxtPrintDate.Text, 4)
  2795.     CrystalReport1.PrintYear = RptYear
  2796.     MsgBox "Invalid Year Range"
  2797.     TxtPrintDate.SetFocus
  2798. End If
  2799. End Sub
  2800. Private Sub CmdQuery_Click()
  2801. CrystalReport1.SQLQuery = TxtSQLQuery.Text
  2802. End Sub
  2803. Private Sub CmdRange_Click()
  2804.     CrystalReport1.PrinterStartPage = Val(TxtStartPage.Text)
  2805.     CrystalReport1.PrinterStopPage = Val(TxtEndPage.Text)
  2806. End Sub
  2807. Private Sub CmdRecSort_Click()
  2808. Dim sort As String
  2809. If OptRecSort(0).Value Then
  2810.     sort = "+" & TxtRecSort.Text
  2811.     sort = "-" & TxtRecSort.Text
  2812. End If
  2813.    CrystalReport1.SortFields(RecSort) = sort
  2814.     RecSort = RecSort + 1
  2815. End Sub
  2816. Private Sub CmdSecurity_Click()
  2817. CrystalReport1.UserName = TxtUserName.Text
  2818. CrystalReport1.Password = TxtPassword.Text
  2819. End Sub
  2820. Private Sub CmdSelPrinter_Click()
  2821. CrystalReport1.PrinterName = TxtPrnName.Text
  2822. CrystalReport1.PrinterDriver = TxtPrnDriver.Text
  2823. CrystalReport1.PrinterPort = TxtPrnPort.Text
  2824. End Sub
  2825. Private Sub CmdSetFont_Click()
  2826. Dim SectionFontAttrib As String
  2827. SectionFontAttrib = ChkSecFont(0).Value & ";" & ChkSecFont(1).Value & ";" & ChkSecFont(2).Value & ";"
  2828. SectionFontAttrib = SectionFontAttrib & ChkSecFont(3).Value
  2829. CrystalReport1.SectionFont(SecFont) = ReportSection & ";" & TxtFontName.Text & ";" & TxtFontSize.Text & ";" & SectionFontAttrib
  2830. SecFont = SecFont + 1
  2831. End Sub
  2832. Private Sub CmdSetFormat_Click()
  2833. Dim SectionValue As String
  2834. SectionValue = ChkSecFormat(0).Value & ";" & ChkSecFormat(1).Value & ";" & ChkSecFormat(2).Value & ";" & ChkSecFormat(3).Value & ";"
  2835. SectionValue = SectionValue & ChkSecFormat(4).Value & ";" & ChkSecFormat(5).Value & ";" & ChkSecFormat(6).Value
  2836. CrystalReport1.SectionFormat(SecNum) = ReportSection & ";" & SectionValue
  2837. SecNum = SecNum + 1
  2838. End Sub
  2839. Private Sub CmdSetGraph_Click()
  2840. Dim GraphText, GraphInfo As String
  2841. GraphText = TxtTitle.Text & ";" & TxtSubTitle.Text & ";" & TxtFootNote.Text & ";"
  2842. GraphText = GraphText & TxtGrpTitle.Text & ";" & TxtSeriesTitle.Text & ";" & TxtXAxis.Text & ";"
  2843. GraphText = GraphText & TxtYAxis.Text & ";" & TxtZAxis.Text
  2844. GraphInfo = ReportSection & ";" & Val(TxtGrphNum.Text) & ";" & GraphText
  2845. CrystalReport1.GraphText(GraphTextNum) = GraphInfo
  2846. GraphTextNum = GraphTextNum + 1
  2847. End Sub
  2848. Private Sub CmdSetHeight_Click()
  2849. Dim MinLine, LineInfo As String
  2850. MinLine = ReportSection & ";" & (Trim(Val(TxtMinHeight.Text)) * 1440)
  2851. LineInfo = ReportSection & ";" & Trim(Val(TxtLineNum.Text)) & ";"
  2852. LineInfo = LineInfo & (Trim(Val(TxtLineHeight.Text)) * 1440) & ";" & (Trim(Val(TxtLineAscent.Text)) * 1440)
  2853. CrystalReport1.SectionMinHeight(MinHeight) = MinLine
  2854. MinHeight = MinHeight + 1
  2855. CrystalReport1.SectionLineHeight(LineHeight) = ReportSection & ";" & LineInfo
  2856. LineHeight = LineHeight + 1
  2857. End Sub
  2858. Private Sub CmdSetMargins_Click()
  2859. CrystalReport1.MarginTop = Val(TxtTop.Text) * 1440
  2860. CrystalReport1.MarginBottom = Val(TxtBottom.Text) * 1440
  2861. CrystalReport1.MarginRight = Val(TxtRight.Text) * 1440
  2862. CrystalReport1.MarginLeft = Val(TxtLeft.Text) * 1440
  2863. End Sub
  2864. Private Sub CmdStoredProc_Click()
  2865. CrystalReport1.StoredProcParam(StoredProc) = TxtStoredProc.Text
  2866. StoredProc = StoredProc + 1
  2867. End Sub
  2868. Private Sub CmdWinTitle_Click()
  2869. CrystalReport1.WindowTitle = TxtWinTitle.Text
  2870. End Sub
  2871. Private Sub DataDirList_Change()
  2872. DataFileList.Path = DataDirList.Path
  2873. End Sub
  2874. Private Sub DataDriveList_Change()
  2875. DataDirList.Path = DataDriveList.Drive
  2876. End Sub
  2877. Private Sub DataFileList_DblClick()
  2878. Dim sRptDataFile As String
  2879. sRptDataFile = DataFileList.Path & "\" & DataFileList.filename
  2880. CrystalReport1.DataFiles(0) = sRptDataFile
  2881. End Sub
  2882. Private Sub DirList_Change()
  2883. FileList.Path = DirList.Path
  2884. End Sub
  2885. Private Sub DriveList_Change()
  2886. DirList.Path = DriveList.Drive
  2887. End Sub
  2888. Private Sub FileList_DblClick()
  2889. ChooseRpt
  2890. End Sub
  2891. Private Sub Form_Load()
  2892. Center Me                             ' Centers the form onto the screen.
  2893. MainTab.Tab = 0                       ' Intialize the program with the first tab open.
  2894. CmdBack.Enabled = False               ' Disable the << Back button so that the user
  2895. CmdNext.Enabled = False               ' is not able to click and try to go back from the
  2896. CmdAccept.Enabled = False             ' first tab. The Next >> button is disabled so that the
  2897.                                       ' user cannot proceed without choosing a report first.
  2898.                                       ' The Accept button is disabled as there is nothing to
  2899.                                       ' accept at this point.
  2900.                                       
  2901. With MainTab                          ' Disable all tabs other than the first tab
  2902.     .TabEnabled(1) = False            ' (Open a Crystal Report) and the last tab
  2903.     .TabEnabled(2) = False            ' (About Crystal Reports)
  2904.     .TabEnabled(3) = False
  2905.     .TabEnabled(4) = False
  2906. End With
  2907. End Sub
  2908. Private Sub FormulaTab_Click(PreviousTab As Integer)
  2909. If FormulaTab.Tab = 3 Then
  2910.     CmdAccptFormula.Enabled = False
  2911.     CmdClrFormula.Enabled = False
  2912.     CmdAccptFormula.Enabled = True
  2913.     CmdClrFormula.Enabled = True
  2914. End If
  2915. End Sub
  2916. Private Sub OptRange_Click(Index As Integer)
  2917. Select Case Index
  2918. Case 0
  2919.     LblRange(0).Enabled = False
  2920.     LblRange(1).Enabled = False
  2921.     TxtStartPage.Enabled = False
  2922.     TxtEndPage.Enabled = False
  2923. Case 1
  2924.     LblRange(0).Enabled = True
  2925.     LblRange(1).Enabled = True
  2926.     TxtStartPage.Enabled = True
  2927.     TxtEndPage.Enabled = True
  2928. End Select
  2929. End Sub
  2930. Private Sub PrnFileDrive_Change()
  2931.     PrnFileDir.Path = PrnFileDrive.Drive
  2932. End Sub
  2933. Private Sub SpinButton1_SpinDown()
  2934. ' Decrement the value in the text box on every SpinDown event.
  2935. If Str$(Val(TxtPrnCopies.Text)) > 1 Then
  2936.     TxtPrnCopies.Text = Str$(Val(TxtPrnCopies.Text) - 1)
  2937.         ' Display the current value in the text box.
  2938.     TxtPrnCopies.Refresh
  2939.  Else
  2940.     TxtPrnCopies.Text = 1
  2941.         
  2942.  End If
  2943. End Sub
  2944. Private Sub SpinButton1_SpinUp()
  2945.     ' Increment the value in the text box on every SpinUp event.
  2946.     TxtPrnCopies.Text = Str$(Val(TxtPrnCopies.Text) + 1)
  2947.     ' Display the current value in the text box.
  2948.     TxtPrnCopies.Refresh
  2949. End Sub
  2950. Private Sub OptDest_Click(Index As Integer)
  2951. Dim Destination As Integer
  2952. Select Case Index
  2953. Case 0
  2954.     CrystalReport1.Destination = 0  ' to window
  2955.     DestTab.TabEnabled(1) = True
  2956.     With DestTab
  2957.         .TabEnabled(2) = False
  2958.         .TabEnabled(3) = False
  2959.         .TabEnabled(4) = False
  2960.     End With
  2961.     DestTab.Tab = 1
  2962. Case 1
  2963.     CrystalReport1.Destination = 1  ' to printer
  2964.     DestTab.TabEnabled(2) = True
  2965.     With DestTab
  2966.         .TabEnabled(1) = False
  2967.         .TabEnabled(3) = False
  2968.         .TabEnabled(4) = False
  2969.     End With
  2970.     DestTab.Tab = 2
  2971. Case 2
  2972.     CrystalReport1.Destination = 2  ' to file
  2973.     DestTab.TabEnabled(3) = True
  2974.     With DestTab
  2975.         .TabEnabled(1) = False
  2976.         .TabEnabled(2) = False
  2977.         .TabEnabled(4) = False
  2978.     End With
  2979.     DestTab.Tab = 3
  2980. Case 3
  2981.     CrystalReport1.Destination = 3  ' to email
  2982.     DestTab.TabEnabled(4) = True
  2983.     With DestTab
  2984.         .TabEnabled(1) = False
  2985.         .TabEnabled(2) = False
  2986.         .TabEnabled(3) = False
  2987.     End With
  2988.     DestTab.Tab = 4
  2989. End Select
  2990. End Sub
  2991. Private Sub OptWinState_Click(Index As Integer)
  2992. Select Case Index
  2993. Case 0
  2994.     CrystalReport1.WindowState = 0 'normal
  2995. Case 1
  2996.     CrystalReport1.WindowState = 1 'minimized
  2997. Case 2
  2998.     CrystalReport1.WindowState = 2 'maximized
  2999. End Select
  3000. End Sub
  3001. Private Sub SpinButton2_SpinDown()
  3002. ' Decrement the value in the text box on every SpinDown event.
  3003. If Str$(Val(TxtNumDetails.Text)) > 1 Then
  3004.     TxtNumDetails.Text = Str$(Val(TxtNumDetails.Text) - 1)
  3005.         ' Display the current value in the text box.
  3006.     TxtNumDetails.Refresh
  3007.  Else
  3008.     TxtNumDetails.Text = 1
  3009.         
  3010.  End If
  3011. End Sub
  3012. Private Sub SpinButton2_SpinUp()
  3013.    ' Increment the value in the text box on every SpinUp event.
  3014.     TxtNumDetails.Text = Str$(Val(TxtNumDetails.Text) + 1)
  3015.     ' Display the current value in the text box.
  3016.     TxtNumDetails.Refresh
  3017. End Sub
  3018. Private Sub Toolbar1_ButtonClick(ByVal Button As Button)
  3019. ButtonVal = Button.Key
  3020. End Sub
  3021. Private Sub TxtFormulaName_Change()
  3022. CmdAccptFormula.Enabled = True
  3023. End Sub
  3024. Private Sub TxtGrpSelFormula_Change()
  3025. CmdAccptFormula.Enabled = True
  3026. End Sub
  3027. Private Sub TxtPrnFileName_Change()
  3028.     Dim sPrintFile As String
  3029.     sPrintFile = PrnFileDir.Path & "\" & TxtPrnFileName.Text
  3030.     CrystalReport1.PrintFileName = sPrintFile
  3031. End Sub
  3032. Private Sub TxtQuote_Change(Index As Integer)
  3033. CrystalReport1.PrintFileCharSepQuote = TxtQuote(Index).Text
  3034. End Sub
  3035. Private Sub TxtRecSelFormula_Change()
  3036. CmdAccptFormula.Enabled = True
  3037. End Sub
  3038. Public Sub ResetIndexes()
  3039. FormulaNum = 0
  3040. RecSort = 0
  3041. GrpSort = 0
  3042. SecNum = 0
  3043. SecFont = 0
  3044. StoredProc = 0
  3045. MinHeight = 0
  3046. LineHeight = 0
  3047. GroupCond = 0
  3048. GraphTextNum = 0
  3049. GraphTypeNum = 0
  3050. GraphOptNum = 0
  3051. GraphDataNum = 0
  3052. End Sub
  3053. Private Sub TxtSep_Change(Index As Integer)
  3054. CrystalReport1.PrintFileCharSepSeparator = TxtSep(Index).Text
  3055. End Sub
  3056. Private Sub TxtUserName_Change()
  3057. CmdSecurity.Enabled = True
  3058. End Sub
  3059. Public Sub LoadFileTypes()
  3060. Dim ListTypes As Integer
  3061. For ListTypes = 0 To 1
  3062.     With CboPrnFileType(ListTypes)
  3063.         .AddItem "Record", 0
  3064.         .AddItem "Tab Seperated", 1
  3065.         .AddItem "Text", 2
  3066.         .AddItem "Data Interchange Format", 3
  3067.         .AddItem "Comma Seperated", 4
  3068.         .AddItem "Character Seperated", 5
  3069.         .AddItem "Tab Setperated Text", 6
  3070.         .AddItem "Crystal Report", 7
  3071.         .AddItem "Excel 2.1", 8
  3072.         .AddItem "Excel 3.0", 9
  3073.         .AddItem "Excel 4.0", 10
  3074.         .AddItem "Excel 5.0", 11
  3075.         .AddItem "Lotus 1-2-3 WK1", 12
  3076.         .AddItem "Lotus 1-2-3 WK3", 13
  3077.         .AddItem "Lotus 1-2-3 WKS", 14
  3078.         .AddItem "Quattro Pro 5.0 WB1", 15
  3079.         .AddItem "Rich Text Format", 16
  3080.         .AddItem "Word for DOS", 17
  3081.         .AddItem "Word for Windows", 18
  3082.         .AddItem "WordPerfect", 19
  3083.     End With
  3084.     CboPrnFileType(ListTypes).Text = CboPrnFileType(ListTypes).List(0)
  3085. Next ListTypes
  3086. End Sub
  3087. Public Sub LoadSections()
  3088. Dim AddNum As Integer
  3089. For AddNum = 0 To 1
  3090. With CboSecList(AddNum)
  3091.     .AddItem "Title", 0
  3092.     .AddItem "Page Header", 1
  3093.     .AddItem "Group Header1", 2
  3094.     .AddItem "Group Header2", 3
  3095.     .AddItem "Group Header3", 4
  3096.     .AddItem "Group Header4", 5
  3097.     .AddItem "Group Header5", 6
  3098.     .AddItem "Group Header6", 7
  3099.     .AddItem "Group Header7", 8
  3100.     .AddItem "Group Header8", 9
  3101.     .AddItem "Group Header9", 10
  3102.     .AddItem "Details", 11
  3103.     .AddItem "Group Footer9", 12
  3104.     .AddItem "Group Footer8", 13
  3105.     .AddItem "Group Footer7", 14
  3106.     .AddItem "Group Footer6", 15
  3107.     .AddItem "Group Footer5", 16
  3108.     .AddItem "Group Footer4", 17
  3109.     .AddItem "Group Footer3", 18
  3110.     .AddItem "Group Footer2", 19
  3111.     .AddItem "Group Footer1", 20
  3112.     .AddItem "Page Footer", 21
  3113.     .AddItem "Grand Total", 22
  3114.     .AddItem "Summary", 23
  3115.     .AddItem "All", 24
  3116. End With
  3117. CboSecList(AddNum).Text = CboSecList(AddNum).List(0)
  3118. Next AddNum
  3119. End Sub
  3120. Public Sub LoadCond()
  3121. With CboCond
  3122.     .AddItem "On Any Change", 0
  3123.     .AddItem "---Used with Date Conditions---", 1
  3124.     .AddItem "Daily", 2
  3125.     .AddItem "Weekly", 3
  3126.     .AddItem "Bi Weekly", 4
  3127.     .AddItem "Semi Monthly", 5
  3128.     .AddItem "Monthly", 6
  3129.     .AddItem "Quarterly", 7
  3130.     .AddItem "Semi Anually", 8
  3131.     .AddItem "Anually", 9
  3132.     .AddItem "---Used with Boolean Conditions---", 10
  3133.     .AddItem "To Yes", 11
  3134.     .AddItem "To No", 12
  3135.     .AddItem "Every Yes", 13
  3136.     .AddItem "Every No", 14
  3137.     .AddItem "Next is Yes", 15
  3138.     .AddItem "Next is No", 16
  3139. End With
  3140. CboCond.Text = CboCond.List(0)
  3141. End Sub
  3142. Public Sub LoadDataDir()
  3143. Dim DataDir As Integer
  3144. With CboDataDir
  3145.     .AddItem "Rows", 0
  3146.     .AddItem "Columns", 1
  3147.     .AddItem "Rows and Columns", 2
  3148.     .AddItem "Columns and Rows", 3
  3149. End With
  3150. CboDataDir.Text = CboDataDir.List(0)
  3151. End Sub
  3152.