Results 1 to 2 of 2

Thread: crystal report text object

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2006
    Posts
    977

    crystal report text object

    Hi
    I have a crystal report viewer and a textbox inside the VB6 form. I want the content of the textbox to be displayed inside a text object(in the crystal report).For example if the user enters John, I want John to be displayed at the report header inside a text object.How can i do it?
    i am using VB6 and crystal report 9
    thanks

  2. #2
    Lively Member
    Join Date
    Mar 2006
    Posts
    94

    Re: crystal report text object

    Quote Originally Posted by engnouna
    Hi
    I have a crystal report viewer and a textbox inside the VB6 form. I want the content of the textbox to be displayed inside a text object(in the crystal report).For example if the user enters John, I want John to be displayed at the report header inside a text object.How can i do it?
    i am using VB6 and crystal report 9
    thanks
    Use the Parameters collection on the report.
    Create a string parameter on the report and place it somewhere.
    Add a value to the parameter in code in VB6 something like

    crxReport.ParameterFields.GetItemByName("PArameter_Name").AddCurrentValue "<Some_Value>"

    Then call the report and the value will be int he parameter field on the report. You can format the parameter field the same as a text box.

    HTH
    Energy can be neither created not destroyed. It can only be wasted.

    Red Green

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