ralph
3/3/2012 9:19:00 AM
On Sat, 3 Mar 2012 01:25:48 -0500, "MikeD" <nobody@nowhere.edu> wrote:
>"ralph" <nt_consulting64@yahoo.net> wrote in message
>news:hq23l7lh5soodqgr8tsuenkemm21vsm9v0@4ax.com...
>
>A number of good additional points and ideas. Got a couple of comments
>though that Jim may find helpful.
>
>>
>> MikeD also pointed out VB Data Report is available and the price is
>> certainly right - free. But it is only for the most basic of reports.
>> The main drawback is it doesn't do images.
>
>You sure about that? I don't recall ever putting an image on a DR, but there
>is a RptImage control. It's very common, even back 13-14 years ago when VB6
>came out, to use an image for a company logo in either the page header or
>report header. I can't imagine NOT being able to do that with DR. I've just
>never had to for the few reports I've ever done with it. I also can't say
>that I really agree that it's only "for the most basic of reports". True,
>you can't do some things with it that you can with more advanced reporting
>tools, but if you really know what you're doing with the DR (and I'll admit
>I'm only marginal with it), I'd bet you can create some fairly intricate
>reports.
>
It has an rptImage control, but it is not data aware, thus not data
boundable (is that a word? <g>). One can put 'static' pictures on a
report, but not 'dynamic' ones.
The early documentation shows the rptImage control as being used as
though it was ... For example ...
Set Sections("MySectionOne").Controls!Image1.Picture =
LoadPicture(<MyPath\picture.jpg>)
One can setup the initial report to display an image, but it doesn't
work once the report is 'running'. One can kind of fake it by setting
an image, show the report, clear the image, reset the image, refresh
the report, ... repeat. But in practice it isn't that useful.
I would agree that my characterization of "basic" is probably unfair.
>> I also often use DE if I plan on using the Data Report. DE is much
>> maligned, but does what it does well.
>
>Gah! I NEVER liked the DE and I never will. <g>
>
Your opinion of the Data Environment is certainly in line with the
clear consensus in the VB community. Developers stayed away in droves.
I was always surprised at that. The usefulness of Data Bounding and
its cousin data-aware classes in facilitating and simplifying the
collaboration of presentation and business objects was and still is so
obvious - how could it not be appreciated?
Well, unfortunately, because of one major problem - the DE adds
overhead and noticiably impacts performance. Not as much as its
critics would have one believe, but enough, and that tends to detract
interest. <g>
As hind-sight is 20/20 it is obvious now that Microsoft had their
plans set on .Net even before VB6 was released, and that the
development of the Data Environment and Data Report was essentially
halted and shipped before final completion. What we ended up with was
a "Data Report version 0.7" and a "Data Environment version 0.9".
[It should be noted that in all current OOP development platforms -
Data Binding is the default.]
-ralph