473,804 Members | 3,251 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need to print receipts

97 New Member
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
Jun 10 '08 #1
3 1636
r035198x
13,262 MVP
Most people would use some reporting tools for that (e.g Crystal reports)
Jun 11 '08 #2
gggram2000
97 New Member
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
gggram2000
97 New Member
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

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

Similar topics

2
1728
by: Greg Sedeo | last post by:
How can I log read receipts? Is it possible to insert or grab an existing message ID (from the header etc), log it into my DB, than once the read receipt is sent from the clients machine, pull it off my pop server, parse it and than log that it was read? Any suggestions?
3
2869
by: PW | last post by:
I'm using the windows.print() function to print a customers receipts from an ASP. I've created a button to do it, like this ... <td align=left> <BUTTON TYPE=BUTTON onClick="window.print()">&nbsp&nbspPRINT&nbsp&nbsp</BUTTON> </td>
0
1100
by: Peter | last post by:
My client has retail shops. All these shops will access retail application through Internet. So sales receipts will be generated from web/application server and send across Internet to shops. Crystal Report is web enable and would be a solution. So far I have seen Crystal Report report displays on the browser and on the browser, user has to press a print button to print the report. Does anyone have experience printing sales receipts,...
9
4295
by: David Allison | last post by:
cmdButton to Print 3 copies of record in Form view ? cmdButton will print 1 but I need 3 copies of the one Form record. -- Dave Allison
5
1789
by: Bob Weisenburger | last post by:
I have a table of "memos". each record in that table has a primary key "memo ID" that is autonumber. I have another table that is "memo receipts" with each record having a "receipt id" field that is not a primary key. When a user reads a memo, I create a receipt record that shows that they have read and acknowledged the memo. "receipt id" is set equal to "memo id". I have this part working fine. Next what I want is when a user checks...
2
12210
by: Gregory Piñero | last post by:
Hi Guys, Does anyone know how to program a Python script to send out emails with a request delivery receipt? Is it something I can build into the email message via the mime stuff? And yes, I know it's probably a bad idea, but I can't talk my clients out of it ;-) --
1
1185
by: Morten71 | last post by:
I'm fairly new to web services in .net/vs. I'm wondering about a few ws things: - should I create a new ws project for every ws? - how do I best ensure that only selected consumers can use a ws? - how do I best pass back receipts to the ws consumer? Have googled the above, but with little success. Hope someone can kick start me/point to a authoritative resource.
0
1073
by: ysblokkie | last post by:
Hi Everybody, I am busy working on a web application project that uses Active Directory Distribution groups using C#. I want to use Microsoft Outlook to send emails to the AD groups, but I have a question: If I use Outlook to send the mail to the group, will the mail appear in the 'Sent' items of the sender, and wil the sender be able to receive read/received receipts for the mail? If this does not happen by default, how do I go...
3
2439
by: agrych | last post by:
hello all, I am trying to pull all of the Sales Receipts data, for a specified date range, into MS Access. So far I am unsuccessful in my attempt. Below is the code that I have so far. FYI, I have temporarily disabled On Error so I can continue to debug this code. My responseList is empty :( Not sure what I'm doing wrong. Any help would greatly be appreciated. Private Sub Command2_Click() 'On Error GoTo Errs Dim Country As...
0
10588
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2998
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.