C# Tutorial – Print Receipt using Report Viewer | FoxLearn

32
2



Print Receipt using RDLC report with Report Viewer, Passing parameters in C# step by step. The C# Basics beginner course is a free C# Tutorial Series that helps beginning programmers learn the basics of the C# Programming Language. This is the best way to Learn C# for beginners

Nguồn:https://wijstaanvooronzegrondrechten.org/

32 COMMENTS

  1. hi i saw my report in windows form, i need if i click enter button in keyboard report will print instead of mouse click print, can u please help me..

  2. Has anybody got this to work? When I change the public frmPrint line it gives me an error "Inconsistent accessibility: parameter type 'List<Receipt> ' is less accessible than method frmPrint.frmPrint(List<Receipt>,string,string,string,string)". The data source for dataGridView on form1 is receiptBindingSource and the report chosen for reportViewer on frmPrint is PrintReceiptDemo.rptReceipt.rdlc as they are in the video. When I go to type ReceiptBindingSource in frmPrint_Load it isn't on the list.

  3. public frmPrint(List<Receipt> datasource,string total,string cash,string change,string date) (frmPrint ???? error show when i rebuild)

  4. i already follow the instruction and pratice it, it's work.
    but when i try to make different name like productcode, price, quantity and total i change it to Name, Score on my new project. It's just appear the header text (Name, Score) only but for input it's not appear.
    any one can help me ?

    here i attach 2 files, 1 my project and the other is this tutorial project : https://drive.google.com/file/d/1u6Sy8Of6d3A_VDk9CQ8_7ja4EAat27I-/view

  5. Thanks for this video ,
    May i know how to fix the error at frmPrint form , ReceiptBindingSource.DataSource =_list;
    this error ,Thank you so much ,maybe can send me your code at this following email : jiawai96@hotmail.com
    thank you so much

  6. receiptBindingSource Problem Can also be solved by Going to ReportViewer Properties and then databinding than select your dataSource. Hope that it would be helpful.

  7. Hi im getting this error.
    An unhandled exception of type 'System.FormatException' occured in mscorlib.dll
    Additional info:input string was not in correct format.plz help me ASAP.

  8. When i am coding frmprint then i can't see the ReceiptBindingSource so please help us
    and not data show to select source to choose item
    please help me
    and when i show report then error in reports
    "A data source instance has not been supplied for the data source 'ds'"

  9. When i am coding frmprint then i can't see the ReceiptBindingSource so please help us
    and not data show to select source to choose item
    please help me

  10. Hello im trying to ReceiptBindingSource and i dont know how to connect Binding that it will work pls make a short video about that because i see alot of people have same issue.
    Thanks

  11. hi sir this is very useful tutorial, but i have some error in frmPrint form "this.reportViewer.LocalReport.SetParameters(para);" i cant find error, please help me.

LEAVE A REPLY

Please enter your comment!
Please enter your name here