|
-
May 4th, 2007, 04:42 AM
#1
Thread Starter
Member
Dynamic header data report
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.
-
May 4th, 2007, 07:29 AM
#2
Frenzied Member
Re: Dynamic header data 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...
-
May 4th, 2007, 08:28 AM
#3
Thread Starter
Member
Re: Dynamic header data report
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
-
May 4th, 2007, 09:45 AM
#4
Re: Dynamic header data report
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.
-
May 4th, 2007, 12:18 PM
#5
Thread Starter
Member
Re: Dynamic header data report
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")
-
May 4th, 2007, 12:38 PM
#6
Thread Starter
Member
Re: Dynamic header data report
thanks a lot, all clear. it's work
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|