Data Report...Getting runtime Headings

kaustubh
01-13-2001, 09:17 AM
Hello,

I want to have runtime heading( want to assign caption to labels in the header section at runtime) in the data report.
i.e am passing city as a parameter for the report at runtime
i want to have the city as my heading in the report

Kindly guide me if u have the soln.

Thanx
Kaustubh

denk12
01-17-2001, 01:03 PM
The easiest way I found to solve this problem is to isert a title into the header then you can set the title text equal to whatever you want on th DataReport_Initialize() event.

for example say you had a data report called EmployeeRpt.
you would go to the design window right click in the Report Header section and choose insert control Report Tilte.

then go to:
Private Sub EmployeeRpt_Initialize()
'add this line
'say you had a variable called name that you wanted in
'the title

EmployeeRpt.Title = "Report for: " & name

End Sub

that basic idea should work for most everything

I hope that helps

kaustubh
01-19-2001, 09:10 AM
Hello denk12,

Thank u. Am grateful for ur solution. Am a student from India. About to finish my Master in Comp.

Feel free to contact me if u ever feel so.

kaustubh
kanny811@hotmail.com

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum