Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie... Server has not yet been opened... SQL

Status
Not open for further replies.

yakata

Programmer
Dec 13, 2000
30
0
0
FR
Hi there !)
Using CR8.5 in VB 6.0 connecting to a SQL SERVER 2000...
Just a little report taking data from a view. I use the CR8.5 standalone designer to design : execute without any problem.
In VB, I insert a CR component using 'existing report'... works... from time to time...
I try to pass parameter like this :
Set CrxReport = crxApplication.OpenReport(App.Path & "\dossier.Rpt")
CrxReport.ParameterFields.GetItemByName("Annee").AddCurrentValue "2003"
CRViewer1.ReportSource = CrxReport
CRViewer1.ViewReport

and at this last line, always get a 'server has not been opened yet' message...

AAAAAAAArrrrrrrrrggggggggghhhhhhhhhh... Tried almost everything, what do i missed ?

TIA for a reply and have a nice day !)

Luc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top