Setting Database Username & Password フォローする

0
Avatar
Legacy Poster

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)

1 コメント

0
Avatar
Shotaro Ito
コメントアクション Permalink

ログインしてコメントを残してください。