Solved

The report you requested requires further information.

Posted on 2009-07-10
3
1,235 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

831 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