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 July 27th, 2004, 11:19 AM
Authorized User
 
Join Date: Jun 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default simple parameter problem

here is the code, i have set up my report to accept an employeeid parameter. the user enters a employeeid and hits the button, and a corresponding report should appear. all this is done in a win form, however nuthing happens,

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Windows.Forms
Imports CrystalDecisions.Shared

Public Class Form1
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "


    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim myparameterfields As New parameterfields()
        Dim myparameterField As New ParameterField()
        Dim mydiscretevalue As New parameterDiscreteValue()

        myparameterField.ParameterFieldName = "employeeid"
        mydiscretevalue.Value = TextBox1.Text
        myparameterField.CurrentValues.add(mydiscretevalue )

        myparameterfields.add(myparameterField)

        CrystalReportViewer1.ParameterFieldInfo = myparameterfields
        CrystalReportViewer1.Refresh()


    End Sub
End Class


thanks!!!!

 
Old July 27th, 2004, 11:57 AM
Authorized User
 
Join Date: Jun 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

oh by the way guys i get the generic (default) parameter window poping up when i run my application which is annoying becuase i want to send the parameter through my own win form.


many thanks

 
Old July 31st, 2004, 01:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

http://p2p.wrox.com/topic.asp?TOPIC_ID=6389
HTH

Always:),
Hovik Melkomian.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple != problem akentanaka XSLT 3 October 13th, 2008 11:54 PM
Simple Problem Little Shell XML 2 June 5th, 2006 03:30 PM
Simple problem rsa3des Classic ASP Basics 4 August 8th, 2005 06:14 PM
Simple Problem bsdb3 Java GUI 2 February 5th, 2004 09:05 PM
simple problem Adam H-W Javascript 2 November 11th, 2003 12:48 PM





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