Mencetak Laporan di Visual Basic Antara 2 Tanggal Dengan Crystal Report

27 Oktober 2008 at 8:54 am Tinggalkan Komentar

untuk mencetak laporan di visual basic dengan menggunakan crystal report, pertama pada form dialog cetak terlebih dahulu tambahkan 2 buah object DTPicker

cetak antara 2 tanggal
cetak antara 2 tanggal

jangan lupa tambahkan component crystal reportnya kemudian di command cetak isi dengan scrip di bawah ini

With crdp
.Reset
.ReportFileName = App.Path & “\..\laporan\laporan_Daftar_Pasien.rpt”
.WindowState = crptMaximized
‘.WindowParentHandle
.LogOnServer “PDSSQL”, “LITBANK003″, “dbspp”, “sa”, “sa”
.RetrieveDataFiles

.SelectionFormula = “{TblBarangMasuk.TglMasuk}>= cdate(‘” & tgl1.Value & “‘) AND TblBarangMasuk.TglMasuk}<=CDATE(‘” & tgl2.Value & “‘)”

.ReportTitle = “Report Data Pasien Antara ” & ” ” & Format$(TglAwal.Value, “long date”) & ” ” & “and” & ” ” & Format(TglAkhir.Value, “long date”)
.WindowState = crptMaximized
.Action = 1
End With

Entry filed under: Visual Basic. Tags: .

Mengisi Data Pada Combo Box Dengan database (PHP & MySql) Mengenal Web Design dan kelengkapan

Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Ubah )

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Tanggal

Oktober 2008
S S R K J S M
« Jul   Nov »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Top Clicks

  • Tidak ada

Counter

  • 8,470 hits

Arsip

Yaho!!! Status

FaceBook

Profil Facebook Hariyanto Wibowo

ziddu


Ikuti

Get every new post delivered to your Inbox.