Lazarus

Programming => LCL => Topic started by: Ever on October 25, 2018, 12:57:39 am

Title: Possibility of constant label in LazReport
Post by: Ever on October 25, 2018, 12:57:39 am
Regards

    It is possible that a report designed with LazReport, always print a variable in any band so delete it when that report is edited.
   I explain the context.
  I have a developed software to which I am going to allow clients to edit the reports, but in all of them the name of the Company to which the license belongs must come from. The name of the Company is assigned by a variable in the report. But by allowing editing you can place a label with any name of another company and delete the label with the variable that contains the name under which the license was sold. I want to find a way to always print out the name of the company under which the license is sold so edit the reports and can delete the label containing the variable of that name.

   I hope to have explained.

   First of all, Thanks
Title: Re: Possibility of constant label in LazReport
Post by: jamie on October 25, 2018, 02:17:39 am
From what I understand, you want it so the users can not alter or change the name of the company it is licensed to?

 So basically you need a read only variable, a constant ?


 
Title: Re: Possibility of constant label in LazReport
Post by: Ever on October 25, 2018, 02:42:02 am
Exactly, but that works for the reports, that thus eliminate the label of the report, it continues appearing in all, or the name of the company keeps appearing in the reports
Title: Re: Possibility of constant label in LazReport
Post by: jamie on October 25, 2018, 09:08:27 pm
you will need to place a "Watermark" or out of the way image on the actual report that gets generated.

I don't know enough about lazreport but I assume it must has a canvas that you can print/paint the
text onto.

 Assuming that the report is printable it needs a canvas, so that gives you the opportunity to add items to the
sheet.
TinyPortal © 2005-2018