Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
Servermaster Servermaster is offline
Member Aktif
 
Join Date: Nov 2011
Posts: 257
Rep Power: 14
Servermaster mempunyai hidup yang Normal
Default Crystal Report VB.NET 2008

permisi semuanya, ane lagi ada project nih, cuma sekarang lagi stack di bagian crystal report



gw mao nampilin laporan penjualan per transaksi penjualan, pembelian gitu2, nah gw ada liat codingan temen gw, dia di reportnya codingnya kyk gini:



Imports CrystalDecisions.CrystalReports.Engine

Imports CrystalDecisions.Shared

Public Class Report

Public flag As Integer

Private Sub Report_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim cryRpt As New ReportDocument

If (flag = 0) Then

Label1.Text = "No Order Penjualan"

cryRpt.Load("C:\Documents and Settings\Henry\My Documents\Visual Studio 2008\Projects\Bhineka\Bhineka\RptOrderPenjualan.rp t")

ElseIf (flag = 1) Then

Label1.Text = "No Order Pembelian"

cryRpt.Load("C:\Documents and Settings\Henry\My Documents\Visual Studio 2008\Projects\Bhineka\Bhineka\RptOrderPembelian.rp t")

End If

Dim crParameterFieldDefinitions As ParameterFieldDefinitions

Dim crParameterFieldDefinition As ParameterFieldDefinition

Dim crParameterValues As New ParameterValues

Dim crParameterDiscreteValue As New ParameterDiscreteValue



crParameterDiscreteValue.Value = TextBox1.Text

crParameterFieldDefinitions = cryRpt.DataDefinition.ParameterFields

crParameterFieldDefinition = crParameterFieldDefinitions.Item("Kode")

crParameterValues = crParameterFieldDefinition.CurrentValues



crParameterValues.Clear()

crParameterValues.Add(crParameterDiscreteValue)

crParameterFieldDefinition.ApplyCurrentValues(crPa rameterValues)



CrystalReportViewer1.ReportSource = cryRpt

CrystalReportViewer1.Refresh()

End Sub

End Class



kalo dijalanin sih, dia emang keliatan mau tampilin laporan berdasarkan kode transaksi berapa, tapi isi transaksinya ga ada datanya, jadi cuma muncul kdpenjualan, trus ga muncul deh yg kayak nama pelanggan, tanggal penjualan, barang dkk gt.



gw baca tuh coding, coba ngertiin jg ga ngerti2..

uda coba googling2, tp aneh2 semua dapetnya



tolong donk bantuan sesepuh, ajarin crystal report.. ane ga ngerti2



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 06:59 PM.


no new posts