Results 1 to 5 of 5

Thread: how to print value from textbox into the report

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2007
    Posts
    130

    how to print value from textbox into the report

    Hi
    i want to print a value from the textbox on the form to the report how?

    thanks in advance.

  2. #2
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: how to print value from textbox into the report

    Please, post Crystal Reports version, Programming Language and Object used (RDC or OCX) to help You.

    The general answer is : Add a Formula field to your report and modify it (the formula) in your application before print the report

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2007
    Posts
    130

    Re: how to print value from textbox into the report

    thanks for reply
    im using old crystal report belongs to vb6
    i use this code

    cptreports.ReportFileName = App.Path & "\report1.rpt"
    cptreports.Formulas(0) = "mystring"
    cptreports.PrintReport

    the report don't showed up !! but when i remove the second line the report is shown

    any idea?

    thanks in advance.

  4. #4
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: how to print value from textbox into the report

    If the formula in Crystal Reports is the FIRST one and it is named AAA and the the text of the formula is
    Code:
    Trim("Here Goes Some Text")
    The syntax in a VB6 app is :
    Code:
    cptreports.Formulas(0) = "AAA= Trim(' " &  "Here Goes New Text"  & " ')"

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jul 2007
    Posts
    130

    Re: how to print value from textbox into the report

    thanks i will try

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width