In a Label project, L&L30 raise the AutoDefineNewPage event per label AND per page

Hello,

In the previous version of List&Label, LL29, I reported a bug that made that, in a project of type Label, the event that defines the variables (AutoDefineNewPage) was raised not only once per label but also once per page, which made the printing of the labels to be misaligned with respect to the source data.

This bug was fixed in a Prerelease Service Pack in May’24, which I installed and effectively solved the problem.

Now, after upgrading to version 30, I have found that this bug is happening again. Can you take a look at it?

In case it helps the thread in which I pointed out the error in May is: Migrating from BDE-based L&L to FIREDAC-based L&L - combit Reporting Forum

Thank you very much and best regards.

Hello,
i will check this in version 30.

Should be fixed tomorrow in the Prerelease Service Pack for vesion 30.

Perfect! Thank you very much.

I’m sorry, but I installed the latest Prerelease Service Pack (12/12/2024) and now it’s even worse.

For printing three labels I find that the event is triggered only twice, but the weirdest thing is that it prints six labels.

  1. The first label doesn’t print at all.
  2. The second label prints twice.
  3. The third label is printed four times.

Please, can you check this?

We are sorry about that and will take a closer look again. I will keep you up to date here.

Should now be fixed. Please download the next Prerelease Service Pack tomorrow.

Hi, I have just installed the latest Prerelase Service Pack (12/17/24).

I don’t know what has happened but now it won’t let me print any label.

When I execute TListLabel30.Print on any Label Project, it returns error -23 (One of the expression used has an error…).

These labels have worked correctly before until this latest patch, so I don’t think the problem is their design (the problem was the number of calls to AutoDefineNewPage, which left unprinted labels and repeated labels, but the data displayed in each label was processed correctly until today).

In fact, if instead of TListLabel30.Print I execute TListLabel30.Design, the Designer opens the label without any problem and without reporting any expression errors (it even lets me print it from its File menu), so I have no way to find out what is triggering the exception.

In our tests with the print method, we did not see the problem. Perhaps you can modify the FireDAC databinding example so that the problem can be reproduced here.

Maybe you can create a logfile with Debwin4.exe:

1.Exit your application.
2.Start the debugging tool “Debwin4.exe” from the List & Label installation directory (folder “Miscellaneous”).
3.In Debwin4, select “Capture List & Label Log”.
4.Now start your application.
5.Please repeat the steps until the error occurs again.
6.Save the log file in Debwin4 via “Save Log”.

I’d suggest to open a support case via our support center. Please copy any pertinent information from this thread into the case description and upload the logfile in the case.

In this case, the processing of the case would be free of charge.

Thank you very much for your time.

After studying it further I found that the problem is that now the Print method does not call AutoDefineNewPage at all, so it does not define the variables and that’s why it gives error -23.

However, with the same code and the same label, the Design method does call AutoDefineNewPage correctly, and that’s why it doesn’t notify me of any error in the Designer to fix.

Please, can you check once more the calls to AutoDefineNewPage from Print in a Label Project?

If you consider it necessary I will open a support ticket as you suggested.

Thank you very much and sorry for the inconvenience.

I recommend that you open a support case here. I could not reproduce the behavior you described with the print method. We will therefore have to exchange more data.

Please try to change the databinding example so that the behavior occurs with the print method.

Please also upload the debwin log of your application to the case.

Thank you very much.

Thank you, I have opened the support case as you recommended.

Best regards.
Carlos Torres.