Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Reuse V/S Extra Component

Reuse V/S Extra Component

Reuse V/S Extra Component

Hi All,
Following is the scenario.
I am having a Sequential Section in my report which has 11 Report Sections.
Each Report Section reads SAME File.
Following are the two approaches to do that:
1. I thought it will be better to read the file once and store it in the buffer and use the buffered row again and again..
2. Straight Forward Approach: I can read the file again and again on all 11 report sections.
Following is a way reusability was implemented
In the 2nd Approach I can REUSE the DataStream component:
Following is how I can do that.

Step I:
Add one data stream component to one report section.

Step II:
In "Properties" for All ReportSections (AcReportSection), we can find "Slots"  property group and there is a property associated for "DataStream".
Put the value for this property as
<ReportClassName>::<DataStreamName> (ReportClassName is name of ur ReportComponent, ur GRAND PARENT REPORT with AcReport class)

Now, My questions are:
1. Is it actually REUSABILITY?
2. I can implement this for HEADER FRAMES and other controls also whihc are common across multiple sections/sub-reports in same Main Report.
3. Does this kind of reusability has any advantages related to Performance etc?If yes why? If no why not?

Thanks in Advance!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close