on 06-07-2016 7:40 AM
My Sub Report works until I add stored video parameters and linked it to my Main, It got stuck on "Please wait while the document is processing".
The Main Report Preview Works but if I run the report it doesn't
Here's my stored procedure for both reports:
ALTER PROCEDURE[dbo].[usp_MainReport]
(
@StartDate DATETIME,
@EndDate DATETIME
)
AS
BEGIN
select * from users
END
ALTER PROCEDURE[dbo].[usp_SubReport]
(
@StartDate DATETIME,
@EndDate DATETIME
)
AS
BEGIN
select * from users
END
Is there a problem with my SAP Crystal Report?
If they are the same SP why have 2 separate ones?
Remember also, if your subreport is in the detail or group every record returned runs the SP for the subreport, so for 1000 rows returned in the main report the subreport will run 1000 times.
Have you tried waiting to see and monitor the DB server to see if it's still running the SP?
How many rows are returned in the main report?
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply, it's not the same stored procedure. I just put an example, but they have the same idea..
Also the subreport is on the report footer section. I'm using C# with VIsual Studio 2015.
This is the code I use to pass values to my stored procedure in my main report which works..
private DataTable GetData()
{
DataTable dtData = new DataTable();
using (SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["CSPOSWare.Reports.Properties.Settings.testConnectionString"].ConnectionString))
{
using (SqlCommand cmd = new SqlCommand("usp_MainReport", conn))
{
cmd.CommandType = CommandType.StoredProcedure;
conn.Open();
cmd.Parameters.AddWithValue("@StartDate", this.StartDate);
SqlDataReader rdr = cmd.ExecuteReader();
dtData.Load(rdr);
}
}
return dtData;
}
Yes DB Server is running I have attached an picture on my question regarding how it looked like and how it is running on Report Preview. Is this limitation to unregistered crystal report?
What do I do with it? I checked the Kbase article 2281780
i7p.wdf.sap.corp’s server DNS address could not be found.
gave me this..
Hi, can you please check this link.. c# - Crystal report with linked subreport only working on Report Preview - Stack Overflow
my question is the same but I put there more details like screenshot etc.
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.