Print Page | Close Window

Is there way to create .NET subreports on the fly?

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=1437
Printed Date: 03 May 2025 at 12:00am


Topic: Is there way to create .NET subreports on the fly?
Posted By: tsev
Subject: Is there way to create .NET subreports on the fly?
Date Posted: 03 Oct 2007 at 5:34am
Quick question:
 
Is there a way to create the CR subreports during the run time (using VS .NET 2005 IDE) versus the design time?
 
We have a scenario when we don't know the exact number of the subreports during the design time, and therefore most of subreports must be created and added to the .Subreports collection on the fly.
 
 
Same question about adding sections to the .Sections collection on the fly.
 
 
Thank you,
TS



Replies:
Posted By: BrianBischof
Date Posted: 04 Oct 2007 at 11:39pm
Yes and no. With CR XI RS Developer edition, you can add subreports on the fly (please download the trial version first b/c this is what I've been told but I haven't tested it yet). However, with .NET 2005 by itself, you can't do this.

-------------
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>



Print Page | Close Window