Click here to Skip to main content
16,010,268 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: unmovable running form in vs2005 Pin
<b<font color="#6EA3C4">MILAN@Cybage9-Apr-07 2:28
<b<font color="#6EA3C4">MILAN@Cybage9-Apr-07 2:28 
GeneralRe: unmovable running form in vs2005 Pin
kripa219-Apr-07 5:08
kripa219-Apr-07 5:08 
GeneralRe: unmovable running form in vs2005 Pin
Dave Kreskowiak9-Apr-07 5:11
mveDave Kreskowiak9-Apr-07 5:11 
GeneralRe: unmovable running form in vs2005 Pin
kripa219-Apr-07 5:20
kripa219-Apr-07 5:20 
GeneralRe: unmovable running form in vs2005 Pin
<b<font color="#6EA3C4">MILAN@Cybage9-Apr-07 18:14
<b<font color="#6EA3C4">MILAN@Cybage9-Apr-07 18:14 
GeneralRe: unmovable running form in vs2005 Pin
kripa219-Apr-07 18:48
kripa219-Apr-07 18:48 
GeneralRe: unmovable running form in vs2005 Pin
<b<font color="#6EA3C4">MILAN@Cybage9-Apr-07 18:51
<b<font color="#6EA3C4">MILAN@Cybage9-Apr-07 18:51 
QuestionConvert coding VB 5.0 to VB.Net 2003 Pin
Kusal8-Apr-07 17:13
Kusal8-Apr-07 17:13 
Hi,

I need to convert this coding VB 5.0 to VB.Net 2003. This print button coding in billing system. I use BIXOLON SAMSUNG SRP-275 mini printer. There was sample coding but it's in VB 5.0. But I write my program in VB.Net 2003.
This is the coding......

'//////////////////////////////////////////////////////////////////
Private Sub Command1_Click()
For Each prnPrinter In Printers
If prnPrinter.DeviceName = "BIXOLON SAMSUNG SRP-275" Then
Set Printer = prnPrinter
Exit For
End If
Next

If Printer.DeviceName = "BIXOLON SAMSUNG SRP-275" Then
Printer.Font.Size = 9
Printer.FontName = "FontControl"
Printer.Print "x"

Printer.Font.Size = 9
Printer.FontName = "FontA2x1"

Printer.Font.Bold = True
Printer.Print "* Joshua Cafe *" + vbCrLf
Printer.Font.Bold = False

Printer.Font.Size = 9
Printer.FontName = "FontControl"
Printer.Print "w"

Printer.Font.Size = 9
Printer.FontName = "FontA1x1"

Printer.Print " 3000 Spring Street, Rancho,"
Printer.Print " California 10093,"
Printer.Print " Tel) 858-519-3698 Fax) 3852"

Printer.Print vbCrLf + "---------------------------------" 'LF
Printer.Print "Orange Juice 5.00"
Printer.Print "6 Bufalo Wing 24.00"
Printer.Print "Potato Skin 12.00"
Printer.Font.Bold = True
Printer.ForeColor = RGB(255, 0, 0)
Printer.Print "Subtotal 41.00"
Printer.ForeColor = RGB(0, 0, 0)
Printer.Font.Bold = False

Printer.Print "Tax 6% 2.46"
Printer.Font.Bold = True
Printer.ForeColor = RGB(255, 0, 0)
Printer.Print "Member Discount 2.30"
Printer.ForeColor = RGB(0, 0, 0)
Printer.Font.Bold = False

Printer.Font.Bold = True
Printer.Print "Cash 100.00"
Printer.Print "Amt. Paid 41.16"
Printer.Font.Bold = False
Printer.Font.Bold = True
Printer.ForeColor = RGB(255, 0, 0)
Printer.Print "Change Due 58.84"
Printer.ForeColor = RGB(0, 0, 0)
Printer.Font.Bold = False
Printer.Print "---------------------------------"

Printer.Font.Size = 9
Printer.FontName = "FontControl"
Printer.Print "x"

