rianto isaac's Weblog

rianto utomo isaac sahala utomo

cr, cetak berdasarkan tanggal

leave a comment »

With CrystalReport1
.Connect = “driver={SQLServer};server

=ServerName;uid=sa;pwd=;database=databasename”

.ReportFileName = “C:\My Documents\VBTraining\TestParameters.rpt”
.ReplaceSelectionFormula “{SalesVolume.OrdDate} in Date(” & _
Format(txtFromDate, “yyyy,m,d”) & “) to Date(” & _
Format(txtToDate, “yyyy,m,d”) & “)”
.Destination = crptToWindow

mres = .PrintReport
If mres <> 0 Then
MsgBox “printer error on Crystal report :” & .LastErrorString
End If
End With

Written by isaaconi

November 24, 2008 pada 7:48 am

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

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

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: