Solved

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

Posted on 2008-10-15
6
619 Views
Last Modified: 2008-10-15
how to group in a crystal report based on formula using vb.net
0
Comment
Question by:mseit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 101

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 101

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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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 101

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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

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…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

623 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