Need to print receipts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gggram2000
    New Member
    • Nov 2007
    • 97

    Need to print receipts

    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 loads...it 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
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Most people would use some reporting tools for that (e.g Crystal reports)

    Comment

    • gggram2000
      New Member
      • Nov 2007
      • 97

      #3
      Originally posted by r035198x
      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!

      Comment

      • gggram2000
        New Member
        • Nov 2007
        • 97

        #4
        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.

        Comment

        Working...