Click to See Complete Forum and Search --> : VB6 variables to print in CR heading


Noel Rico
August 19th, 2004, 05:05 PM
I'm using CR8.5 report designer within VB6. How to print VB6 public variables in Crytal Report header or footer

Noel

malleyo
August 19th, 2004, 06:14 PM
Place a textbox where you want in your header or footer. In the properties window, change the Name of the textbox to something useful (in this example, I will call txtTextBox). In your VB code, write the following:


'dsrReport is the name of your dsr file
Set Report = New dsrReport
Report.txtTextBox.SetText ("Text to be displayed in txtTextBox")

- or -

strVariable = "Text to be displayed in txtTextBox"
Report.txtTextBox.SetText (strVariable)

Noel Rico
August 21st, 2004, 08:10 PM
Thanks a lot

Noel