943,864 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Mar 10th, 2007
0

Issue about passing parameter to Crystal Report 11..

Expand Post »
Hi..

I have a table: PROFESSOR in ms access, that has 2 fields: "Name" and "Location". The table has 10 records.
And i have made a vb form with a combo box that will show a list of available locations from the database table, when it is dropped down.

So, the end user will select a location from the cbo on the form and i want that to be used as the basis of the report to be generated.

QUESTION:
========
1. How do i pass the value (i.e the location selected by the user) to the report designed ?

2. If i want the report to be generated based on the user's selection of "Location", then do i use the standard wizard which is popped up when the Crystal Report 11 designer module is added from the project exploere in vb6 ??

Pls answer the questions in order of them stated above.
Help will be surely appreciated...
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
intellogo is offline Offline
21 posts
since Mar 2007
Mar 12th, 2007
0

Re: Issue about passing parameter to Crystal Report 11..

some1 clear my doubts & issues ..please....
Reputation Points: 10
Solved Threads: 0
Newbie Poster
intellogo is offline Offline
21 posts
since Mar 2007
Mar 21st, 2007
0

Re: Issue about passing parameter to Crystal Report 11..

Click to Expand / Collapse  Quote originally posted by intellogo ...
Hi..

I have a table: PROFESSOR in ms access, that has 2 fields: "Name" and "Location". The table has 10 records.
And i have made a vb form with a combo box that will show a list of available locations from the database table, when it is dropped down.

So, the end user will select a location from the cbo on the form and i want that to be used as the basis of the report to be generated.

QUESTION:
========
1. How do i pass the value (i.e the location selected by the user) to the report designed ?

2. If i want the report to be generated based on the user's selection of "Location", then do i use the standard wizard which is popped up when the Crystal Report 11 designer module is added from the project exploere in vb6 ??

Pls answer the questions in order of them stated above.
Help will be surely appreciated...
#1 You pass off your parameter value as a formula in the RecordSelection property.

#2 Don't design the report with a propmt for the parameter. You're going to pass off any record selection criteria via the RecordSelection property. You're trying to mix two techniques that don't mix.
Reputation Points: 15
Solved Threads: 3
Light Poster
Henry Schubel is offline Offline
42 posts
since Feb 2007
Mar 22nd, 2007
0

Re: Issue about passing parameter to Crystal Report 11..

Hi..and thanks for ur reply
I have a new situation here...with CR 11 and VB6

==============================================
CRYSTAL REPORT 11 Report Designer part
==============================================
I have designed my report in Crystal Report 11 product using the Report Designer. And i have NOT used the standard wizard that pops up for designing the reports.

STEP 1:
I have opened a blank report and used the Database Expert tool for connecting my MS ACCESS (.MDB) database file and also selected the tables that would be used in report generation.

STEP 2:
Dragged & dropped the fields from the Feild Explorer's database tables and placed it on the Report Designer window. Like this i have designed my reports.

STEP 3: Saved the report as .RPT extension


==============================================
Visual Basic 6 Code View part
==============================================
STEP 1:
In VB6 code, i have used the ".SQLQueryString" property

SYNTAX: ".SQLQueryString <string_variable>"
NOTE: the string variable contains the SQL query statement.

STEP 2:
setting report location:
SYNTAX: ".OpenReport(App.Path & "\ABC.rpt")"

STEP 3:
setting .MDB database location:
SYNTAX: ".Database.SetDataSource (App.Path & "\XYZ.mdb")"

STEP 4: There is some other code also. Main thing is that now my reports are being generated perfectly using the user selected item from a combo box's dropdownlist on a vb form window.


QUESTIONS:
========
1. I will be adding the CR11 Merge Modules to my setup builder, as given on the Business Objects site.
Now, if i do the things as stated above. Then will i be able to deploy & view my reports at the client's end/end-user's computer without
installing the Crystal Report 11 product there ??
Reputation Points: 10
Solved Threads: 0
Newbie Poster
intellogo is offline Offline
21 posts
since Mar 2007
Mar 22nd, 2007
0

Re: Issue about passing parameter to Crystal Report 11..

Hi..and thanks for ur reply
I have a new situation here...with CR 11 and VB6

==============================================
CRYSTAL REPORT 11 Report Designer part
==============================================
I have designed my report in Crystal Report 11 product using the Report Designer. And i have NOT used the standard wizard that pops up for designing the reports.

STEP 1:
I have opened a blank report and used the Database Expert tool for connecting my MS ACCESS (.MDB) database file and also selected the tables that would be used in report generation.

STEP 2:
Dragged & dropped the fields from the Feild Explorer's database tables and placed it on the Report Designer window. Like this i have designed my reports.

STEP 3: Saved the report as .RPT extension


==============================================
Visual Basic 6 Code View part
==============================================
STEP 1:
In VB6 code, i have used the ".SQLQueryString" property

SYNTAX: ".SQLQueryString <string_variable>"
NOTE: the string variable contains the SQL query statement.

STEP 2:
setting report location:
SYNTAX: ".OpenReport(App.Path & "\ABC.rpt")"

