473,386 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

printing a receipt from excel

is there also a way to have the data listed within the spreedsheet go to a ticket or receipt (that looks just like the userform) in case the user needs to print it out? Just curious and looking for extra credit... I don't think anybody else would think about that one
Jul 31 '10 #1
3 4057
Guido Geurs
767 Expert 512MB
Example for setting data to a form: (see attachment)

Expand|Select|Wrap|Line Numbers
  1. Private Sub CMDshowLabel_Click()
  2.    UserForm1.TextBoxDate.Text = Range("A1").Value
  3.    UserForm1.TextBoxName.Text = Range("B1").Value
  4.    UserForm1.Show
  5. End Sub
For printing the form, use:

Expand|Select|Wrap|Line Numbers
  1. Private Sub CMDprint_Click()
  2.    UserForm1.printform
  3. End Sub
Attached Files
File Type: zip printing a receipt from excel_v1.zip (9.7 KB, 388 views)
Jul 31 '10 #2
what if its based on a name? the user has all these rows of information each row containing a different name how would that get printed out.

Expand|Select|Wrap|Line Numbers
  1. UserForm1.TextBoxDate.Text = txtname.value
  2.  
Jul 31 '10 #3
Guido Geurs
767 Expert 512MB
We have send You only the principle, how it can work.
If You want to go to the details, please attach an example of Your sheet and an example of what You really want (if possible) in BYTES or give a clear description so we can go directly to the point.
Aug 1 '10 #4

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

Similar topics

3
by: calfdog | last post by:
Hello, I have been doing some experimenting with Automating Internet Explorer for testing. I would like to read from Excel and use the data to set the values of my text boxes on my web forms....
0
by: Samuel Lee | last post by:
Could anyone convert the following vb 6.0 codes into vb.net version? '************************************************************************ '** Button to print a sales receipt - spool print...
0
by: Michelle Keys | last post by:
I am trying to call a print function to print a string from a database using javascript. Which is RC_DATA of Varchar2(2500). This is a javascript is not being used. I have a thing that needs to...
0
by: Greg | last post by:
I'm using VS2005 to build an application that will print reports. Most of the reports are Excel spreadsheets, some are pdf documents. How do I print an Excel spreadsheet (and pdf files) from...
1
by: hasanainf | last post by:
Hi all and thanking you all in advance for your help My client wants to use a receipt printer. Since I have never used one before I have some questions. 1. Unlike other printers which are set...
1
by: Sonnich | last post by:
Hi all I know the window.print(); function, but is it possible to print an excel sheet as this? Once I set the responce, I cannot print anymore... Sonnich <% Response.ContentType =...
2
by: Ravi | last post by:
Hi People, I am facing an issue with printing where I have to print receipts of a custom size. Each receipt is about 8 inch by 4inch. I am using window.print(). When a receipt is printed another...
0
by: sqldude | last post by:
How can I disable the print preview while printing an excel file from C# code? Thanks.
2
by: navingautam | last post by:
i am developing my application in VS .NET 2.0 with C# as backend language. one of our web application uses COM objects to create excel files. The excel files thus created has to be printed. The...
0
it0ny
by: it0ny | last post by:
Hi guys, thanks I am fairly new to this forum so I hope I chose the right place to post this question. I try to make my program printout a deposit's report. I created a class to store the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...

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.