School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
You're Browsing As A Guest! Register Now...
Become an Expert!

Join 353,769 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,865 people online right now.Registration is fast and FREE... Join Now!



Problems with Crystal Report and VB

Problems with Crystal Report and VB Crsytal Report 9.0 and VB6 (traditional) Rate Topic: -----

#1 marugesell  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 23-June 07


Dream Kudos: 0

Post icon  Posted 23 June 2007 - 01:37 PM

Hi, I have been searching for a couple of days how to solve this problem but I'm still trying to solve it.

I want a crystal report parameter to take multiple values. To do this I decare a new parameter in crystal report and select "Allow multiple values" and "Discrete values" options.

After that in the VB report form I wrote this code:

Private Sub Form_Load()
Dim ParamDefs As CRAXDRT.ParameterFieldDefinitions 
Dim ParamFieldLocation As CRAXDRT.ParameterFieldDefinition 
Dim position as Integer

Set ParamDefs = Report.ParameterFields 
For Each Param In ParamDefs 
Select Case Param.ParameterFieldName 
Case "Machine" 
Param.AddCurrentValue (Maquina) 
Case "Date" 
Param.AddCurrentValue (Fecha) 
Case "Description" 
For position = 0 To UBound(Vector) 
Param.ClearCurrentValueAndRange 
Param.AddCurrentValue (Vector(position).Id) 
Next position 
End Select 
Next 
End Sub


Please help

Mariela
Was This Post Helpful? 0
  • +
  • -


#2 fyrestorm  Icon User is offline

  • D.I.C Lover
  • Icon

Reputation: 5
  • View blog
  • Posts: 3,113
  • Joined: 04-April 02


Dream Kudos: 228

Re: Problems with Crystal Report and VB

Posted 23 June 2007 - 02:09 PM

could you write a little more about what your problem is?
Was This Post Helpful? 0
  • +
  • -

#3 marugesell  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 23-June 07


Dream Kudos: 0

Re: Problems with Crystal Report and VB

Posted 23 June 2007 - 02:39 PM

Of course.

I need my report to show me a list of descriptions that I have organized in a memory structure.

That's why I have created in crystal report a parameter that recives multiple values.
Then I wrote the code in my VB application to pass the information to the parameter but my report only shows me the first item not the others...!

For example: I want my parameter to show me a few descriptions one after an other in my report:

Description 1
Description 2
...

Description n

I hope you can undesrstand my problem. I think this is possible but I don't know how.

Thanks for trying to understand my problem.

Mariela
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month