Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 16th, 2007, 02:54 AM
Registered User
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Crystal Sub report using C#

hi please help,
i'm having a problem making a sub report.
The main report is working fine, but when i add the a sub report to my main report it is asking for Server name, Database name, User name and Password.
please help, how can i load my data for sub report.

This is my current code when i add sub report:

PopulateStockValuesArrayList();
String reportPath = Server.MapPath("CrystalReport.rpt");
ComplaintObjectsReport = new ReportDocument();
ComplaintObjectsReport.Load(reportPath);
ComplaintObjectsReport.SetDataSource(stockValues);
ComplaintObjectsReport.OpenSubreport("Sub-Action").SetDataSource(stockValues2);
CrystalReportViewer1.ReportSource = ComplaintObjectsReport;

thanks in advanced
Gilbert






Similar Threads
Thread Thread Starter Forum Replies Last Post
simple report and crystal report in vb.net saket123 .NET Framework 2.0 0 August 13th, 2008 06:55 AM
VS 2002 Crystal Report opens Seagate crystal 8 tusis_1 Crystal Reports 0 May 12th, 2007 11:45 AM
Crystal Report in C# 2.0 sh.rajkumar C# 0 August 18th, 2006 11:33 PM
Crystal report help Samk Crystal Reports 2 October 13th, 2004 10:11 AM
Error While printing report (Crystal report) vikaspaweb Pro VB 6 0 March 8th, 2004 09:53 AM





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