Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 21st, 2008, 03:57 PM
Authorized User
 
Join Date: Oct 2006
Location: , , .
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.
        InitializeComponent()
    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)
        ParameterField1.CurrentValues.Add(spValue1)
        ParameterFields.Add(ParameterField1)
        CrystalReportViewer1.ParameterFieldInfo = ParameterFields
        CrystalReportViewer1.ReportSource = ApplicantPaymentByYear
    End Sub

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:30 AM.


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