Setting Database Username & Password
The following VB.net code prints shipping labels, what I want to do is supply a username and password for my sql database connection. How do I do this.
' Load Labels into Bartender Engine
fmtLabel = "I:\Labels\EDI_Master.btw"
btFormat = btEngine.Documents.Open(fmtLabel, sPrinter)
' Print the Labels
Dim i As Integer = 0
Dim btMessages As Messages = Nothing
For Each format As LabelFormatDocument In btEngine.Documents
i += 1
Dim nResult As Result = format.Print("Shipping Labels", btMessages)
btMessages = Nothing
Next format
' Close label when done
btFormat.Close(SaveOptions.DoNotSaveChanges)
0
-
Shotaro Ito
★ BarTender Hero ★
请先登录再写评论。
评论
1 条评论