Setting Database Username & Password 追蹤

Legacy Poster

The following 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

1 意見