Click here to Skip to main content
15,890,185 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionDynamically data binding in tree view control in windows forms Pin
ims.sanjay1-Jun-10 9:11
ims.sanjay1-Jun-10 9:11 
AnswerRe: Dynamically data binding in tree view control in windows forms Pin
Peace ON1-Jun-10 21:47
Peace ON1-Jun-10 21:47 
AnswerRe: Dynamically data binding in tree view control in windows forms Pin
Mycroft Holmes1-Jun-10 22:27
professionalMycroft Holmes1-Jun-10 22:27 
Questionpull method of crystal report..promptin for password. Pin
VB.Net Developer31-May-10 20:12
VB.Net Developer31-May-10 20:12 
AnswerRe: pull method of crystal report..promptin for password. Pin
Adam R Harris17-Jun-10 6:03
Adam R Harris17-Jun-10 6:03 
Questionhow set password in code Pin
Mohammad Barzanooni27-May-10 18:07
Mohammad Barzanooni27-May-10 18:07 
AnswerRe: how set password in code Pin
Peace ON27-May-10 22:07
Peace ON27-May-10 22:07 
QuestionHelp with label printing SDK from Seagull bartender Pin
ziscoooo27-May-10 2:51
ziscoooo27-May-10 2:51 
Hello
I'm Using Bartender 9.2 SDK ,i need to print multiple labels format in the same page ,for example i'm using laser printer with A4 stickers papers (24 rows*6 columns)
which it means 144 label for every page ,my problem is when i print multiple labels format ,lets say the first format have 20 identical data that left the rest of page empty and start the new format in the next page which its waste my papers, I plan to print multiple separate .btw files(bartender label format) on the same paper here the code I'm using

Try
            Dim copies As String
            Dim price As String
            Dim EXP As String
            Dim ItemName As String
            GetPharmacyName()
            GetValuesFromGrid()
            ReDim myarray(myarr.Length - 1)
            myarr.CopyTo(myarray, 0)
            Using btEngine As New Engine(True)
                btEngine.Start()
                For i = 0 To UBound(myarray)
                    If myarray(i) <> -1 Then
                        copies = dgvOrders.Item(3, myarray(i)).Value
                        price = GetPrice(dgvOrders.Item(0, myarray(i)).Value.ToString)
                        EXP = dgvOrders.Item(2, myarray(i)).Value.ToString
                        ItemName = dgvOrders.Item(1, myarray(i)).Value.ToString
                        Dim Barcode As String = GetID(dgvOrders.Item(0, myarray(i)).Value.ToString)
                        Dim btFormat As LabelFormatDocument = btEngine.Documents.Open("C:\Standard.btw")
                        'btFormat.PrintSetup.NumberOfSerializedLabels = 4
                        If copies <> 0 Then
                            btFormat.PrintSetup.IdenticalCopiesOfLabel = copies
                            btFormat.SubStrings("ID").Value = Barcode
                            btFormat.SubStrings("Pharmacy_Name").Value = Pharm_Name
                            btFormat.SubStrings("Price").Value = "Price: " & price & " SDG "
                            ' btFormat.SubStrings("Pharmacy_Tel").Value = Tel
                            btFormat.SubStrings("EXP").Value = "EXP Date: " & EXP
                            btFormat.SubStrings("Item").Value = "Item : " & ItemName
                            ' Print the label
                            Dim result As Result = btFormat.Print()
                            btFormat.Close(SaveOptions.DoNotSaveChanges)
                        End If
                    End If
                Next i
                btEngine.Stop(SaveOptions.SaveChanges)
            End Using
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try
    End Sub


Thanks
AnswerRe: Help with label printing SDK from Seagull bartender Pin
Dave Kreskowiak27-May-10 5:51
mveDave Kreskowiak27-May-10 5:51 
GeneralRe: Help with label printing SDK from Seagull bartender Pin
ziscoooo27-May-10 12:32
ziscoooo27-May-10 12:32 
Question3 buttons in a datagridview cell Pin
jogisarge25-May-10 5:38
jogisarge25-May-10 5:38 
AnswerRe: 3 buttons in a datagridview cell Pin
Simon_Whale25-May-10 5:44
Simon_Whale25-May-10 5:44 
QuestionIncapable of listening for Mouse Events on UserControl Pin
Draekz20-May-10 11:53
Draekz20-May-10 11:53 
AnswerRe: Incapable of listening for Mouse Events on UserControl Pin
Luc Pattyn20-May-10 12:59
sitebuilderLuc Pattyn20-May-10 12:59 
GeneralRe: Incapable of listening for Mouse Events on UserControl Pin
Draekz20-May-10 17:18
Draekz20-May-10 17:18 
GeneralRe: Incapable of listening for Mouse Events on UserControl Pin
Luc Pattyn20-May-10 17:28
sitebuilderLuc Pattyn20-May-10 17:28 
QuestionDataGridView "not always"/sometimes adjusting row height for wordwrap Pin
sa_blackmon15-May-10 5:37
sa_blackmon15-May-10 5:37 
AnswerRe: DataGridView "not always"/sometimes adjusting row height for wordwrap Pin
Henry Minute16-May-10 3:56
Henry Minute16-May-10 3:56 
GeneralRe: DataGridView "not always"/sometimes adjusting row height for wordwrap Pin
sa_blackmon17-May-10 3:14
sa_blackmon17-May-10 3:14 
GeneralRe: DataGridView "not always"/sometimes adjusting row height for wordwrap Pin
Henry Minute17-May-10 3:20
Henry Minute17-May-10 3:20 
QuestionDisabling cell selection in DataGrid Pin
JW73814-May-10 8:11
JW73814-May-10 8:11 
AnswerRe: Disabling cell selection in DataGrid Pin
Peace ON25-May-10 20:28
Peace ON25-May-10 20:28 
Questionhow to connect reportviewer to dataset Pin
vikas shukla14-May-10 3:09
vikas shukla14-May-10 3:09 
AnswerRe: how to connect reportviewer to dataset Pin
Illuminaries4-Jun-10 4:50
Illuminaries4-Jun-10 4:50 
QuestionCould use some guidance on Word Checkboxes Pin
msx2313-May-10 11:47
msx2313-May-10 11:47 

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.