Vb Mail Order - Calculating The Percentages - Print Button Allows The User To Print The Form
Apr 8, 2011
I have been able to do the exercise's in the first 2 chapters and half the exercise's in the third chapter of the text book (programming in visual basic 2008, Julia Case Bradley & Anita C. Millspaugh). but this one is making my head want to explode. please point me in the right direction with this.
Heres the problem. The company has instituted a bonus program to give its employees an incentive to sell more. For every dollar the store makes in a four-week period, the employees receive 2 percent of sales. The amount of bonus each employee receives is based upon the percentage of hours he or she worked during the bonus period (a total of 160 hours). The Calculate button will determine the bonus earned by this employee, and the Clear button will clear only the name, hours-worked, and bonus amount fields. A Print button allows the user to print the form. Do not allow missing or bad input data to cancel the program; instead display a message to the user.
Here's my code so far. its giving me the wrong results. i have tried many different ways,(hence the commented code) but I just dont know where im going wrong.
Public Class VB_Sales
Const BONUSHOURS As Decimal = 160
[CODE]..............
Attached image(s)
View 2 Replies
ADVERTISEMENT
Jun 10, 2011
i want to populate a report and print it directly without the user hitting the print button.
i have this working in a diffrent project but for some reason it wont work in this one.
i get the error missing parameter, on the last line of my code
Dim paramFields As New ParameterFields
Dim paramField As New ParameterField
Dim discreteVal As New ParameterDiscreteValue
[Code].....
View 3 Replies
Sep 24, 2011
How do i add a simple print button in vb 2008 to allow me to print the form?
View 1 Replies
Jun 8, 2009
i need to print my vb.net windows form when the user click a button. what is the method for this?
View 4 Replies
Oct 27, 2011
When user clicks on a button on my form, it sends the datagridview on that form to another class that [basically] does a bunch of stuff and shows a dialog with a print preview. Everything works perfectly fine, except that if a user switches around columns it won't print them in that current order. For example, if user moves the LastName column before FirstName column, then it should print in that order, but it prints in the column order that the datagridview was originally loaded. The dgv1, is the datagridview that was originally loaded, not the current one. [Code]
View 10 Replies
Feb 16, 2011
Here's my work.
[URL]
How can i print the search result.
View 4 Replies
Mar 15, 2006
I'm very very very new to VB.Net and am doing a class project. I want the user to simply clicka print button and get a printout of an existing Word document. Is this possible and if so, can someone suggest the code?
View 7 Replies
Feb 14, 2011
i have a vb.net program and i use a print button, i use a database "msaccess" it is connected to my vb.net program. now my problem is i want to print the database in msaccess using the printbutton. it is view in datagridview.
View 4 Replies
Jun 29, 2010
trying to print a Form that I created using a VB.Net console application. My console application creates an instance of a Windows Form and fills it with data. I then created an instance of the Print Form class from the Microsoft Power Pack and am trying to get the form I filled with data to print but no matter what I've tried it just prints the command console window.
Dim firstPage As New FrontPage 'Windows Form
Dim pf As New PrintForm 'Print Form Power Pack
firstPage.Visible = True
[code].....
View 7 Replies
Jun 10, 2011
I'm trying to Print a richtextbox when the user clicks a button, and despite my many attempts, I am getting nowhere.
Conor
View 1 Replies
Aug 2, 2011
I'm trying to Print a richtextbox when the user clicks a button, and despite my many attempts, I am getting nowhere.
View 3 Replies
Mar 28, 2010
I can't make a button there can print my form on that tabpages
View 12 Replies
Mar 4, 2009
i Right now i am able to print a form by directly clicking one button,But I want to print it using the Dialog box is it possible?
View 1 Replies
May 3, 2010
How to Print a Win form of VB.net after Print Preview?
View 2 Replies
Apr 6, 2010
How to print a simple order list using vb 2008 ? Can someone show me how this is done ?
View 2 Replies
Mar 18, 2011
I am trying to make a program that can calculate the percentage of people passing an exam. There are buttons for each letter grade, and working label counters for each time you press a button. Each button looks like this, except replace the letter with the appropriate one.
Private Sub btnA_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnA.Click
Static intA As Integer = 0
intA = intA + 1
lblA.Text = intA
lblPercent.Text = (lblA.Text + lblB.Text + lblC.Text + lblD.Text) / (lblA.Text + lblB.Text + lblC.Text + lblD.Text + lblF.Text)
End Sub
My problem is that the percent does not equal what I get when I put the exact same numbers into a calculator.
View 3 Replies
May 30, 2009
how to edit and print mail merged document in vb.net (windows app) i have written the code to open the mail merged document but after the end user edited i want to print the document also.
View 1 Replies
Aug 22, 2009
i my Vb.net aplication on the winform after clicking a button user can see arintpreview of a table as below digit number in column 1 and column 3 print out in revers order !!i checking all line of aplication not finde any problemif i removing column 4 (persian sentence) print out No reverse order print !! maybe problem is have mixing left to right and right to left font ? on a line procdure to produce any column of this table for preview and print out is as below
Dim Fi as bouble= 1234
Dim text as string= Fi.ToString("G", nfi)
Dim drowformt1 as sringformat
[code].....
View 3 Replies
Dec 2, 2009
I am using the 2005 Power Packs Print Forms, I need to hide the filetoolstripmenu in order to print because it come through on my client page So I am using filetoolstripmenusitem.visible= false, then calling print but i think its happens to fast so part of the filetoolstripitem is still coming through on my print image Is there something i can do to pause it for a second?
View 14 Replies
Mar 11, 2010
i want to take print preview of window form and after taking print preview want to take print of form
View 4 Replies
Sep 1, 2011
what is the printing command for the vb.net, as i have develop 1 of the program to auto print the label from the word pad,how is VB program communicate with the printer in order to print out the label as expected from my end?
View 1 Replies
Aug 21, 2009
Anyway, I was just wondering if anyone knows how to do these from a simple text box. i.e. 'TextBox1'.
I'm just learning VB and it's only a simple text editor but I can't find any good sites or posts that help me in understanding how to do it. These are not really covered in any of the 'beginner' books I have acquired either.
View 1 Replies
Dec 14, 2011
My instructor told us how to print documents and how to use databases. What the instructor did not mention is how to print or print a preview of records within a DatabaseDataSet. The book "Programming in Visual Basic 2010" does not explain how to print or do a print preview of Database Source records from within a form. The only thing I was told was to test the print document first before you try to do a print preview. Within a form I used a DataGridView to add, delete, and update the database. So now all I need to do is figure out how to print the updated records from the DataGridView and how to print a preview of the records within the DataGridView. So I hope my question is clear enough to give me assistance on how I can perform these two actions. Thanks this would be a great help, and since the class is online we can get assistance from any sources that we have.
View 5 Replies
Nov 17, 2009
I am using the below mentioned code in my VB.net application to print two copies of pdf document.
[Code]...
View 1 Replies
Jun 9, 2010
Basically on my form I have a listbox containing data. Under the listbox I want to place a button named "btn_PrintData" or something to that effect. The user will click this, the print dialog box would come up and bingo they could print the contents of the listbox.
View 1 Replies
Nov 12, 2011
I got the code working properly but i am kinda clueless on print & print preview on tool strip menu.
Public Class Form1
' Declare Global-Level variable.
Dim RateDecimal(,) As Decimal = {{1D, 1.5D, 2.4D, 1.85D}, _
[CODE]...
View 11 Replies
Feb 7, 2009
Where can I find examples of the print, and print preview function available in Visual Basic 2008?
View 2 Replies
Feb 16, 2012
How do I print the page title and the header of a GridView on each print page?
I want to add page title and GridView heading on each page.
I used page break to break the GridView into multiple pages, but only the first page comes with title and all other are without header and title page.
For a dynamic GridView, my code uses AutoGenerateColumns="true".
View 1 Replies
Jan 4, 2011
How to Disable print, print screen, right click using asp.net
View 4 Replies
Nov 16, 2010
I have a project that the debug.print "something" function has stopped showing in the "immediate window", or any other window. This has been working fine.If I create a new project the "debug.print "something" works fine.I did have to do a uninstall/reinstall of VS 2010 yesterday maybe something changed.Is there a setting that tells "debug.print" where to print?
View 1 Replies