• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 333
  • Last Modified:

Very simple. Crystal reports.

How do I lunch a report from Crystal from VB.NET?

been the Phone=1234 just print the record that phone equal to 1234.

Thanks in advance,
0
Mylor
Asked:
Mylor
  • 2
1 Solution
 
bman9111Commented:
add to the top of the form
add crystal report view
add a report

Imports CrystalDecisions.ReportSource
Imports CrystalDecisions.CrystalReports.Engine

put in a button


 Dim rptreport As reportname
        rptreport = New reportname
        rptreport.SetDatabaseLogon("username", "password", "serverconnectio", "")
        rptreport.RecordSelectionFormula = "{tablename.fieldname} like '*1234*'"
        CrystalReportViewer1.ReportSource = rptreport

keep in mind this is for when u embed the crystal report inside ur .exe

             
0
 
MylorAuthor Commented:
This is an Access database.
0
 
bman9111Commented:
ok, it is the same thing......
u can take out the
 rptreport.SetDatabaseLogon("username", "password", "serverconnectio", "")


0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now