STEP 3:
setting .MDB database location:
SYNTAX: ".Database.SetDataSource (App.Path & "\XYZ.mdb")"

STEP 4: There is some other code also. Main thing is that now my reports are being generated perfectly using the user selected item from a combo box's dropdownlist on a vb form window.


QUESTIONS:
========
1. I will be adding the CR11 Merge Modules to my setup builder, as given on the Business Objects site.
Now, if i do the things as stated above. Then will i be able to deploy & view my reports at the client's end/end-user's computer without
installing the Crystal Report 11 product there ??

Awaiting reply...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
intellogo is offline Offline
21 posts
since Mar 2007
Mar 23rd, 2007
0

Re: Issue about passing parameter to Crystal Report 11..

Click to Expand / Collapse  Quote originally posted by intellogo ...
Hi..and thanks for ur reply
I have a new situation here...with CR 11 and VB6

==============================================
CRYSTAL REPORT 11 Report Designer part
==============================================
I have designed my report in Crystal Report 11 product using the Report Designer. And i have NOT used the standard wizard that pops up for designing the reports.

STEP 1:
I have opened a blank report and used the Database Expert tool for connecting my MS ACCESS (.MDB) database file and also selected the tables that would be used in report generation.

STEP 2:
Dragged & dropped the fields from the Feild Explorer's database tables and placed it on the Report Designer window. Like this i have designed my reports.

STEP 3: Saved the report as .RPT extension


==============================================
Visual Basic 6 Code View part
==============================================
STEP 1:
In VB6 code, i have used the ".SQLQueryString" property

SYNTAX: ".SQLQueryString <string_variable>"
NOTE: the string variable contains the SQL query statement.

STEP 2:
setting report location:
SYNTAX: ".OpenReport(App.Path & "\ABC.rpt")"

STEP 3:
setting .MDB database location:
SYNTAX: ".Database.SetDataSource (App.Path & "\XYZ.mdb")"

STEP 4: There is some other code also. Main thing is that now my reports are being generated perfectly using the user selected item from a combo box's dropdownlist on a vb form window.


QUESTIONS:
========
1. I will be adding the CR11 Merge Modules to my setup builder, as given on the Business Objects site.
Now, if i do the things as stated above. Then will i be able to deploy & view my reports at the client's end/end-user's computer without
installing the Crystal Report 11 product there ??

Awaiting reply...
That's the whole idea, isn't it? Run Time support for Crystal is free. You paid for crystal, now you get to distribute your applications with crystal reports as well. Happy hunting. Henry
Reputation Points: 15
Solved Threads: 3
Light Poster
Henry Schubel is offline Offline
42 posts
since Feb 2007
Mar 23rd, 2007
0

Re: Issue about passing parameter to Crystal Report 11..

I still didn't get u. R u asking me the question that whether it is correct or not....or are u clearly saying that the STEPS i have mentioned are correct. And henc ei can now focus on deploymnt part



That's the whole idea, isn't it? Run Time support for Crystal is free. You paid for crystal, now you get to distribute your applications with crystal reports as well. Happy hunting. Henry
Reputation Points: 10
Solved Threads: 0
Newbie Poster
intellogo is offline Offline
21 posts
since Mar 2007
Mar 23rd, 2007
0

Re: Issue about passing parameter to Crystal Report 11..

Click to Expand / Collapse  Quote originally posted by intellogo ...
I still didn't get u. R u asking me the question that whether it is correct or not....or are u clearly saying that the STEPS i have mentioned are correct. And henc ei can now focus on deploymnt part

You got it right. Work on your deployment.
Reputation Points: 15
Solved Threads: 3
Light Poster
Henry Schubel is offline Offline
42 posts
since Feb 2007
Mar 23rd, 2007
0

Re: Issue about passing parameter to Crystal Report 11..

I gr8tly appreciated ur help Henry buddy,

OK ..thank u so much for ur assistance. So i am confident enough that i can go ahead with the deployment stuff.

But....

Before that i have a particular report to make which refers to this new issue: (2nd topic)

"Crystal Report 11 and Visual Basic 6.0 sql query...."

Please read it and help me....Thanks in advance
Reputation Points: 10
Solved Threads: 0
Newbie Poster
intellogo is offline Offline
21 posts
since Mar 2007
Mar 23rd, 2007
0

Re: Issue about passing parameter to Crystal Report 11..

Click to Expand / Collapse  Quote originally posted by intellogo ...
I gr8tly appreciated ur help Henry buddy,

OK ..thank u so much for ur assistance. So i am confident enough that i can go ahead with the deployment stuff.

But....

Before that i have a particular report to make which refers to this new issue: (2nd topic)

"Crystal Report 11 and Visual Basic 6.0 sql query...."

Please read it and help me....Thanks in advance
I CAN'T FIND YOUR OTHER POST.
Reputation Points: 15
Solved Threads: 3
Light Poster
Henry Schubel is offline Offline
42 posts
since Feb 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: some problem with checkbox and textbox
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: MScomm send problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC