By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,481 Members | 1,001 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,481 IT Pros & Developers. It's quick & easy.

Need to print receipts

P: 97
I'm using visual studio 2008 with a windows based project written in C# with sql server as backend; My database stores items with their respective details.
I'ved created a very basic and simple form with a binding source and navigator and a datagrid.
Basically the customer buys items. I have a specific item number for all items. I would like a comboBox to be inside of the datagrid so that when i choose an item number, some fields display on the datagrid with things such as price and quantity. For now the table shows all items, all data. I want it so that when the form only displays the item chosen on the comboBox.
This is my main problem right now, I'ved looked through many examples but none look quite like what i want. If u have any input or think there's an easier way to do it I'll be most appreciative.
But the main issue as my topic states is that i need to print receipts, What i have done in the past is send information to an excel sheet and print it from there, but i'd really like to know how to print a snapshot using C# because i have seen many examples using vb.

Thanks in advance
Jun 10 '08 #1
Share this Question
Share on Google+
3 Replies

P: 13,264
Most people would use some reporting tools for that (e.g Crystal reports)
Jun 11 '08 #2

P: 97
Most people would use some reporting tools for that (e.g Crystal reports)
Hey, I managed to make a print button and displays the print box succesfully. I also figure that I don't need the comboBox inside the datagrid for the values to change. I still need some advice on how to add a new comboBox by clicking add new on the binding navigator since when i click add new i only get a new row on the datagrid but not a new comboBox.

Thanks in advance!
Jun 11 '08 #3

P: 97
Well I see in column properties for the datagrid there's the option to make a cell a comboBox so that solves my problem. Thanks, will see if I run into more issues later.
Jun 11 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.