Results 1 to 6 of 6

Thread: Dynamic header data report

  1. #1

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    43

    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.

  2. #2
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    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...

  3. #3

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    43

    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

  4. #4
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    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.

  5. #5

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    43

    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")

  6. #6

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    43

    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
  •  



Click Here to Expand Forum to Full Width