Printer.Font.Size = 9
Printer.FontName = "FontA1x1"
Printer.Print "Member Number : 452331949" + vbCrLf

Printer.Font.Size = 9
Printer.FontName = "FontA1x1"
Printer.Font.Bold = True
Printer.Print "Have a nice day !" + vbCrLf
Printer.Font.Bold = False

Printer.Print "Sale Date: 07/01/03"
Printer.Print "Time: 12:30:45"

Printer.Font.Size = 9
Printer.FontName = "FontControl"
Printer.Print "w"

Dim pic As Picture

Set pic = LoadPicture(App.Path & "\free5_100.bmp")

Printer.CurrentX = 60
Printer.CurrentY = 5000
Printer.PaintPicture pic, Printer.CurrentX, Printer.CurrentY
Printer.CurrentY = Printer.CurrentY + pic.Height

Set pic = LoadPicture(App.Path & "\cafeblue208.bmp")
Printer.PaintPicture pic, Printer.CurrentX, Printer.CurrentY
Printer.CurrentX = 0
Printer.CurrentY = 9000
Printer.Font.Size = 9
Printer.Font.Name = "FontControl"
Printer.Print "g"

Printer.EndDoc
Else
MsgBox "SRP-270 windows driver don't installed"
End If
End Sub
'///////////////////////////////////////////////////////////////////////


Pls help me to solve this problum
Regards
Kusal
AnswerRe: Convert coding VB 5.0 to VB.Net 2003 Pin
Kevin McFarlane9-Apr-07 4:58
Kevin McFarlane9-Apr-07 4:58 
GeneralRe: Convert coding VB 5.0 to VB.Net 2003 Pin
Kusal9-Apr-07 16:46
Kusal9-Apr-07 16:46 
GeneralRe: Convert coding VB 5.0 to VB.Net 2003 Pin
Kusal10-Apr-07 17:14
Kusal10-Apr-07 17:14 
Question.net applications in a non .net framework Pin
benbminnich@yahoo.com8-Apr-07 9:56
benbminnich@yahoo.com8-Apr-07 9:56 
AnswerRe: .net applications in a non .net framework Pin
Kevin McFarlane8-Apr-07 10:36
Kevin McFarlane8-Apr-07 10:36 
GeneralRe: .net applications in a non .net framework Pin
benbminnich@yahoo.com8-Apr-07 14:04
benbminnich@yahoo.com8-Apr-07 14:04 
AnswerRe: .net applications in a non .net framework Pin
Paul Conrad8-Apr-07 14:32
professionalPaul Conrad8-Apr-07 14:32 
QuestionGet Domain User ID list in Dropdownlist vb.net Pin
rasheed.rahman8-Apr-07 3:45
rasheed.rahman8-Apr-07 3:45 
QuestionFile Copy,Move completion Pin
Ramuv8-Apr-07 0:14
Ramuv8-Apr-07 0:14 
AnswerRe: File Copy,Move completion Pin
JUNEYT8-Apr-07 2:48
JUNEYT8-Apr-07 2:48 
Questionhow can rename a table in sql server 2000 (with tsql in query analyzer)? Pin
B.A7-Apr-07 21:02
B.A7-Apr-07 21:02 
AnswerRe: how can rename a table in sql server 2000 (with tsql in query analyzer)? Pin
B.A7-Apr-07 22:39
B.A7-Apr-07 22:39 
Questionneed help for random file Pin
bapu28897-Apr-07 10:50
bapu28897-Apr-07 10:50 
QuestionGet the current URL Pin
Sergio Correia7-Apr-07 9:39
Sergio Correia7-Apr-07 9:39 
Questionrecord allignment Pin
Member 38798817-Apr-07 3:34
Member 38798817-Apr-07 3:34 
QuestionPicking the "Odd" one out Pin
Zaegra7-Apr-07 3:05
Zaegra7-Apr-07 3:05 
AnswerRe: Picking the "Odd" one out Pin
The ANZAC7-Apr-07 19:01
The ANZAC7-Apr-07 19:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.