Default Avatar

Anu de Deus

Anu de Deus

About

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

Comments

  • Sorry, I don't have the same problem here, Vista + Delphi 7 SP1, FR.4.9.15 I suggest you open a support ticket for that. My memory usage (ProcessXP) is 91.5MB, with peaks of 112Mb while scrolling up and down. If I had to guess, I would say it's r…
  • I got Delphi 7, can't see that particular leak following your steps (although I do believe standard images are consuming a lot of memory). Is it loading a jpg or bmp? What dimensions does the original picture have? Can you save your example to a F…
  • First, make it a DoublePass report. This assumes the following order of printing (debug it to be sure) Memo1, Memo2, and Memo3, and all memos with align = alNone: procedure Memo1OnAfterPrint(); begin if Engine.FinalPass = false then begin Child2…
  • In Delphi 7, there is the debug action (like Step into (F7)) called Run Until Return (Shift +F8), that will take you out of the current function and stop exactly where it was called from, should help when you get inside the frx unit. Now, this is j…
  • You need to specify a different name for each object in each page. Because you are creating without specifying a name, they all get a blank name, and only the 1st one survives, and you see no exceptions being raised Try something like this:   …
  • Well, that explains a few problems I had! It seems to me that you have the Professional license, so if I were you, I would open a support ticket, instead of relying on this forum to have it fixed. Just go to the FastReports Customer area -> supp…
  • Just thought of something else: Create your footer BAND with the maximum possible size that fits your page design, i.e. using all the space between the end of your last band and the end of the page. Inside, put your footer MemoView (the one with t…
  • You probably must use the CalcHeight method. It basically calculates what will be the height of the object (MemoView) with the current text and font properties. I use it in my Delphi units, not in the scripts, but I suppose it will work in the scr…
  • Very simple, just create a function in the script that returns that value. I suggest it returns a string, already formatted with your needs: function GetCAfaSatz:string; begin    result := DateToStr(CAfaSatz); /// I don't even know if DateToStr…
  • Try a different approach, via scripts on the OnAfterData or OnAfterPrint events. This example considers the value as an integer, fix it if it's a float of any sorts: Memo11OnAfterData(sender); var lParentBand : tFrxBand; lMemo12: TFrxMemoView; …
  • I think the main problem is in your query. The easier solution would be to group it in a way that it will show one record per line as you want it in the report, and all should be fine. Your report will show one line per record, so if your query is…
  • mflopes wrote: » vF1:= ( " " ) = error ? and i have to insert a Picture.. if Length(trim(vF1)) <1 then vF1 := 'C:\YourDefaultPicture.bmp';
  • I suppose is a string too, right? I don't have the solution, but I can help you to debug it, try isolating the string with the filename and check it first: try this: var FullPath: string; procedure Picture4OnBeforePrint(Sender: TfrxComponent); …
  • In the script: var LastCustNo : string; TotalCustomers : integer; procedure OnGroupHeader1.OnBeforePrint; << create this one by double-clicking in the event in the object inspector begin if LastCustNo <> () then // << chec…
  • Draeden wrote: » Apple Macintosh processors use big-endian byte order, AMD and Intel processors use little-endian byte order. This means, that a document created in AMD or Intel processor (using standard programming techinques) cannot be opened by…
  • Guys, has anyone opened a support ticket for this? It's the best way of getting attention from the developers. I would have done it, but I don't export to Excel very frequently so the problem is not affecting me (yet). I hope it gets fixed soon, …
  • Nice code, I'll probably use it. Thanks
  • gordk wrote: » the rowcound property has no effect when the band is connected to a dataset., it only controls howmany times the band outputs its objects to the output page. if the band is connected to a dataset the dataset controls the output. …
  • Try a different approach (I didn't test this, so maybe it doesn't compile at all, it's just an idea that came to my mind): Check for the checkboxes at a later point, when the pages are going to be printed. My guess is that the control (pages) prope…
  • In the script, in the OnBeforePrintEvent of any of the bands (probably the header, maybe even of the page, if it's a simple report), check for the number of records of your dataset, and if = 0, set the masterdata1.rowcount property to 3 (the number …
  • In the report script, in the OnBeforePrint of your MasterData band, check for the field value and call Engine.NewPage; something like var PreviousMonth : Integer; MasterData1.OnbeforePrint; begin if () <> PreviousMonth then Engine.…
  • Select the memoview object, find the DisplayFormat property, click on it to open the editor, select Number, and put MANUALLY in the Format String you want, or use one of the defaults. My favorite is 0.## for most of the cases
  • Clearly the automatic translator used didn't do a good job.
  • Also, I think I saw something in the User help files (pdf), go the section that talks about the child objects, you might find something to help with code like this: child1.visible := not dataset.eof; where your line is in the child1 band.
  • Tricky one. I'd try this: Set it to be a DoblePass report, first of all. Then all the following is in the scripts of the report: Create a global variable to count the number of records, let's say TotalRecs, and one for the current rec, CurrentRe…
  • My installer never deletes itself, I've done a dozen times. Maybe you are telling it to install in the same folder you have your installer located, and in the end it's cleaning the folder. Just copy the installer exe to a separate folder before st…
  • Did you try the 'Embedded Fonts' option in the PDF export dialog box?
  • Agreed, the feature is highly desirable, even if the final PDF result is not 100% accurate with the preview window (The bmp conversion already isn't 100% accurate anyway, due to the loss of quality).
  • That's because the answer is written somewhere, I remember seeing it. I think it's one of the sticky topics on the top of this forum, or in a readme.txt file or user manual.pdf I'd start with the forum
  • Give it a try at setting up the top properties of the child objects. Like Child2.top := child1.top +child1.height +1 Also, to understand what's going on, after you created all objects and prepared the report, export it into a .fr3 file, open the…