CrystalViewer control problem

S

stan.goodvibes

Hi there,

I've got VB Express installed and working. I downloaded the evaluation
copy of Crystal Reports Developer Edition XI, that works fine as well.

In VB I went to Tools->Choose Toolbox Items and browsed to C:\Program
Files\Business Objects\Common\3.5\managed\dotnet2 and selected
CrystalDecisions.Windows.Forms.dll.

As expected VB placed the CrystalReportViewer control in my toolbox.

However, whenever I try to drag the control onto a form instead of
staying on the form it drops down to the icons bar below the form, in
the same way that the timer control does.

I can reference the CrystalReportViewer control in my form, using the
standard code i.e.

dim oRpt As
CrystalDecisions.CrystalReports.Engine.ReportDocument


oRpt = New
CrystalDecisions.CrystalReports.Engine.ReportDocument
oRpt.Load("C:\Program Files\...
\UserList.rpt",OpenReportMethod.OpenReportByDefault)
oRpt.SetParameterValue("v_param", 9999)

CrystalReportViewer1.ReportSource = oRpt

But I can't make it visible no matter what methods I try.

I have scoured the web and a few people have had the same problem but
no-one has an answer.

Pleeeeeeze help, its driving me mad!!!
 
V

vovan

I think you have some problem either with the installation of VB or Crystal.
I removed first CrystalViewer from the toolbox, then I followed your steps
and everything was OK. Viewer appears on the form, not below.
If you have another machine try on it.

vovan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top