How to Create Crystal Reports in Visual Studio 2010 c# with SQL. part 1

Поделиться
HTML-код
  • Опубликовано: 23 янв 2025

Комментарии • 63

  • @nanidancer
    @nanidancer 6 лет назад

    in 2015 visual studio video concept not working. what should i do? please send me source code my email sureshsurya220@gmail.com. please help me

    • @SwiftLearn
      @SwiftLearn  6 лет назад +1

      Write the code in your event.
      Replace connectionstring and crystal report file name.
      noted that your OS, crystal reports version and VS version should accommodate.
      CrystalReportGroup cr = new CrystalReportGroup();
      SqlConnection conn = new SqlConnection();
      conn.ConnectionString = ConfigurationManager.ConnectionStrings["MYfirstApp.Properties.Settings.MyFirstDBConnectionString"].ToString();
      ParameterFields From = new ParameterFields();
      ParameterField PID = new ParameterField();
      PID.Name = "ProductID";// remember that your parameter field name and column name must be equal.
      ParameterDiscreteValue val = new ParameterDiscreteValue();
      val.Value = Class1.ProductID;
      PID.CurrentValues.Add(val);
      From.Add(PID);
      crystalReportViewer1.ParameterFieldInfo = From;
      string sql = "SELECT * from SaleInfoView where ProductID = '"+Class1.ProductID+"' ";
      DataSet ds = new DataSet();
      SqlDataAdapter adapter = new SqlDataAdapter(sql, conn);
      adapter.Fill(ds, "SaleInfoView");
      cr.SetDataSource(ds.Tables["SaleInfoView"]);
      crystalReportViewer1.ReportSource = cr;
      crystalReportViewer1.Refresh();

    • @SwiftLearn
      @SwiftLearn  6 лет назад +1

      Please subscribe.

  • @farjanaakther5538
    @farjanaakther5538 7 лет назад +1

    Excellent Tutorials

  • @alanthilakraja
    @alanthilakraja 4 года назад +2

    HI, Really helped your video. thanks. when used where condition, it display perfectly, but when import record if shows all record. that mean where condition not working. pls help me to solve this issues

  • @dnyaneshwarnarwate8594
    @dnyaneshwarnarwate8594 4 года назад

    Excellent Bro Keep posting

  • @sweetenglish
    @sweetenglish 5 лет назад +1

    easy to understand😍

  • @reubenmwangikibara4434
    @reubenmwangikibara4434 4 года назад +1

    after dowloading the crustal setup, how do you intergrate with visual basic 2015

    • @SwiftLearn
      @SwiftLearn  4 года назад +1

      i will upload such tutorial as soon as possible.

    • @reubenmwangikibara4434
      @reubenmwangikibara4434 4 года назад

      @@SwiftLearn
      Would you help me at personal level if we likup plz

  • @playfree9238
    @playfree9238 4 года назад +1

    Can I just use the Tables instead of making Views? or do I need the Views for this to work?

    • @SwiftLearn
      @SwiftLearn  4 года назад

      you can use only table. but when you need to use multiple table create view. thanks

  • @hamid_raza_ch
    @hamid_raza_ch 4 года назад +1

    Hello sir.
    Muje aik issue a rha hy. Ma database sy invoice receipts print krwna chah rha hn. Aik hi table sy with unique invoice number. Crystal report use kr k.
    Lakin muje samj ni a rhi kasy krun. Help me sir with appropriate tutorial.

    • @SwiftLearn
      @SwiftLearn  4 года назад

      Whats your Visual Studio version? if its VS 10 this tutorial help you to success, if VS 15 see this tutorial ruclips.net/video/Ys2MfQHPQ88/видео.html

  • @yapandasoftware
    @yapandasoftware 5 лет назад +1

    Thank you for this video. Can you do the same connecting to a local database rather than SQL server DB?

    • @SwiftLearn
      @SwiftLearn  4 года назад +1

      This is very easy. just put local database connection string. thanks.

    • @reubenmwangikibara4434
      @reubenmwangikibara4434 4 года назад

      after dowloading the crustal setup, how do you intergrate with visual basic 2015

    • @DrWambua
      @DrWambua 4 года назад

      @@reubenmwangikibara4434 which crystal setup are you trying to use Mwangi? There's Crystal Reports for Visual Studio that you need to download and install which will automatically integrate with VS. Ensure it's not the stabdalone version that you create reports separately. Ukishindwa unishow nikupatie link

    • @reubenmwangikibara4434
      @reubenmwangikibara4434 4 года назад

      @@DrWambua kindly send me the link, am green in using crystall reports. kindly help. my emailis: reubenmwangikibara@gmail.com

  • @ginasimrankaur7674
    @ginasimrankaur7674 6 лет назад

    How do you find the .cs file, as when i clicked on the button it was a .vb file. Please help asap

    • @SwiftLearn
      @SwiftLearn  6 лет назад

      just double click on form to go in .cs file

  • @akhterhussain100
    @akhterhussain100 5 лет назад

    hi sir,i am facing issue that after publishing crystal report it is not showing data ,please help

    • @SwiftLearn
      @SwiftLearn  5 лет назад

      if your textobject is smaller than value make it bigger

    • @akhterhussain100
      @akhterhussain100 5 лет назад

      it shows data after 20 to 30 print view it stop to give printview

    • @SwiftLearn
      @SwiftLearn  5 лет назад

      @@akhterhussain100 are you working in crystal report?

    • @akhterhussain100
      @akhterhussain100 5 лет назад

      @@SwiftLearn this is not issue i figure out that in temp folder there is creating (Bigbal 3388_6284_{0383619A-AAED-45E2-B244-0A66A7A8C55C}) this temporary file when meet 75 time then crystal report stop showing data

    • @SwiftLearn
      @SwiftLearn  5 лет назад +1

      write this code in unload event crystalReport.Close();
      crystalReport.Dispose();

  • @bopbycntt5571
    @bopbycntt5571 6 лет назад +1

    thank you

  • @laicalenmacias151
    @laicalenmacias151 6 лет назад

    Where add name= connection ? And how to get it that connection in the app.config pls help me

    • @SwiftLearn
      @SwiftLearn  6 лет назад

      I am using linq. thats why the connection created automatically. you can write what is your database connection. or add linq file.
      see this video. ruclips.net/video/9r65Zf0ZZko/видео.html

  • @shanilkt8723
    @shanilkt8723 Год назад

    My VS2019 code is given below nothing is displaying in page
    ReportDocument cryRpt = new ReportDocument();
    cryRpt.Load(@"~\CrystalReport1.rpt");
    CrystalReportViewer1.ReportSource= cryRpt;
    CrystalReportViewer1.RefreshReport();

  • @nizamuddin4128
    @nizamuddin4128 6 лет назад +1

    this is great tutorial. How to add image in crystal report?

  • @lifeliness8398
    @lifeliness8398 3 года назад

    Design the Dynamic Crystal Report of Receipt Size For Hotel That’s Include: Hotel Name, Items Detail, Quantity, Price Detail, And Total Amount.

  • @mahmoudabdelfatah7027
    @mahmoudabdelfatah7027 6 лет назад

    يا جماعة انا عندي مشكلة كبيرة مش عارف ليها حل الارقام في الكريستال ما بتظهرش عربي في ويندوز 10 او ويندوز8 زي ويندوز 7

    • @SwiftLearn
      @SwiftLearn  6 лет назад

      Anybody translate it in English please?

    • @obadaageeb8581
      @obadaageeb8581 6 лет назад

      He asking about format of number viewing .Arabic number format in win 8 and 10 not view in the format is unlike win 7

    • @abbasmohammed1034
      @abbasmohammed1034 6 лет назад

      من الخصائص من paragraph و اختار right to left

  • @aminaali5905
    @aminaali5905 6 лет назад

    How to create report without relation with main report plz.

    • @SwiftLearn
      @SwiftLearn  6 лет назад

      its fulfill your requirement ruclips.net/video/bm_Qx1DAyEQ/видео.html

  • @asad8710
    @asad8710 4 года назад +1

    i copied as it is doenst shows anything on screen

    • @SwiftLearn
      @SwiftLearn  4 года назад

      are you use VS10 in OS 10? so. you should use vs 15 and Crystal report 13_0_19 in OS10. thanks.

  • @sweetenglish
    @sweetenglish 5 лет назад +1

    Facile

  • @samicasanova6720
    @samicasanova6720 2 года назад

    16:00

  • @moorthithambi1227
    @moorthithambi1227 6 лет назад

    Tax cgst sgt total
    @12 120 120 240
    @18 320 320 640 crystal report how make?

  • @saulsamson4311
    @saulsamson4311 3 года назад

    Error found
    adapter.Fill(ds, "tbl_std");
    DataTable dt = ds.Tables["tbl_std"];
    cr.SetDataSource(ds.Tables["tbl_std"]);
    cr.SetDataSource(ds.Tables["tbl_std"]);
    crystalReportViewer1.ReportSource = cr;
    crystalReportViewer1.Refresh();

  • @mohyminulshisier9160
    @mohyminulshisier9160 4 года назад +1

    kindly stop talking !!!!!!!!!