ravindransrm 0 Newbie Poster

In my application i am printing invoices by dot matrix printer.
Now I have to implicitly eject extra paper so that i can easily tear it from the perforated line.But for the next invoice it is esential to reverse feed the paper so that the printing starts from the top.
The problem is how to reverse feed the paper.Is there any command for it .or simply the printing should start from the beginning of the paper.I am using tvs msp seri---350 paper length is 4 inch

ravindransrm 0 Newbie Poster

Hai to all …
I am doing small project this project dot-matrix –text printing method used to print bill , this is my coding bill printing not problem but
Bill output not correct align format how to set fixed point poss ion

PrintLine(1, Space(1) & "BillNo" & _
Space(1) & " AdmissionFees" & _
Space(2) & " StudentName" & _
Space(3) & "std" & _
Space(3) & " Group")
PrintLine(1, Space(1) & "==================================================================================================================================================")


Dim b1, b2, b3, b4, b5, b6, b7, b8 As Object


Do While dr.Read()

If (dr("Admn_Fees") = 0) Then
b1 =Space(7)&Microsoft.VisualBasic.Left(Format(("Admn_Fees"),"0.00"), 10)
Else

b1 = Space(5) & Microsoft.VisualBasic.Left(Format(dr("Admn_Fees"), "##,##,###.00"), 10)
End If

PrintLine(1, Space(1) & Microsoft.VisualBasic.Right(dr("Bill_No"), 6) & _
Space(0) & b1 & _
Space(4) & Microsoft.VisualBasic.Right(dr("Stu_Name"), 15) & _
Space(6) & Microsoft.VisualBasic.Right(dr("Standard"), 5) & _
Space(5) & Microsoft.VisualBasic.Right(dr("Group_Type"), 10))
Loop

PrintLine(1, Space(1) & "----------------------------------------------------------------------------------------------------------------------------------------------")

OUT PUT
-------------
Billno Admn_Fees Student Name Standard Group
-------------------------------------------------------------
1000 2546.00 jon kalan XI Group1
1001 25 .00 kalan haro XI Group3
1000 546.00 jon kalan XI Group1
1003 2546.00 kalan X Group1
100 546.00 rahul kalan XI Group2
1000 2546 .00 jon kalan I Group1
1000 46.00 peterkalan XI Group54

ravindransrm 0 Newbie Poster

To : Respected sir

Thank you very much sir for your quick and very useful reply. Finaly i have done my one problem.


This same solution if i will enter repeated number like as 222
first 2 i want display "A" if next strings come same 2's goto else part "o"

how i will to this some idea .......to me

Once again thank you

ravindransrm 0 Newbie Poster

hi......
i want to edit ,delete details view in c#........
actually i done it by configuration method....
but i can't edit,delete operations using c# code........
plz help.......

ravindransrm 0 Newbie Poster

Reputed number problem switch case statement

hai This is my code

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

Dim i As String
i = TextBox1.Text
Dim x As Object
For Each x In i

Dim num As Integer
num = x.ToString()
Select Case num
Case 1
str1 = "R"
Case 2
str2 = "A"
Case 3
str3 = "V"
Case 4
str4 = "I"
Case 5
str5 = "N"
Case 6
str6 = "D"
Case 7
str7 = "R"
Case 8
str8 = "A"
Case 9
str9 = "N"
Case 0
str0 = "M"
case else
str11="O"

End Select


Next

Dim temp1, temp2 As String
temp1 = TextBox3.Text
temp2 = TextBox4.Text
TextBox2.Text = String.Concat(temp1, temp2, str1, str2, str3, str4, str5, str6, str7, str8, str9, str0,str11)


End Sub

i will enter 144 output RI it show me Last number leave it

my requirement is i will enter this kind of number check
last nearest number repeat at that time else case work
show string 'O' output like as RIO
send some idea about....

i need help from u all
by
srm.....

ravindransrm 0 Newbie Poster

How to split text box input value

i need help from u all
example:

i will enter text box 145
i don't enter , or :,"",, nothing


i want split this number into sprat

s1=1
s1=4
s1=5
what i want to
than mach with this each number to this charter
this is i will set default
1=s1
srt="R"
2=s1
str="W"
3=s1
str="Y"
4=s1
str="M"
5=s1
str="L"


else
str1=X
output come like as RML
if will enter number 44
now output come like MX
send some idea and sample

help me

thank u

ravindransrm 0 Newbie Poster

i am doing sumall supermarket project
this project i want to print invoice using dotmatrix printer
table i am using this fields
billno,sl.no,productname,qnt,rate ,total

any one send some idea about this.....

ravindransrm 0 Newbie Poster

thank u .........ur rep;;;;;

ravindransrm 0 Newbie Poster

