CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Join Date
    May 2000
    Posts
    23

    What is Crystal Reports

    Hi,
    I'm a newby in VB6 and I have read in my book that we can use Crystal Reports for editing reports rather than the Data Report Control.
    What is exactly Crystal Reports ? Is it provided with the Visual Studio or must I buy it ?
    Is it better than the data report control or no ?
    I use Visual Studio 6.0.
    Thanks a lot
    Jeremie
    RENNES
    FRANCE


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: What is Crystal Reports

    Crystal Reports is a separate application designed to creatre reports. In VB4 Crystal reports was a part of VB. Now you can buy it separately, create reports and call them from VB.

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    May 2000
    Posts
    23

    Re: What is Crystal Reports

    Thank you for your response.
    Is Crystal Reports better than the Data Report Control ?
    Is it interesting to buy it or is the Data Report Control enough to build most of reports ?
    Thank you.
    Jeremie
    RENNES
    FRANCE


  4. #4
    Join Date
    Jan 2000
    Location
    Saskatchewan, Canada
    Posts
    595

    Re: What is Crystal Reports

    Crystal reports still comes with vb. You will have the version 4.5 in your cd somewhere. I am at work now, but when I'm home I can point out where it can be found. In my opinion, Microsoft has put out some good software, but the datareport is not one of them.


    David Paulson

  5. #5
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: What is Crystal Reports

    I agree with d.paulson that Crystal Report is better than Data Report. You also can use Access reporting tool if your database is Access. You can create report in Access and then call it from VB

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  6. #6
    Join Date
    Feb 2001
    Location
    PA
    Posts
    163

    Re: What is Crystal Reports

    I agree! Crystal Reports is much more flexible and not near as confusing now as the early versions. I've also heard that Data Dynamic's Active Reports is also very good but I've never tried it. You may want to check it out also.


  7. #7
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: What is Crystal Reports

    Crystal Reports is on VB 6.0 CDROM at
    ?:\Common\Tools\VB\CRYSREPT

    John G

  8. #8
    Join Date
    May 2000
    Posts
    23

    Re: What is Crystal Reports

    Thanks for all,
    I found it on the 3rd CD of Visual Studio 6.
    It's good news that there is a version of Crystal Report provided with VB6. I will test it now.
    Thank you.
    Jeremie


  9. #9
    Join Date
    Nov 2000
    Location
    Ohio
    Posts
    238

    Re: What is Crystal Reports

    Does this require VBA and therfore an installation of ACCESS on the users computer?
    I am assuming yes



  10. #10
    Join Date
    Nov 2000
    Location
    Ohio
    Posts
    238

    Re: What is Crystal Reports

    I agree.. datareport is good for VERY basic reports.. anything above VERY basic it sucks.
    Crystal does a good job though.
    However.. last time I checked they did not make it very easy at all to access a secured Access Database.


  11. #11
    Join Date
    May 2000
    Posts
    23

    Re: What is Crystal Reports

    Thank you all for your answers.
    Questions :

    With VB6, I can use Crystal Reports 4.5.
    If I want to use an earlier version, I suppose I have to buy it. What does the recent versions permit to do that the 4.5 does not ?

    I have seen that I can make the link with the database inside the .rpt file rather than with a data control in VB6. What is the best solution ?

    Thanks from France
    Jeremie


  12. #12
    Join Date
    May 2000
    Posts
    23

    One Question more

    Last question:
    Actually, I can't use an ADO Data Control with the Crystal Report Control. It only accepts a classic Data Control. Is it normal ?
    Jeremie


  13. #13
    Join Date
    Apr 2001
    Posts
    1

    Re: What is Crystal Reports

    I also have a basic question. I am trying to access the report using visual basic, but I don't know how to. I'm fairly new to both, and I can't find any mention of it in my books... Please help...

    Thanks,
    Alona


  14. #14
    Join Date
    Feb 2001
    Location
    PA
    Posts
    163

    Re: What is Crystal Reports

    You need to add the crystal reports component (crystl32.ocx) to your project. Then, drop the control on a form and name the control rptAnyName and set the ReportFileName the path of the report. Put this code where you want to run the report from (i.e. on the click event of a command button etc.). Set any other properties you wish either in code or from the properties box.

    rptAnyName.ReportFileName = "Somepath\some.rpt"
    rptAnyName.Action = 1





  15. #15
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: What is Crystal Reports

    'Here some more example:
    Dim sql As String
    Cr1.ReportFileName = "D:\Condivisa\report\Report04.rpt"
    Cr1.ReportSource = 0

    Cr1.DiscardSavedData = True
    sql = "{persona.Cognome}='Imperiali'"
    Cr1.SelectionFormula = sql
    Cr1.Action = 1
    'or:
    'myvar = Cr1.PrintReport
    'MsgBox myvar
    Cr1.Reset 'to reset all and make it work again if you want
    '--------------------------
    'A simply report with one parameter field
    'called SelectMe in a omit formula for a section. This solution comes from Surrendermonkey hint.
    'Matter is not to make the selection (I can workaround using
    'formulas). Matter is to pass a parameter value to a rpt file
    'through Ocx - or: to make parameter fields to be filled
    'via code form VB.
    Cr1.Reset
    Cr1.ReportFileName = "D:\Condivisa\Cesarevb\Crystol\cryweb\Report1.rpt"
    Cr1.ReportSource = 0
    Cr1.DiscardSavedData = True
    Cr1.ParameterFields(1) = "SelectMe;1;false" 'parameter field name={?SelectMe}
    'false = show a window for confirmation of values
    'I tried with last parameter set to true, but it did not work...

    Cr1.Action = 1 'make it print
    'or:
    'myvar = Cr1.PrintReport
    'MsgBox myvar

    'Hope this help
    'Cesare Imperiali


    Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

Page 1 of 2 12 LastLast

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

Featured