borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Problem on Data report?)Next Topic (Crystal Report with VB6) New Topic New Poll Post Reply
AndreaVB Forum : Reporting tools : Crystal Report With Vb6
Poster Message
lbuntha
Level: Scholar

Registered: 05-05-2006
Posts: 39

icon Crystal Report With Vb6

I am using Crystal Report 8.5 with store procedure in Sql server.
I want to pass parameter from vb form to crystal report.
Can you give me code to do this?
Thank for your reply.

____________________________
ly buntha

05-08-2006 at 09:22 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
s.ostwal
Level: Whizz Kid


Registered: 03-08-2006
Posts: 16
icon Re: Crystal Report With Vb6

Hi,

use this code
to send the parameter

----------------------------------

Public gRptApp As CRAXDRT.Application
Public gReport As CRAXDRT.Report

    Set gRptApp = New CRAXDRT.Application
    Set gReport = gRptApp.OpenReport(FileName)
    gReport.ParameterFields.Item(1).AddCurrentValue Value
...
    gReport.ParameterFields.Item(n).AddCurrentValue Value

----------------------------------

But for this u have to first create the parameter in the reports

if any problem reply me

Swapnil

17-08-2006 at 07:54 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Reporting tools : Crystal Report With Vb6
Previous Topic (Problem on Data report?)Next Topic (Crystal Report with VB6) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder