Advertisement

01.19.2005 at 12:39PM PST, ID: 21280868
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

Selection Formula / Crystal Reports 8.5/ Form - Form / VB.Net

Asked by nomar2 in Crystal Reports Software

Tags: , , ,

Using Crystal Reports in VB.Net...

I have a report CrystalReport3.rpt

Basically I have a form ( form1) and based on the checkboxes selected and the date entered in the textbox ..a selection formula is built .

Then when a user clicks the Report button on form1 it is supposed to open a second form (form2 ) which contains the CrystalReportViewer  and the report is supposed to be shown based on the selection formula.

Right now the report opens in form2 but it is not acknowledging the selection formula that was built on form 1.

I tried declaring the selection formula ( recSelect) on form1 as being shared

Public Class Form1
    Inherits System.Windows.Forms.Form
    Public Shared recSelect As String
'I thought doing it this way I would be able to see recSelect on form2

'later on in the code of form1 the selection formula is built as this

recSelect = "{table1.categories} =  'Colonial'"

Then on the Load of Form2  I have this code...

Dim report As New CrystalReport3
       
report.RecordSelectionFormula = Form1.recSelect
CrystalReportViewer1.ReportSource = report

The report is shown but the selection formula is being ignored so I suspect the formula is  not being seen in form2.

What way should I have done this.

Also when I used VB 6.0 in conjunction with CR 8.5... I would write my own CR formula fields in the code rather than in the CR itself..
eg:    header = "Expense Report for Joe's Auto Body"
        CrystalReport1.Formulas(0) = "Header=""" & header & """"

If I were to do this VB.net what would the code look like.

I find this forum very helpful...your time and help is much appreciated.Start Free Trial
[+][-]01.19.2005 at 12:52PM PST, ID: 13086979

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Crystal Reports Software
Tags: crystal, formula, selection, report
Sign Up Now!
Solution Provided By: mlmcc
Participating Experts: 1
Solution Grade: A
 
 
[+][-]01.20.2005 at 05:15AM PST, ID: 13092447

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.20.2005 at 05:25AM PST, ID: 13092520

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.20.2005 at 05:52AM PST, ID: 13092733

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.20.2005 at 06:40AM PST, ID: 13093233

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.20.2005 at 07:00AM PST, ID: 13093472

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.20.2005 at 07:19AM PST, ID: 13093696

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.20.2005 at 08:47PM PST, ID: 13100164

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43