Wrox Programmer Forums
|
BOOK: Professional Crystal Reports for VS.NET
This is the forum to discuss the Wrox book Professional Crystal Reports for Visual Studio .NET by David McAmis; ISBN: 9780764544033
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Crystal Reports for VS.NET 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 March 23rd, 2009, 07:32 AM
Authorized User
 
Join Date: Nov 2007
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Hughesie78
Default migrating to vb.net and grouping report data.

Hi, Im using VB.NET, migrating vb6 app to .net.
Have a form of drop downs, dates etc, they are all used to pass info to a crystal reporting selection formula, I also want to sort based on an option button selected, each value represent a group on the crystal report.
Previously in VB 6 it was done like this:
'Sorts
If OptSort1.Value = True Then
RptCrystal.GroupCondition(0) = "Group1;{table.PRODUCT};AnyChange;A"
ElseIf OptSort2.Value = True Then
RptCrystal.GroupCondition(0) = "Group1;{ table.PRODUCT_NO};AnyChange;A"
ElseIf OptSort3.Value = True Then
RptCrystal.GroupCondition(0) = "Group1;{ table.SEASON};AnyChange;A"
ElseIf OptSort4.Value = True Then
RptCrystal.GroupCondition(0) = "Group1;{ table.SALES};AnyChange;D"
ElseIf OptSort5.Value = True Then
RptCrystal.GroupCondition(0) = "Group1;{ table.UNITS};AnyChange;D"
End If

Any ideas how I can do the exact same in VB.NET?
__________________
Thank You





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
Access Report Help - Grouping Data by Week Ending derekdeben Access 8 January 18th, 2007 11:24 AM
Grouping Header/Footer in VB 6 Report Design Oyero VB How-To 1 February 18th, 2005 09:29 AM
migrating from vb to c# noman77 VS.NET 2002/2003 2 October 14th, 2004 05:39 PM
migrating data using FOR EACH? krstofer Classic ASP Databases 1 April 15th, 2004 03:48 PM





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