Solved

how to group in a crystal report based on formula using vb.net

Posted on 2008-10-15
6
616 Views
Last Modified: 2008-10-15
how to group in a crystal report based on formula using vb.net
0
Comment
Question by:mseit
  • 3
  • 3
6 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 22720471
What do you mean?

Crystal can only base groups on Crystal formulas or database fields not anything from VB.Net

mlmcc
0
 

Author Comment

by:mseit
ID: 22721164
Can you give code snippet for passing value for grouping.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 22722186
What kind of code?  What value are you passing?

What data do you have?

What are you trying to accomplish?

mlmcc
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 

Author Comment

by:mseit
ID: 22728092

Actually i want to pass a field name from vb.net to CR and grouping should be made based on it.
For Eg In case of SalesOrder Report, if i pass Deliverydate Or ItemCode grouping has to be done based on it.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 125 total points
ID: 22728221
You can group on a formula but you will have to convert all fields to the same datatype most likely STRING or TEXT

If {?YourGroupParam} = 'DelveryDate' then
    CStr({DelveryDateField},'yyyy/mm/dd')
Else If {?YourGroupParam} = 'ItemCode' then
    {ItemCodeField}
Else etc

mlmcc
0
 

Author Comment

by:mseit
ID: 22728273
Thanks.It is working.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question