IT Community - Software Programming, Web Development and Technical Support

The report you requested requires further information

This is a discussion on The report you requested requires further information within the ASP and ASP.NET Programming forums, part of the Web Development category; Hi I have used crystal report to generate the report using dataset. I am getting the following error 'The report ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-14-2008, 12:41 AM
shaalini shaalini is offline
D-Web Analyst
 
Join Date: Apr 2007
Posts: 342
shaalini is on a distinguished road
Default The report you requested requires further information

Hi
I have used crystal report to generate the report using dataset.
I am getting the following error 'The report you requested requires further information '
ServerName
Username:
Passowrd:

When each time time the page is navigated ,or when i click any button in toolbar, and the page stays only in first page

Here is My code
<%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" DisplayGroupTree="False" HasPrintButton="False" EnableDatabaseLogonPrompt="true " HasCrystalLogo="False" HasSearchButton="False" HasDrillUpButton="False" HasToggleGroupTreeButton="False" BorderStyle="Outset" BorderColor="black" HasPageNavigationButtons="True" Width="1000px"/>

In the page load
CrystalReportViewer1.ReportSource = myReportDocument;
CrystalReportViewer1.DataBind();
__________________
Shaalini.S
Be the Best of Whatever you are...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-14-2008, 12:43 AM
bluesky bluesky is offline
D-Web Analyst
 
Join Date: Jun 2007
Posts: 201
bluesky is on a distinguished road
Default Re: The report you requested requires further information

create a new ReportDocument into which you will load the Crystal Report Template, and set this document's DataSource to the DataSet that the XML file was created from. Then set the ReportDocument to be the report source for the CrystalReportViewer, and add code to bind it, as follows.

rystalDecisions.CrystalReports.Engine.ReportDocume nt myReportDocument;
myReportDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocum ent();
myReportDocument.Load(Server.MapPath("CrystalRepor t.rpt"));
CrystalReportViewer1.ReportSource = myReportDocument;
CrystalReportViewer1.DataBind();
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-14-2008, 12:45 AM
shaalini shaalini is offline
D-Web Analyst
 
Join Date: Apr 2007
Posts: 342
shaalini is on a distinguished road
Default Re: The report you requested requires further information

hi
It works fine .But Still i m getting the error when the Report loads.
__________________
Shaalini.S
Be the Best of Whatever you are...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-14-2008, 12:46 AM
bluesky bluesky is offline
D-Web Analyst
 
Join Date: Jun 2007
Posts: 201
bluesky is on a distinguished road
Default Re: The report you requested requires further information

Try this code
myReportDocument.SetDatabaseLogon(string username,string password);
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-14-2008, 12:48 AM
shaalini shaalini is offline
D-Web Analyst
 
Join Date: Apr 2007
Posts: 342
shaalini is on a distinguished road
Default Re: The report you requested requires further information

hi bluesky
Thanx,It works fine
__________________
Shaalini.S
Be the Best of Whatever you are...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-14-2008, 08:44 PM
GDevakii GDevakii is offline
D-Web Sr.Programmer
 
Join Date: Aug 2007
Posts: 138
GDevakii is on a distinguished road
Smile Re: The report you requested requires further information

private void setDBLOGONforREPORT(ConnectionInfo myconnectioninfo)
{
TableLogOnInfos mytableloginfos = new TableLogOnInfos();
mytableloginfos = CrystalReportViewer1.LogOnInfo;
foreach (TableLogOnInfo myTableLogOnInfo in mytableloginfos)
{
myTableLogOnInfo.ConnectionInfo = myconnectioninfo;
}

}
In Page Load....
ConnectionInfo myConnectionInfo = new ConnectionInfo();

myConnectionInfo.ServerName = "serverName";
myConnectionInfo.DatabaseName = "DatabaseName";
myConnectionInfo.UserID = "sa";
myConnectionInfo.Password = "pwd";
setDBLOGONforREPORT(myConnectionInfo);
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
get the information of the browser? saravanan HTML, CSS and Javascript Coding Techniques 1 04-15-2008 06:03 AM
Microsoft Information Shanthi Technology BUZZzzzzz 5 03-21-2008 04:12 AM
Track User information Jeyaseelansarc PHP Programming 9 08-06-2007 03:06 AM
Visitor's browser information venkat_charya PHP Programming 2 07-19-2007 03:50 AM
Information and code samples rgm5 Ruby 0 02-23-2007 06:51 AM


All times are GMT -7. The time now is 06:05 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0