hai
i u install ur project to ur client machine
first deploy ur project than only u can instral client machine

deploy method
step1:file menu->add->add new project->
add new project windows -> select other project type->
than other project type =>setup and deploy option
this temp let select setup project ->file save location change any where than ok
step2:now open file system setup1
this u see three folder
each folder select and right click ->add ->project output window select primer y output ok to each folder
than select each folder right click->select property windows->always crate ->set true to this all folder
step3: than click solution explore ->u see setup1 this file select right click ->build select than build success u can abl to see save location ur step .
step4: than back of ur db

before u install ur project to ur client --->install .net frame work ur client machine what version u to created project that version

ravindransrm 0 Newbie Poster

right click ur tootlbox ->choose iteam-->select .net component this windows click radio button OleDbDataAdapter, SqlConnection,SqlDataAdapter than ok

ravindransrm 0 Newbie Poster

hai am new in the .net
how to add more than field value list view

ravindransrm 0 Newbie Poster

hi
im working on windows application.vb.net
In this Application iam using two forms
one is invoice form
other one is search form
first form one find button used to i will click button search form showme,
my search form i am using datagridview datagridview some field product id,product name,price list i will double click product id select row value display first form text Box 's that is invoice form

first form invoice find button code

Dim ProductSearch As New ProductSearch
' ProductSearch.MdiParent = Me
ProductSearch.Show()

this is my coding for search form
datagridview_doubleclick write
con.Open()
Dim str As String
Dim msg As String
msg = ""
Dim pid As Integer
Dim inv As New InvoiceEntry

inv.Show()
str = "Select * From ProductClas where Product_CID=" + DataGridView1.Rows(e.RowIndex).Cells(0).Value.ToString + ""
cmd = New OleDbCommand(str, con)
dr = cmd.ExecuteReader
If Trim(msg) = "" Then
If dr.Read Then
pid = dr.Item("Product_CID")
TextBox1.Text = pid
inv.Txt_InvProductCode.Text = dr.Item("Product_CID")
inv.Txt_InvProductname.Text = dr.Item("Product_CName")
inv.Txt_InvProductPrice.Text = dr.Item("Unit_Price")
End If

End If
con.Close()

data will be retreiveing correctly. but it is opening in a new invoice form each time but already old invoice form is opened , the new invoice form should not be opened and data should be retrieved in old the invoice form which is already opened
how should i do this

ravindransrm 0 Newbie Poster

Dim mycon As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\DEsign.accdb"
Dim Notes As String = "SELECT * FROM Notes_tbl "
Dim conNotes As New OleDb.OleDbConnection(mycon)
Dim Notescmd As New OleDb.OleDbCommand(Notes, conNotes)

conNotes.Open()

Dim ID As String = CStr(e.RowIndex)
Dim qry As String = "SELECT Dsgntxt FROM Notes_tbl where dsgnid ="ID""
dim dr as new dataReader
dr = Notescmd.ExecuteReader()

While dr.Read()
txtNotes.Text = dr(0)
End While
use this code

ravindransrm 0 Newbie Poster

Shell("Notepad.exe")
use this command to open notepad than u can write

ravindransrm 0 Newbie Poster

You may try SendKeys.Send("TEXT FROM VB") instead of stdINwriter.WriteLine("TEXT FROM VB") SendKeys.Send() sends keystrokes to the active window. However, it's not a very reliable method. If the process you started loses focus, it won't receive those keystrokes.

Shell("Notepad.exe")
use this command to open notepad than u can write

ravindransrm 0 Newbie Poster
protected void btnAdd_Click(object sender, EventArgs e)
    {
        string connectionString = "Data Source=localhost\\sqlexpress;Initial Catalog=JobApplication; Trusted_Connection=True; Integrated Security=True";

        SqlConnection mySqlconn = new SqlConnection(connectionString);

        mySqlconn.Open();

        string query = "INSERT into JobVacancy(JobName, BriefDesc, FullDesc, ClosingDate) VALUES (@jobtitle, @briefdesc, @fulldesc, @closedate)";

        SqlCommand mySqlcmd = new SqlCommand(query, mySqlconn);
        mySqlcmd.Parameters.AddWithValue("@jobtitle",jobtitle.Text);
        mySqlcmd.Parameters.AddWithValue("@briefdesc", briefdesc.Text);
        mySqlcmd.Parameters.AddWithValue("@fulldesc", fulldesc.Text);
        mySqlcmd.Parameters.AddWithValue("@closedate", closingdate.Text);

        int res = mySqlcmd.ExecuteNonQuery();


//after u inset 
Response.Redirect("../Prototy/AddConfirm.aspx");
    }
ravindransrm 0 Newbie Poster

hai

if u now that .net

u can to
window application project

or
web application project

now day's web application project
most choice