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

Visual Basic

 
AnswerRe: Please help Pin
Dave Kreskowiak9-Apr-07 5:06
mveDave Kreskowiak9-Apr-07 5:06 
AnswerRe: Please help Pin
bapu28899-Apr-07 6:27
bapu28899-Apr-07 6:27 
Questionis it possible to write a string from vbscript to console Pin
cppshishu9-Apr-07 1:28
cppshishu9-Apr-07 1:28 
AnswerRe: is it possible to write a string from vbscript to console Pin
andyharman9-Apr-07 3:35
professionalandyharman9-Apr-07 3:35 
AnswerRe: is it possible to write a string from vbscript to console Pin
Dave Kreskowiak9-Apr-07 5:07
mveDave Kreskowiak9-Apr-07 5:07 
QuestionProgramme Question Pin
loksiu019-Apr-07 0:17
loksiu019-Apr-07 0:17 
AnswerRe: Programme Question Pin
Colin Angus Mackay9-Apr-07 0:34
Colin Angus Mackay9-Apr-07 0:34 
QuestionConvert coding VB 5.0 to VB.NET 2003 Pin
Kusal9-Apr-07 0:10
Kusal9-Apr-07 0:10 
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

GeneralHelp me Pin
kigali8-Apr-07 23:50
kigali8-Apr-07 23:50 
GeneralRe: Help me Pin
Colin Angus Mackay9-Apr-07 0:31
Colin Angus Mackay9-Apr-07 0:31 
GeneralHelp Help on VB.NET Pin
kigali8-Apr-07 23:44
kigali8-Apr-07 23:44 
GeneralRe: Help Help on VB.NET Pin
_mubashir9-Apr-07 3:16
_mubashir9-Apr-07 3:16 
QuestionMove a borderless form Pin
Anybloodyid8-Apr-07 21:44
Anybloodyid8-Apr-07 21:44 
AnswerRe: Move a borderless form Pin
_mubashir8-Apr-07 22:16
_mubashir8-Apr-07 22:16 
AnswerRe: Move a borderless form Pin
The ANZAC8-Apr-07 22:38
The ANZAC8-Apr-07 22:38 
QuestionLPT Pin
Agus Budianto8-Apr-07 20:58
Agus Budianto8-Apr-07 20:58 
AnswerRe: LPT Pin
Dave Kreskowiak9-Apr-07 5:09
mveDave Kreskowiak9-Apr-07 5:09 
GeneralRe: LPT Pin
Agus Budianto9-Apr-07 23:39
Agus Budianto9-Apr-07 23:39 
Questionoperation system users Pin
amaneet8-Apr-07 19:57
amaneet8-Apr-07 19:57 
Questiondates in vb.net... Pin
Member 38798818-Apr-07 19:26
Member 38798818-Apr-07 19:26 
AnswerRe: dates in vb.net... Pin
<b<font color="#6EA3C4">MILAN@Cybage9-Apr-07 3:57
<b<font color="#6EA3C4">MILAN@Cybage9-Apr-07 3:57 
GeneralRe: dates in vb.net... Pin
Member 38798819-Apr-07 4:56
Member 38798819-Apr-07 4:56 
GeneralRe: dates in vb.net... Pin
<b<font color="#6EA3C4">MILAN@Cybage9-Apr-07 18:50
<b<font color="#6EA3C4">MILAN@Cybage9-Apr-07 18:50 
GeneralRe: dates in vb.net... Pin
Member 387988110-Apr-07 0:03
Member 387988110-Apr-07 0:03 
QuestionSocket Programming Pin
Venkatesh Mookkan8-Apr-07 18:53
Venkatesh Mookkan8-Apr-07 18:53 

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.