Hi anybody can help
I am getting an error while reporting a crystal report(v7.0)from vbcode.
the error is
"server has not yet been opened"
thanks in advance.
ven(programmer)
I just had the same problem. Check out the thread I started for help. It's titled "Creating Crystal Reports with VB6 using the RDC component (Oracle 8)".
thread149-45809
I got some great help.
Basically you have to use LogOnServer or SetLogOnInfo to log onto the server in VB.
hi i am giving my code below.
(I am getting the error "server has not yet been opened"
my application backend is sqlserver7.0
Set objData = CreateObject("orderentry.clsCMShipments", g_intServerName)
blnSuccess = objData.getCalenderShipments(rstData)
Set rptMainReport = appmain.OpenReport(AddDirSep(App.Path) & "rptCalender.rpt"
rptMainReport.Database.SetDataSource rstData
Set rptSubReport = rptMainReport.OpenSubreport("subreport1"
rptSubReport.Database.SetDataSource rstData
Screen.MousePointer = vbArrow
CRViewer1.ReportSource = rptMainReport
CRViewer1.DisplayGroupTree = False
CRViewer1.EnableExportButton = False
CRViewer1.ViewReport
i am getting the recordset from the middletier and populating in the report using(active data method).
When you created the Calendar.rpt did you use the Active Data Driver? You can't pass active data to a report that was created against tables. Ken Hamady
Hi kenhamady,
first i used the tables then for subreports i used active data.As u said i done active data for the main and subsequent subreports .now it works.
thanks for ur help.
ven
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.