theseus1976
Programmer
If it's not one thing, it's another...
OK, I've got a CR9 report that uses an Access 2000 query as a table (what CR9 refers to as a View). The report itself runs fine (w/ manual password entry), but I can't seem to get everything straightened out in VB6. :/
Background:
Using VB6 (version 8176) and CR9 Professional (9.2.3.970)
VB6 Project has the following References:
VBA
VB Runtime Objects & Procedures
VB Objects & Procedures
OLE Automation
CR Export 9
CR Viewer Control 9
CR 9 ActiveX Designer Runtime Library
CR SmartTag 9 Type Library
CR Viewer Control 9 (second instance)
MS ActiveX Data Objects 2.5 Library
CR9 Report has one database: the View (qryAttended) from Access 2000 mdb (Groups.mdb)
qryAttended pulls from one local table (tblAttended) and 7 linked DB2 tables (dbo_B_JOB, dbo_T_STAFF, dbo_T_PERSON, dbo_T_PAT, dbo_B_INT, dbo_IB_OBJ_INT, and dbo_B_OBJ).
Both the Access 2K and DB2 databases are password protected. What I'd like to do is programmatically run the report _without_ having to prompt the user to login to EITHER database.
My VB6 CR9 Viewer form has the following code:
I've tried searching through the forums to no avail. Is what I want to do possible? If so, how would I do that?
MANY thanks in advance! Let me know if I need to further clarify anything.
-ej
OK, I've got a CR9 report that uses an Access 2000 query as a table (what CR9 refers to as a View). The report itself runs fine (w/ manual password entry), but I can't seem to get everything straightened out in VB6. :/
Background:
Using VB6 (version 8176) and CR9 Professional (9.2.3.970)
VB6 Project has the following References:
VBA
VB Runtime Objects & Procedures
VB Objects & Procedures
OLE Automation
CR Export 9
CR Viewer Control 9
CR 9 ActiveX Designer Runtime Library
CR SmartTag 9 Type Library
CR Viewer Control 9 (second instance)
MS ActiveX Data Objects 2.5 Library
CR9 Report has one database: the View (qryAttended) from Access 2000 mdb (Groups.mdb)
qryAttended pulls from one local table (tblAttended) and 7 linked DB2 tables (dbo_B_JOB, dbo_T_STAFF, dbo_T_PERSON, dbo_T_PAT, dbo_B_INT, dbo_IB_OBJ_INT, and dbo_B_OBJ).
Both the Access 2K and DB2 databases are password protected. What I'd like to do is programmatically run the report _without_ having to prompt the user to login to EITHER database.
My VB6 CR9 Viewer form has the following code:
Code:
Dim Appl As New CRAXDRT.Application
Dim Report As New CRAXDRT.Report
Sub Form_Load()
Set Report = Appl.OpenReport(App.Path & "\Outcomes.rpt")
' I expect the logon info to go here
CRViewer91.ReportSource = Report
CRViewer91.ViewReport
End Sub
I've tried searching through the forums to no avail. Is what I want to do possible? If so, how would I do that?
MANY thanks in advance! Let me know if I need to further clarify anything.
-ej