Hi Raymond,
Create a formula field in Crystal Reports. Use that formula field for the title of your report. Then populate it in the VB .NET code before running the report.
Dim oRpt as New CrystalReport1()
oRpt.DataDefinition.FormulaFields.Item("MyFormulaField").Text = "Your Title"
CrystalReportViewer1.ReportSource = oRpt
>Hi,
>
>I wish to print a different title on a Crystal Report depending on where I called it from.
>In my VB .NET program I have the public variable named USERREQRESTYPE which I want to print with the title on the report.
>How can I call this variable in Crystal Reports?
>
>Thanks
>
>Raymond Larche
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi