Labels

Demo:Labels.frx
I want to print a specified number of Labels in a page, ex
2*2
4*4
I try to do it in DataBand AfterPrint.

DataBand db = sender as DataBand;
int dbBeforeRow = db.AbsRowNo;
if(dbBeforeRow % 4== 0 && dbBeforeRow !=0)
{
Report.Engine.StartNewPage();
}

can't work
how to do?
FR.Net 1.4.39

Comments

  • edited 2:21PM
    Hello,

    It's better to manipulate the number of columns in the page (column count) and the page height (row count). See the attached report, you may run it in the Demo.exe.
  • edited 2:21PM
    AlexTZ wrote: »
    Hello,

    It's better to manipulate the number of columns in the page (column count) and the page height (row count). See the attached report, you may run it in the Demo.exe.

    I tested it is ok on the data based Demo.
    But I changed the Cell12'Text
    [Customers.Address]
    to
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    [Customers.Address]

    Preview
    Number of columns: 2
    Number of rows:2

    Only display one row in a page
    because the height of databand may change in runtime,but In Scripts, the value is fixed.

  • edited 2:21PM
    The "label" is a fixed piece of data usually printed on a credit-card-size paper, so there should be no problem.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.