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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change ReportSource

Status
Not open for further replies.

Bodrum81

Programmer
Nov 5, 2003
29
DE
How can I change the ReportSource??

vc++

I call
objReport.m_Viewer.SetReportSource(theApp.pReport);
and then
objReport.m_Viewer.ViewReport();

how can I change the LogonInformation from the Report?
for example
objReport.m_Viewer.SetReportSource("...","...","...","...")

when i run the program and set in the logon-dialog other login information than in the report is the connection established but i get a crystal error "server hast not been opened"
now i think my problem is in this part:
objReport.m_Viewer.SetReportSource(theApp.pReport);
I think I must change the logonInformation there, how I can tell the m_Viewer that it takes the Logon information from the DIALOG and not from the report
OR
how i can change the logoninformation from the report to the dialog-information.

thanks for help

Bodrum
 
i use this program.

but it doesn't solve my problem.
 
Sorry, I'm not a vc++ coder...

But, you need to change the logon info in the report object, not the viewer object. The viewer is just a recipient of the report.

Could you extrapolate from vb code the approach you need to take, or do you need sample vc++ code?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top