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 February 21st, 2008, 03:57 PM
Authorized User
Join Date: Oct 2006
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Default further information

Whenever I try to populate the data to my report it throws up the screen asking for the year saying....

The report you requested requires further information asking for the year....

I'm already putting the year in though so I don't know what's wrong. Here's the code, could someone help me.

Imports System.Data.SqlClient
Public Class ApplicantPaymentByYear1
    Inherits System.Web.UI.Page

    Protected WithEvents CrystalReportViewer1 As CrystalDecisions.Web.CrystalReportViewer
    Protected WithEvents ApplicantPaymentByYear As FTS.ApplicantPaymentByYear

    Dim strYear As String
    Dim MyReport As CrystalDecisions.CrystalReports.Engine.ReportDocum ent
    Dim connFTS As SqlConnection

#Region " Web Form Designer Generated Code "

    'This call is required by the Web Form Designer.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

    End Sub

    'NOTE: The following placeholder declaration is required by the Web Form Designer.
    'Do not delete or move it.
    Private designerPlaceholderDeclaration As System.Object

    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
        'CODEGEN: This method call is required by the Web Form Designer
        'Do not modify it using the code editor.
    End Sub

#End Region

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Put user code to initialize the page here
    End Sub

    Private Sub SpWithViewer(ByVal spParameter1 As String, ByVal spParameter2 As String)
        Dim ParameterFields As CrystalDecisions.Shared.ParameterFields
        Dim ParameterField1 As CrystalDecisions.Shared.ParameterField
        Dim spValue1 As CrystalDecisions.Shared.ParameterDiscreteValue
        ParameterFields = New CrystalDecisions.Shared.ParameterFields
        ParameterField1 = New CrystalDecisions.Shared.ParameterField
        ParameterField1.ParameterFieldName = "@Year"
        spValue1 = New CrystalDecisions.Shared.ParameterDiscreteValue
        spValue1.Value = (spParameter1)
        CrystalReportViewer1.ParameterFieldInfo = ParameterFields
        CrystalReportViewer1.ReportSource = ApplicantPaymentByYear
    End Sub

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need information on ports acelives Other Programming Languages 1 May 29th, 2011 09:00 AM
cpu information !! angelboy C# 2005 1 February 26th, 2007 09:31 AM
how to get Client information kfarooqguru Pro JSP 1 December 23rd, 2005 10:58 AM
Information on C# student_help C# 1 December 16th, 2005 07:34 PM
Registry Information bmains ASP.NET 1.x and 2.0 Application Design 1 April 19th, 2004 03:15 PM

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