VERSION 5.00
Object = "{C4847593-972C-11D0-9567-00A0C9273C2A}#8.0#0"; "crviewer.dll"
Begin VB.Form frmViewReport 
   BorderStyle     =   0  'None
   Caption         =   "Preview Laporan"
   ClientHeight    =   7500
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   11865
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MDIChild        =   -1  'True
   ScaleHeight     =   7500
   ScaleWidth      =   11865
   ShowInTaskbar   =   0   'False
   Begin VB.PictureBox picBG 
      Appearance      =   0  'Flat
      BorderStyle     =   0  'None
      ForeColor       =   &H80000008&
      Height          =   6975
      Left            =   450
      ScaleHeight     =   6975
      ScaleWidth      =   11085
      TabIndex        =   0
      TabStop         =   0   'False
      Top             =   360
      Width           =   11085
      Begin VB.PictureBox Picture1 
         Appearance      =   0  'Flat
         BorderStyle     =   0  'None
         ForeColor       =   &H80000008&
         Height          =   345
         Left            =   7380
         ScaleHeight     =   345
         ScaleWidth      =   3435
         TabIndex        =   3
         Top             =   180
         Width           =   3435
         Begin VB.CommandButton CmdClose 
            Caption         =   "Tutup &Preview"
            BeginProperty Font 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   345
            Left            =   2100
            TabIndex        =   5
            Top             =   0
            Width           =   1275
         End
         Begin VB.CommandButton cmdPrint 
            Caption         =   "&Cetak"
            BeginProperty Font 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   345
            Left            =   810
            TabIndex        =   4
            Top             =   0
            Width           =   1275
         End
      End
      Begin CRVIEWERLibCtl.CRViewer crv 
         Height          =   6615
         Left            =   210
         TabIndex        =   1
         Top             =   180
         Width           =   10635
         DisplayGroupTree=   0   'False
         DisplayToolbar  =   -1  'True
         EnableGroupTree =   0   'False
         EnableNavigationControls=   -1  'True
         EnableStopButton=   0   'False
         EnablePrintButton=   0   'False
         EnableZoomControl=   -1  'True
         EnableCloseButton=   0   'False
         EnableProgressControl=   0   'False
         EnableSearchControl=   -1  'True
         EnableRefreshButton=   0   'False
         EnableDrillDown =   0   'False
         EnableAnimationControl=   0   'False
         EnableSelectExpertButton=   0   'False
         EnableToolbar   =   -1  'True
         DisplayBorder   =   0   'False
         DisplayTabs     =   0   'False
         DisplayBackgroundEdge=   -1  'True
         SelectionFormula=   ""
         EnablePopupMenu =   0   'False
         EnableExportButton=   -1  'True
         EnableSearchExpertButton=   0   'False
         EnableHelpButton=   0   'False
      End
      Begin VB.Label Label2 
         Alignment       =   2  'Center
         Appearance      =   0  'Flat
         BackColor       =   &H00E0E0E0&
         Caption         =   "Preview Laporan"
         BeginProperty Font 
            Name            =   "Tahoma"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H80000008&
         Height          =   255
         Left            =   690
         TabIndex        =   2
         Top             =   6840
         Visible         =   0   'False
         Width           =   2565
      End
      Begin VB.Shape shp 
         BorderColor     =   &H00C0C0C0&
         Height          =   315
         Index           =   2
         Left            =   660
         Tag             =   "2"
         Top             =   6810
         Visible         =   0   'False
         Width           =   2625
      End
      Begin VB.Shape shp 
         BorderColor     =   &H00FFFFFF&
         Height          =   6765
         Index           =   1
         Left            =   150
         Tag             =   "1"
         Top             =   120
         Width           =   10785
      End
      Begin VB.Shape shp 
         BorderColor     =   &H00808080&
         BorderWidth     =   2
         Height          =   6765
         Index           =   0
         Left            =   150
         Tag             =   "2"
         Top             =   120
         Width           =   10785
      End
   End
End
Attribute VB_Name = "frmViewReport"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub CmdClose_Click()
  Unload Me
End Sub

Private Sub cmdPrint_Click()
  If Len(crv.Tag) = 0 Then
    crv.PrintReport
  Else
    Call Print2Paper(Tag, crv.Tag)
  End If
End Sub

Private Sub Form_Load()
'  Screen.MousePointer = vbHourglass
'  goConn.ChangeLayout (Me)
  BackColor = MDI.BackColor
'  Screen.MousePointer = vbDefault
  
  Screen.MousePointer = vbHourglass
  crv.Zoom 100
  Screen.MousePointer = vbDefault
End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
  Set frmViewReport = Nothing
End Sub

Private Sub Form_Resize()
  CenterForm Me, MDI
End Sub
