Default Avatar

LurkingKiwi

LurkingKiwi

About

Username
LurkingKiwi
Location
Wellington, New Zealand
Joined
Visits
58
Last Active
Roles
Members

Comments

  • Have you also checked in your Windows directories? On my Win 10 X64 system, I have FR bpl files in \Windows\SysWOW64. If (as is common) there are installation issues with permissions and file ownership, you may still have an old one lurking there co…
  • Polomint wrote: » Polomint wrote: » Hello, You can specify Paper Source from Page Settings from File > Page Settings but i am not sure how you can make this in the code. Regards, boakoms. I am not sure you can do this in code. […
  • There is something funny about the way FR handles variables - it has come up before. They appear to be more like script insertions. The documentation states that you must put quotes around the variables CONTENTS else it will be processed recursivel…
  • I don't know if you have the choice, but I always install my FR away from Program Files and install for all users. Sometimes I make the access rights be everything for everybody. That resolves issues with doing a "build" which recompiles FR if you…
  • gpi wrote: » Use TfrxReportSummary band. In the script in the ReportSummary.OnAfterCalcHeight event: gpi wrote: » if Engine.FreeSpace < ReportSummary1.Height then Engine.NewPage; Engine.CurY := Engine.CurY + Engine.FreeSpace + ReportSummary…
  • What you need is a user dataset. In VCL this is TfrxUserDataSet, and there are examples supplied with FR. You supply a function which is passed a field name, and your code then looks up the requested data. I use code like the following in Delphi f…
  • Norm@Home wrote: » Norm@Home wrote: » Yes, free FR Embarcadero Edition doesn't have run-time designer and script support I'm finding conflicting information, according to this web page RAD Studio Product Matrix RAD Studio Pro is suppos…
  • Note that absolute comparisons to floating point numbers are generally a bad idea, as a tiny difference in the calculation can result in a minute fractional difference. You could compare the text version of your field to "0.375", as it will have a …
  • I have had fairly good results drawing things like that in LibreOffice Draw, selecting them, exporting the selection as an EMF (Enhanced Windows metafile) and then loading that into a TfrxPictureView. They seem to scale well; I think they retain th…
  • In June 2016 I asked in the forum: I see that PolyLineObject and PolygonObject have been added to the .Net edition of FR; will these be coming to the VCL edition as they will be extremely useful? I thought I'd had a reply at some point indicatin…
  • You should use Format('%5.5d', []) - this requires that the ExpressionDelimiters property for the memo is set to <,> else the Format function parameters aren't parsed correctly and the expression text is inserted
  • I think your problem is that the image in the file actually IS the way FR is showing it, as you will see if you look at the thumbnail in the forum. It says the image is 4160*3120. The camera which took the picture, however, knew it was being held …
  • I'm not sure what OnGetDocValue event you mean, but I have found that the Delphi OnGetValue handler is called recursively with sub-parts of an expression as FR works its way through the parse. Your OnGetValue handler must return without changing the…
  • Monte Carver wrote: » The following is my code. Please advise as to what is wrong. The code runs with no errors, but is invalid. Is their a simpler way? In what way is it invalid? I do something similar with a stream in Delphi XE (not…
  • akai1203 wrote: » oh my fault,thank you gpi . another question, If I dont want get value from a frp file(cause need read/write hdd) , how should I to get this value in code? in OnAfterPrint event ? Why do you need to read the value…
  • I've noticed this for a while now, but the entry page for FR5 VCL https://www.fast-report.com/en/product/fast-report-vcl-5/ is often out-of-date. Currently it says ================= Current version Build : 5.6.4 Date : Sep 12, 2017 Changes.…
  • One thing I would really like to see is an easy way to print a report upside-down. This would be best as a flag in the page settings to do a 180 degree rotation (some printers do have an inverted landscape setting or similar). It may seem like a…
  • I think the right approach is probably to name the columns in the SQL query result with "AS" clauses, if they actually have different values and aren't there by mistake when joining. select tbl1.name as tbl1_name, tbl2.name as tbl2_name from tbl1 c…
  • gpi wrote: » Use frxReport1.Variables.Variables['Name'] := '''' + 'SMITH''''S' + ''''; or frxReport1.Script.Variables['Name'] := 'SMITH''S'; What gpi is saying is that you need to replace any single quotes in the string with TWO SINGLE…
  • gpi wrote: » FR doesn't have such feature. You need to modify FR's sources Thanks, I did try to find the code in FR which named the sheets but didn't succeed.
  • gpi wrote: » gpi wrote: » Would it be possible to just print the contract page once, as the last page, and then go through inserting the blank pages and using ModifyPage(i * 2 + 1, page); on each blank page with the same cached "page"? Ye…
  • gpi wrote: » You can resort preview pages after report's preparing Would it be possible to just print the contract page once, as the last page, and then go through inserting the blank pages and using ModifyPage(i * 2 + 1, page); on each blank…
  • Interesting to see that in 22.pdf, the thin bars have round ends and the fat bars have square ends! Also, the clipping box for the numeric text partially clips the left-most bar, leaving an odd little tab. The EAN 8 one gives a partial bar as well…
  • Paul Michael wrote: » Is there a means to capture the binary data as being send to the windows driver into a file? Have you tried saving the preview to an FP3 file, which is in XML? I'm not sure where in the chain that is emitted, but it ma…
  • There is something funny about the way FR handles variables - it has come up before. They appear to be more like script insertions. The documentation states that you must put quotes around the variables CONTENTS else it will be processed recursivel…
  • I'm not sure if it's a bug or a feature, but in my GetValue handlers I have to check the VarName parameter for a field I am going to handle, and only change the Value parameter if there is a match. As you observe, whole expressions seem to come thr…
  • It is also possible that the dialog is opening off-screen for some reason. Are the problem machines dual-screen setups or laptops which sometimes have a second screen? I suggest that the following is tried when it occurs, which may also work if …
  • Maybe this is too obvious, but it seems the best way is an OnBeforePrint handler in the script for the MasterData band, something like procedure xxBeforePrint(Sender: TfrxComponent); begin NorthSouthChild.Visible := <> ''; end; where…
  • When you say that you are using "code", is this Delphi code (locating report objects and tweaking them) or script in the report? I have used OnBeforePrint handlers in script to make adjustments to memo sizes and visibility, or enable/disable child …
  • chorao157 wrote: » I'm trying to pass a richedit delphi value for FastReport but it passes the value he is entering ' before and after the value. CODE: frxReport1.Variables['var1'] := QuotedStr(richedit.text); I have found that if …