locked
How to passing formula fields from vb.net to crystal report? RRS feed

  • Question

  • User1668405342 posted

    Hello,

    I have a problem about :

    How to passing formula fields from vb.net to crystal report?

    Can anyone help me?? 

    Thanks for advance. 

    Wednesday, December 26, 2012 1:22 AM

All replies

  • User226262986 posted

    What actually you want to do?

    Can you reply details..

    Wednesday, December 26, 2012 2:42 AM
  • User1668405342 posted

    ok, let me explain :

    in vb 6 i have a code like this to get the parameter value :

    crsytalreport.formulafields.Getitembyname("text").text

    and then i don't know what the code to call that parameter in formula fields if i create in vb.net

    That's my problem... hehe... 

    Thanks.

    Wednesday, December 26, 2012 3:51 AM
  • User-993404089 posted

    You can certainly do that or you can pass the parameters to the report using a query string in the url?

    Wednesday, December 26, 2012 8:59 AM
  • User1668405342 posted

    Hi stockcer,

    well, but i don't using a query string to pass the parameter to formula fields.

    i'm just want to passing value from textbox to formula fields in the stored procedure, but i don't know how to write the right code. 

    i'll try to write this code :

    Report.DataDefinition.FormulaFields("test").Text = "'test'"

    But when I run the report, the value of the formula fields will not appear in my report. 

    So, anyone could help me??

    Thanks in advance. 

    Thursday, December 27, 2012 9:12 PM
  • User-505955712 posted

    Hi stockcer,

    well, but i don't using a query string to pass the parameter to formula fields.

    i'm just want to passing value from textbox to formula fields in the stored procedure, but i don't know how to write the right code. 

    i'll try to write this code :

    Report.DataDefinition.FormulaFields("test").Text = "'test'"

    But when I run the report, the value of the formula fields will not appear in my report. 

    So, anyone could help me??

    Thanks in advance. 

    Hi,

    Do you already create the Formula Fields in your Crystal Report with the name @test?

    Tuesday, July 18, 2017 4:23 AM