Solved

The report you requested requires further information.

Posted on 2009-07-10
3
1,234 Views
Last Modified: 2012-06-27
I have a crystal report in a vb.net page using the crystal viewer.
this is the code.
it works fine on my local machine
I have the odbc source set on my machine DSN and the IIS server as well

but when I move it up to the server it gives me
The report you requested requires further information.
     and asks me for the password....
any help would be appreciated Thanks

Dim params As New ParameterFields ' tHis requires only one object
 

            Dim dte1Field As New ParameterField ' ParameterField for 1st param

            Dim dte2field As New ParameterField ' param for second param\
 

            Dim dte1Value As New ParameterDiscreteValue 'ParameterDiscreteValue for 1st param

            Dim dte2value As New ParameterDiscreteValue
 

            dte1Value.Value = Request.QueryString("dte1")

            dte2value.Value = Request.QueryString("dte2")
 

            dte1Field.Name = "@dte1"

            dte2field.Name = "@dte2"
 

            dte1Field.ParameterValueType = ParameterValueKind.DateParameter

            dte2field.ParameterValueType = ParameterValueKind.DateParameter
 

            dte1Field.CurrentValues.Add(dte1Value)

            dte2field.CurrentValues.Add(dte2value)
 

            params.Add(dte1Field)

            params.Add(dte2field)

            'Dim params As New ParameterFields ' tHis requires only one object

            'Dim locField As New ParameterField ' ParameterField for 1st param

            'Dim locValue As New ParameterDiscreteValue 'ParameterDiscreteValue for 1st param
 

            'locValue.Value = Request.QueryString("Loc").ToString()

            'locField.Name = "@Loc"

            'locField.ParameterValueType = ParameterValueKind.StringParameter

            'locField.CurrentValues.Add(locValue)

            'params.Add(locField)
 

            Dim myreport As New ReportDocument

            myreport.Load(Server.MapPath("Reports\Type-10.rpt"))

            myreport.SetDatabaseLogon("XXXXX", "XXXXXX")

            CrystalReportViewer1.ParameterFieldInfo = params

            CrystalReportViewer1.ReportSource = myreport

            Session("StoreReport") = myreport

Open in new window

0
Comment
Question by:kurtrossr
3 Comments
 
LVL 7

Expert Comment

by:PCIRichard
ID: 24824620
Is the odbc datasource also set up on the server?
0
 

Author Comment

by:kurtrossr
ID: 24824887
yes. and tested successfully
.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 24828967
You need to change the database location in the application since you are changing the connection.

I'll try to find an example.

mlmcc
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Runtime Error 2 29
Field in crystal 2011 is being cut off. 9 19
Variable Event ? 3 23
VB.NET 2008 Populate DataModel with DataTable 44 17
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now