Please tell me how to make header data report dynamic.
so we can change header by database. and we can change all header without change design report.
Printable View
Please tell me how to make header data report dynamic.
so we can change header by database. and we can change all header without change design report.
Do you mean the title of your report? if so you could pass a string parameter to your report with whatever you want it to say...
I Mean some label in header of report, look like letter head. like registration that always shown on all header report.
Sorry my english not so good
tks
You can access the individual controls via the Sections object. The following sets the data for a Label and Image control at runtime. Section2 is the default name for the Page Header.
DataReport1.Sections("Section2").Controls("Label1").Caption = "Hello World"
Set DataReport1.Sections("Section2").Controls("Image1").Picture = LoadPicture("c:\windows\soapbubbles.bmp")
Note this does not work for controls in the Details section.
thanks for ur reply, but can u tell me what u mean with section? how I make the section? ....
DataReport1.Sections("Section2").Controls("Label1").Caption = "Hello World"
Set DataReport1.Sections("Section2").Controls("Image1").Picture = LoadPicture("c:\windows\soapbubbles.bmp")
thanks a lot, all clear. it's work