Very simple. Crystal reports.

Posted on 2005-04-08
Last Modified: 2006-11-18
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,
Question by:Mylor
    LVL 8

    Accepted Solution

    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


    Author Comment

    This is an Access database.
    LVL 8

    Expert Comment

    ok, it is the same thing......
    u can take out the
     rptreport.SetDatabaseLogon("username", "password", "serverconnectio", "")


    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
    1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now