Help me ..Very Urgent

vb6 Bahrain
  • 14 years ago

    Hello ,

    I am facing a problem in printing a crystal report.
    Actually im using this this crystal report for the first time.Could you please help me regarding this matter.?


    im attaching a sample code to the program.

    I dont know the method im using is correct or not ?

    i have a database called real.mdb. it is connected through a DSN called real. the database is password protected.

    user: admin
    password: real


    im able to view the report from crystal report. But not able to view it through the program.

    In the program first report Does not use any database. So its opening through the program.Second Does not.

    Please guide me in this matter

    yours truly

    Jumer

    my email id is jumerk@gmail.com

    My code

    Private Sub Command1_Click()
            CrystalReport1.DataFiles(0) = App.Path & "\Real.mdb"
            CrystalReport1.ReportFileName = App.Path & "\report1.rpt"
            CrystalReport1.UserName = "admin"
            CrystalReport1.Password = "real"
            CrystalReport1.Action = 1
    End Sub

















    Private Sub Command2_Click()
            CrystalReport1.DataFiles(0) = App.Path & "\Real.mdb"
            CrystalReport1.ReportFileName = App.Path & "\Customer.rpt"
            CrystalReport1.UserName = "admin"
            CrystalReport1.Password = "real"
            CrystalReport1.Action = 2
    End Sub









  • 14 years ago

    Hi jumer

    The following links are VB6 applications linked to crystal reports with source codes that help you solve your problem

    click on the links to see the whole source code

    enjoy itBig Smile [:D]

    Crystal 1

    Crystal 2

    Crystal 3

    regards

    DoctorMahdi

     

  • 14 years ago

    Hi

    I download the crystal report source code the last doesn't working

    VBlover

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“I invented the term Object-Oriented, and I can tell you I did not have C++ in mind.” - Alan Kay