From: Hetal on
We are on VB 6.0 and we use ActiveReports 2.0 as our reporting tool.
We are currently designed a new report in ActiveReports 2.0 that shows
up on ActiveReport Viewer however, this report does not show up in the
viewer on consistent basis. Sometimes, the report shows up, sometimes
i have to click twice to display that report. And sometimes the report
does not show up at all. But when i print that report, the report
contents do show up on print out but not on report viewer.

This is the code i use to display my report in report viewer.

==========
ARViewer.ReportSource = dsrReport
==========

where dsrReport is an ActiveReport. Am i missing something here? I
have been tryin to crack this one for hours now but still clueless on
what's going wrong.

Oh, and we are using ActiveReport Viewer v2.0.0.1176

Any help on this one will be very much appreciated.

Thanks.
Hetal.
From: Michael C on
"Hetal" <hetal.a.kapadia(a)gmail.com> wrote in message
news:38ddc8ff-c9be-4ea4-89da-557e2688047f(a)i3g2000hsf.googlegroups.com...
> We are on VB 6.0 and we use ActiveReports 2.0 as our reporting tool.
> We are currently designed a new report in ActiveReports 2.0 that shows
> up on ActiveReport Viewer however, this report does not show up in the
> viewer on consistent basis. Sometimes, the report shows up, sometimes
> i have to click twice to display that report. And sometimes the report
> does not show up at all. But when i print that report, the report
> contents do show up on print out but not on report viewer.
>
> This is the code i use to display my report in report viewer.
>
> ==========
> ARViewer.ReportSource = dsrReport
> ==========

Don't you need to do dsrReport.Run and also

ARViewer.ReportSource = dsrReport.Document

or something like that. I'm going from memory here.


From: Hetal on
Thank you for your response Michael. I did "dsrReport.Run" but it
would not let me do "ARViewer.ReportSource = dsrReport.Document "
stating "Object does not support this property or method".

The thing that bugs me about this issue is, my existing code works
perfectly fine with arview2.ocx v2.0.0.1170 but as soon as i upped my
version to v2.0.0.1176 it stopped working. We are in a position where
we could not roll the version back to v2.0.0.1170. Thanks.
From: Hetal on
Ok... finally i ended up doing this.

I installed sp5 for Active reports 2 and compiled my application with
this new update. I then made this new dll as a part of my application
installer.