Click here to Skip to main content
15,892,839 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i'm a newbie, how i passing parameter from vb6 to store procedure and display it to crystal report. :sigh:

rgds
Posted

just make the file in crystal report.

call the file in vb6

Dim Appl As New CRAXDRT.Application
Dim Report As New CRAXDRT.Report

Set Report = Appl.OpenReport(App.Path &"\ledger1.rpt")


CRViewer1.ReportSource = Report
CRViewer1.ViewReport

Report.EnableParameterPrompting = True
Report.DiscardSavedData
Report.ParameterFields(1).ClearCurrentValueAndRange
Report.ParameterFields(1).AddCurrentValue Combo1.Text

CRViewer1.RefreshEx True
CRViewer1.Zoom (93)
 
Share this answer
 
wew.... i got this error:

user-defined type not defined

when the program try to execute

VB
Dim Appl As New CRAXDRT.Application
Dim Report As New CRAXDRT.Report


even when i was add CRViwer to the form??
:confused::confused:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900