Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to use vb variable in Crystal Report 9

Posted on 2004-04-05
5
Medium Priority
?
381 Views
Last Modified: 2007-12-19
I would like to use my global variable defined and processed in VB 6 in my Crytal Report 9's  Details Section as well as in Page Header section. How can I do it .

The basic problem is to generate a Dynamic report where may have be n columns and n column header.  

Sanjeev
0
Comment
Question by:ssaxena75
  • 2
5 Comments
 
LVL 1

Expert Comment

by:daniellyh
ID: 10829991
hi,
u can try create a parameter in CR, e.g name param_A.value type = number.

inside ur CR u can use this parameter for processing u desired.

when u call ur CR in vb using crystalreport control, b4 .action = 1 add this statement

CrystalReport1.ParameterFields(0) = "param_A;" & global_variable & ";TRUE"

hope i get ur question clear n this would help.

rgds,
daniel
0
 
LVL 1

Accepted Solution

by:
daniellyh earned 375 total points
ID: 11412488
hi,
i think my solutions may help ssaxena75, he should reply me whether it works or not..

rgds,
daniel
0
 

Author Comment

by:ssaxena75
ID: 11413173
Due to technical error in the System Comment could not be posted. Deley is regretted

S.K. Saxena
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

926 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