Solved

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

Posted on 2008-10-15
6
615 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

808 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