CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Mar 2013
    Posts
    27

    Barcode Printing

    Hi

    I have a report tha print quantity and Barcode number

    How I can make this report to print so many times the
    Barcode number as is the value of quantity?

    For example if the quantity is 4 and the Barcode number is 1234567890123
    Then I want to print 4 labes with the Barcode number 1234567890123

    Label 1 --> 1234567890123
    Label 2 --> 1234567890123
    Label 3 --> 1234567890123
    Label 4 --> 1234567890123

    Thank you.

  2. #2
    Join Date
    Jul 2005
    Posts
    1,083

    Re: Barcode Printing

    You could use a formula field, as:
    Code:
    WhilePrintingRecords;
    If {tablex.QtyField} = 4 Then
        {tablex.CodeNumber} + Chr(10) +
        {tablex.CodeNumber} + Chr(10) +
        {tablex.CodeNumber} + Chr(10) +
        {tablex.CodeNumber} + Chr(10)
    End If
    Insert the formula field in the desired report section and set Can Grow property to True


    I would use a small procedure and a temp table instead
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured