Default Avatar

Anu de Deus

Anu de Deus

About

Username
Anu de Deus
Location
Hampshire, UK
Joined
Visits
0
Last Active
Roles
Members

Comments

  • You should have scripting as everybody else. But by using it you will turn on the nag messages, I believe. Give it a quick try anyway
  • I guess it's geting confused with the excessive number of '>', specially in IIF( > where you got 2 together. My suggestion is that you do it with an OnBeforePrintEvent, split the factors into separate variables, and calculate all from script…
  • I never seen that bug before, maybe that's a bug in the recent daily builds (which I don't use, my last update was a month or 2 ago). There is some limitations/complains about PNG support in FastReports regarding the lack of transparency support, s…
  • Just like any other view component, with the Align = alWidth property
  • Zebulon, when I was evaluating the product, I used the DEMO, and it did NOT display the nagscreens for simple reports. Unfortunately, it was a long time ago and now I use the Standard (purchased VCL, D7) version, so I can't tell you exaclty what I …
  • Try debugging it by putting either Termografia_subGrauAnomalia1.text := ; or showmessage(); to see what's the value
  • Just a wild guess: does the 'bad' computer have any printers installed? Just open its Control Panel -> Printers and see if anything is listed there, apart from the 'Add a printer' button. I used to get suppressed exceptions in those cases.
  • There's a demo for that, at least to change the text value, I don't think it's possible to change the description or the hint of the object in the preview window, as you don't get a valid/direct handle to the objects (hence the exceptions you are ge…
  • Use the pagefooter, but you must control the situation when you want it visible and when you don't want it visible. Take a look at this topic, it might give you a few ideas: http://www.fast-report.com/en/forum/?p=/discussion/5789
  • I think you can set the page dimensions manually, in the page properties, so it grows to whatever you want. Regardless of that, you can design the masterdata band in a way it's NOT ocuppying all the required space in the designer, but just a portio…
  • When building a big report out of smaller ones, I always create the main TfrxReport object in my code, then create a secondary one to load the sub-reports, and for each sub-report, I write a loop that for every page found in the sub-report, I create…
  • Try the Main demo in the FastReport folder, it's a good place to start
  • You need to identify the maximum value before you enter that masterdata band. One way I can think of is that you make an exact copy of your masterdata band, associating with the same dataset, put it above the one that will actually be printed, and …
  • At this point I can only suggest that you find your answers in the manuals (they are 3 pdfs)
  • In the report designer, you start with 3 pages in your report: code, data, page1. Code is your script, it starts blank with just Begin end. put this: Var pOk:boolean; begin pOk := false; /// the variable I mentioned earlier, maybe it was a …
  • First: In the report script, declare a boolean variable (var pOk : boolean) and initialise it with false. then in your databand before print event add this: procedure frxmasterdata1onbeforeprintevent(sender..); begin frxmasterdata1.visible :=…
  • Ok, then after your group footer, add a new Masterdata band, without a dataset assigned to it, with rowcount = 1 and StartNewPage := true. All you have to do is to find the condition when you need it to be printed, i.e. when you need the extra page…
  • Set the RowCount property of the band to your n (n *2 maybe). Then put some control inside the onbeforeprint event of it to get the next data to be displayed. zdravkin wrote: » Hi, I tried to find a similar question like this in the dat…
  • Considering any new statemente must start in an odd page number (1, 5, 7...), create a OnBeforePrintEvent for the top band of your page, and check if it's printing in a even number page. If it's not, then you set the StartNewPage property to true,…
  • Of course, I should have noticed that. Anyway, I think the moment you use QuoteStr or GetValue your richtext no longer is 'rich', as you are type casting it as a plain string. I don't know how to convert it back to RichText format. Anyone? How…
  • Have you tried frxRichView1.AllowExpressions := false; ?
  • No matter how many objects you create and assign to the TfrxReport object in your code, you should only destroy your TfrxReport, as it internally will destroy all of its children, regardless if it was created by you (by code) or from a template (dfm…
  • frxDesigner.OnShow:= DesignerOnShow; procedure TChapter.DesignerOnShow(sender: TObject); Begin if sender is Tform then tform(sender).Caption := 'Good morning '+ FName; End;
  • I did a function specially for that. It applies to any FR object, not only pages: procedure TRptBuilder.SetComponentOrder(c: TfrxComponent; pOrder: Integer); begin if (c <> nil) and (c.Parent <> nil) then begin c.Parent.Objects.Re…
  • You will need to do it in the script code. At the OnBeforePrint of the memo where you currently print the total in the masterdata you must acumulate the value, like this: var lCurrentTotal: integer; procedure Memo1OnBeforePrint(sender...); …
  • I don't really know the answer to your problem, but I can give you an idea for you to expand and see if it works. What few people know is that you can add multiple MasterData bands to your page, one after the other. I have a program that automatic…
  • Try loading the blob contents into a stream (Tmemorystream). Get that stream and load a tstringlist with it (tstringlist.loadfromstream) Save it to a file (.txt, fr3, whatever), tstringlist.savetofile Open with notepad and examine it. For exampl…
  • Sure, list all the objects belonging to the report, if they are of a type that uses a dataset (or have it populated) then you change it. Something like: var lC : tfrxComponent; for i := 0 to fReport.PagesCount - 1 do begin for c := 0 to fRe…
  • You can change the dataset, but do more things than you did. The secret is to keep the dataset name stored in a variable (string), so you can replace it everywhere, in every component if necessary. I have a code that loops through several datase…
  • You have 2 options, but both will mean you have to change your code or your table definition: 1) change the field type to longint or equivalent, store the the Tcolor value there, for example, dataset.fieldbyName('AS1C') := clBlue (or whatever color…