| |
ActiveReports 2.0 (Visual Basic 6.0) Support
Started by justy2k4 at 07-02-2009 8:51 AM. Topic has 4 replies.
 
 
 
|
|
Sort Posts:
|
|
|
|
07-02-2009, 8:51 AM
|
justy2k4
Joined on 07-02-2009
Posts 11
|
Report preview issue - ActiveReport viewer ReportSource property not attaching report correctly?
|
|
|
|
|
Good day all,
A couple of our production environment sites are having an issue where when they go to Preview reports, it just gives them a grey area instead of previewing the report.
We use Visual Basic 6.0 with AR 2.0 for our reports. All it does is, once the AR builds the report we use an ARViewer control and attach the AR report to it. ==>
- I have an object named: "rpt" and it is of type ActiveReport
- I build the report and that becomes my rpt object
- I have a form named "myForm" and a arViewer2 controller on it. The name of the arViewer2 controller is : "arv"
- And I do: arv.ReportSource = rpt
- And I do myForm.Show vbModal
Whats is happening now is, again, when I run the report it previews fine sometimes and sometimes it opens up the form fine but the report section on the form ( arViewer2 ) is just grey.
I am suspecting the ArViewer2,ReportSource = rpt is failing somehow inconsistently, but not positive,
Any advice/recommendations/thoughts will be greatly appreciated.,
Best regards,
Justy
|
|
|
|
|
Report
|
|
|
|
07-02-2009, 9:18 AM
|
justy2k4
Joined on 07-02-2009
Posts 11
|
Re: Report preview issue - ActiveReport viewer ReportSource property not attaching report correctly?
|
|
|
|
|
It seems like there were a couple of threads already regarding this issue but never found any resolutions. Just a little more note:
Sometimes reports preview just fine on the ARViewer2 control and sometimes the Preview form just displays grey area instead of the report preview.
At the same time, I can not duplicate the issue on my machine when troubleshooting; therefore, I am stumped as well.
I verified that both of my machine and our clients' machines have the same version of:
- ARPRO2.dll ( 2.0.0.1150 )
- ARVIEW2.OCX (2.0.0.1150)
( unless there is something else I need to compare to verify the same builds of AR )
Was this issue ever solved?
|
|
|
|
|
Report
|
|
|
|
07-02-2009, 10:45 AM
|
PrantikS
Joined on 12-11-2008
Posts 766

|
Re: Report preview issue - ActiveReport viewer ReportSource property not attaching report correctly?
|
|
|
|
|
Hello,
Have you tried using code such as report.run false? Further you are on a much older build of ActiveReports 2.0(COM). You could consider upgrading to the latest build from this link.
Regards, Prantik
|
|
|
|
|
Report
|
|
|
|
07-13-2009, 2:36 PM
|
justy2k4
Joined on 07-02-2009
Posts 11
|
Re: Report preview issue - ActiveReport viewer ReportSource property not attaching report correctly?
|
|
|
|
|
It seems like pther 3rd party software update, or either or both windows or non-windows related updates/upgrades are causing the AR dll/ocx files not to work properly.
ARPro2.dll
ARViewer.ocx
ARView2.ocx are the ones i can locate.
Is/Are there any other AR dll files?
I was able to fix the issue by re-registering the above 3 dll files at 2 of my clients; however, i have one now where re-registering the dlls is not helping. However, the client did few windows updates, IE8 update on the day the preview started not working. But I can't just go and remove all windows updates and IE8. There must be a way to re-register or make the AR dll files work properly regardless of other 3rd party software/apps and/or windows upgrades.
Please advice.
Thanks,
|
|
|
|
|
Report
|
|
|
|
07-13-2009, 3:41 PM
|
justy2k4
Joined on 07-02-2009
Posts 11
|
Re: Report preview issue - ActiveReport viewer ReportSource property not attaching report correctly?
|
|
|
|
|
Between 2 workstations, I found 2 different versions of ARView2.ocx and it must be what was causing the issue. Appearantly, one of the upgrades our client did on their machine must have installed the latest version of ARView2.ocx.file and it overwrote the old one.
So when preview not working we can do the following:
1. Check if any 3rd party software/apps installed OR any windows update/upgrades right before the issue started happening.
2. Try re-registering the AR dll/ocx files.
- ARVIEW2.ocx
- ARVIEWER.ocx
- ARPRO2.dll
But, depending on what ARView Control you used in you application it will be either ARVIEW2 or ARVIEWER.
3. Make sure the dll/ocx file versions are the same as the ones that exist on a working machine.
And above 3 steps should fix the issue, I believe.
|
|
|
|
|
Report
|
|
|
|
|
GrapeCity » Product Support » ActiveReports 2... » Report preview issue - ActiveReport viewer ReportSource property not attaching report correctly?
|
|
|
|
|