Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 26th, 2008, 06:13 AM
Registered User
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to passing multi parameter

hai guys,

need help from your expertise.

I have problem when send 2 or more parameter to store procedure
and display with crystal reports XII release 2.

If for 1 parameter is no problem.

Here my syntax for 1 parameter, perhaps it's also can help
who has same problem with me.

-------------------------Begin ----------------------------------
Dim rptalmaya As New ReportDocument()
        Dim paramField As ParameterField
        Dim i As Integer

        Try

            rptalmaya.Load("C:\report\alfombra.rpt")
            rptalmaya.SetDatabaseLogon("barcode", "diablo")
            paramField = rptalmaya.ParameterFields("@Kdalfombra")
            paramField.CurrentValues.AddValue(Trim(txtcode.Tex t))

            For i = 1 To txtqty.Text
                rptalmaya.PrintToPrinter(1, True, 0, 0)
            Next
            rptalmaya.Close()
            kosongkan()
        Catch ex As Exception
            MsgBox(ex.Message().ToString, MsgBoxStyle.Information, "Error printing Progress @Alfombra almaya...")
        End Try
end sub

---------------------------------- end --------------------------

thanks for your help and sugestion


nb : I'm not used crystalreport viewer to display the result.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Multi-select for report parameter JimReid BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 January 30th, 2007 11:44 AM
passing parameter.. suzila VB.NET 2002/2003 Basics 7 May 17th, 2004 08:28 PM
Parameter passing psambor Beginning PHP 0 September 17th, 2003 01:47 AM
Passing Parameter tgopal Javascript 3 August 7th, 2003 07:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.