Hi again
Add a the crystalreportviewer in a form.
You need to change 'CrystalReport1' to the name of your
embeded report.
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Dim crDatabase As Database
Dim crTables As Tables
Dim crTable As Table
Dim crTableLogOnInfo As TableLogOnInfo
Dim crConnectionInfo As ConnectionInfo
Dim crReportDocument As New CrystalReport1
crConnectionInfo = New ConnectionInfo
With crConnectionInfo
.ServerName = "Your Server"
.DatabaseName = "Your DB"
.UserID = "Your User"
.Password = "Your Pass"
End With
crDatabase = crReportDocument.Database
crTables = crDatabase.Tables
For Each crTable In crTables
crTableLogOnInfo = crTable.LogOnInfo
crTableLogOnInfo.ConnectionInfo = crConnectionInfo
crTable.ApplyLogOnInfo(crTableLogOnInfo)
Next
''crReportDocument.RecordSelectionFormula = formula
crReportDocument.PrintOptions.PaperOrientation =
PaperOrientation.Landscape
CrystalReportViewer1.DisplayGroupTree = False
CrystalReportViewer1.Zoom(100)
CrystalReportViewer1.ReportSource = crReportDocument
-----Original Message-----
I have imbedded a report in my project (added a report
to my project and setsome fields)
How the heck do I access the report in my program?
I have looked on MSDN and searched for a walkthrough...
I can't find anything that tells me how to use the
report viewer or how tobring it up on screen...
isn't there a way to bring up the report in a test view
when you arecreating it? if not that is horrible and should be
created.
btw, I am using Visual Studio.net 2003 Ent. Arch and my
reports are imbeddedin my EXE, not saved as .rpt files when the applicaiton
runs.
Thanks, this used to be so much different...
.