print a label with fields that user can choose


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: print a label with fields that user can choose

  1. #1
    Join Date
    Mar 2006
    Posts
    5

    Cool print a label with fields that user can choose

    Hello everybody!
    I'm new here and i really need some help,pls!
    I need to print a label with text fields which are choosed by the user from a checkedlistbox.


    ok,thx boys for ur help,BUT...let me tell u again:
    label=etichette,like the ones in the hypermarket witch are posted on products(u know..like price,name of the product,etc)...this is what i meat by "label".
    i print it on A4,and the user gives the dimensions of the etichette(height and width).I use GDI+ to draw the etichette but i really dont know how to put the text on it.
    Last edited by xmyna@yahoo.com; 03-14-2006 at 03:29 AM. Reason: explain

  2. #2
    Join Date
    Mar 2006
    Posts
    5
    Hi

    I'm not sure this is what you want, but what you can do is if for example you have 3 items in checkbox list bo, drop set of labels in your form e.g 3,

    e.g Items in CheckBoxList
    0 Bread
    1 Egg
    2 Beacon

    Perform a Switch Statement
    e.g
    Switch(CheckBoxList .SelectedItemIndex)
    Case 0:
    Label.Text = CheckBoxList.SelectedValue;
    Case 1:
    Label.Text = CheckBoxList.SelectedValue;


    etc.

    Hope it will help

  3. #3
    Join Date
    Feb 2006
    Posts
    25
    Do you mean "print a label" from a printer or onto a form face?

  4. #4
    Join Date
    Feb 2006
    Posts
    133
    This should give you a start: loop through your listbox, if selected => msgbox. You can replace the msgbox by your printing code.

    Code:
    Dim intIndex            As Integer
        For intIndex = 0 To List1.ListCount - 1
            'After then you should write your printing-code
            If List1.Selected(intIndex) Then MsgBox List1.List(intIndex)
        Next
    Benjamin

Similar Threads

  1. Getting a GUI to run
    By Eric in forum Java
    Replies: 4
    Last Post: 04-14-2006, 10:09 AM
  2. Replies: 1
    Last Post: 02-16-2002, 09:20 AM
  3. Getting a GUI to function
    By Eric in forum Java
    Replies: 1
    Last Post: 11-27-2001, 07:53 AM
  4. Stored Procedure (Want looping in Cursor)
    By malikmehmood in forum Database
    Replies: 0
    Last Post: 11-20-2000, 06:12 AM
  5. Replies: 2
    Last Post: 03-24-2000, 02:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center