Visual Studio 2005For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Visual Studio 2005 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
I have developed one crystal report in Visual report having group by one string datatype column. I want to sort this report by one datetime column. So i have set it in VB.net code. Code Looks like this.
If Not sortBy.Contains("GroupByDeliverDate") Then
_fieldDef = report.Database.Tables.Item("PharmacyCost").Fields.Item("DeliveredDate")
report.DataDefinition.SortFields(j).Field = _fieldDef
j += 1
End If
While generating the report, it throws error on above mention line saying"".
"The group options for a date, time or date-time condition field must be a date group options object."
Does anyone have any idea about the error. Please give me some resolution to fix the error.