Results 1 to 4 of 4

Thread: How open Crytal Report ?

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Posts
    1

    Lightbulb How open Crytal Report ?

    I have a Report1 save at "C:\MyPath"
    I can't open Report1 by VB. My code is:
    Private Sub Command1_Click()
    CrystalReport1.ReportSource = crptReport
    CrystalReport1.ReportFileName = "C:\MyPath\ Report1.rpt"
    CrystalReport1.WindowState = crptMaximized
    CrystalReport1.PrintReport
    CrystalReport1.PageZoom (50)
    End Sub

    Please help me
    Thank for help.

  2. #2
    New Member
    Join Date
    Nov 2005
    Posts
    1

    Re: How open Crytal Report ?

    To open a report, place a CRViewer control in a form.Say form3.

    Set crReports = Application.OpenReport("C:\MyPath\ Report1.rpt")



    Form3.Show
    Form3.CRViewer1.ReportSource = crReports
    Form3.CRViewer1.ViewReport

    Try this and let me know.

    Rohini

  3. #3
    Frenzied Member pnish's Avatar
    Join Date
    Aug 2002
    Location
    Tassie, Oz
    Posts
    1,918

    Re: How open Crytal Report ?

    You've got a space at the start of your report filename, could that be the problem?
    Pete

    No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How open Crytal Report ?

    Moved to Reporting section.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width