crystal reports in VC# express

how to display crystal report in VS C# express... there is no report viewer control.


Answer this question

crystal reports in VC# express

  • K.Paing

    Hi,

    That is one of the limitations of C#. There's no available report tool. You'll have to upgrade to Professional edition or upper to use crystal reports in your apps.





    cheers,

    Paul June A. Domag


  • 0010110

    If you have a developers version of Crystal reports you should be able to create the objects in code, and design them using the reports designer that is supplied with Crystal. It has been a while since I have played with the full product (Crystal 7 and 8 where the last versions I touched).



  • joe moe

    Does it apply to VB Express as well

    Just want to make sure that I will not be able to add crystal report component as reference eventhough I have Crystal Report installed on my computer

    Thanks



  • HKSunny

    Yes, You can Add Crystal Report in your VB, C# Express.

    Just Make Crystal Report in any of CR version 8.0 or 8.5 and Drag Crystal Report Viewer Control on form.

    Try the following code.
    <C# Code>

    CRAXDDRT.Application crt = new CRAXDDRT.Application();
    CRAXDDRT.
    Report rpt;
    rpt = crt.OpenReport(@"<Report File Name with proper Path>", 0);
    //Like "C:\CrReport\abc.rpt"
    rpt.Database.LogOnServer(
    "p2ssql.dll", "SQLServerName", "Database", "UserId", "Password");
    rpt.DiscardSavedData();
    //axCRViewer1 is Crystal Report Viewer Control
    axCRViewer1.ReportSource = rpt;
    axCRViewer1.ViewReport();

    Thanks


  • Cordelia

    No, you will need Visual Studio Professional for any CrystalReport support.

     

    Thanks,
    Dan Fernandez
    Product Manager
    Visual Studio Express
    http://blogs.msdn.com/danielfe


  • strazz

    i meant that can crystal reports be viewed using VC#. so is CrystalReportviwer control is available with VC#

     

    PS:- web master the site does not render properly in Opera 8.5..



  • crystal reports in VC# express