FreeReport Designer Script

If you made a template for printing or HTML export, you can offer it to the others here. You can also ask here for help about these templates
Post Reply
Guest

FreeReport Designer Script

Post by Guest »

Hi
I'm working on a cover design and need to know how i can declare my own variables (especially strings) in a script and display them in a visual object just like the predefined Variables ([TranslatedTitle], [Rating], …).

Thanx for any help
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

I do not really know how it works actually :D
I only made few tests:
In the editor of a text area of the designer, if you check the "script" box, you can e.g. enter this in the bottom part (script) of the window :

Code: Select all

begin
if ([OriginalTitle] = [TranslatedTitle]) and ([TranslatedTitle] <> '') then
  tmp1 := [TranslatedTitle]
else
  tmp1 := [OriginalTitle] + ' - ' + [TranslatedTitle]
end;
and just put [tmp1] in the contents of the text area (top part of the window).
Guest

Post by Guest »

thanx it worked! i thought variables have to be declared at first but it seems that one can just use them without declaration.
Post Reply