LurkingKiwi
LurkingKiwi
About
- Username
- LurkingKiwi
- Location
- Wellington, New Zealand
- Joined
- Visits
- 60
- Last Active
- Roles
- Members
Comments
-
I think you need to follow (with a local TObject pointer) up the chain of parent pointers (or maybe owner) up from the component you are passed until the class of the object you get to is TfrxReport. Then cast it to a TfrxReport. You may pass though…
-
Well here I am after paying to upgrade to VCL6, and AGAIN to upgrade to VCL2021, and 5 years later the PolyLineObject and PolygonObject STILL haven't made it from .Net to VCL.
-
Well, the current licence on the web site says that for 1 year I get updates: "provided that the Updates shall not include a new subsequent releases of the Software bearing a new first numeral such as 7.0 or 8.0 (“New Releases”)"
-
That link was dead yesterday, and isn't useful today. However, I have looked at the news items directly. Please confirm, as well as the 30% per annum subscription for bug fixes, there will be an 80% charge (based on a 20% upgrade discount) whenever …
-
Looking at the file you have uploaded, it has a CR LF 00-byte sequence at the end, after the closing }. I wonder if that is upsetting the RTF code. I know in the past I had an issue with whitespace before the leading { causing RTF to fail in another…
-
On Windows 7 x64 I have a number of virtual printers: MS XPS, OneNote, Paperport Image Creator, PDFCreator and PDF995. All of them report 0 for the DC_DUPLEX device capability. However, my non-duplexing real printers report 1, presumably because the…
-
You could put two image components in the same place, and in the before print event, switch the visibility of them depending on your condition.
-
Is it possible that Value is a string variant, and the comparison with 100 is being done as string to string, rather than number to number? If you assign Memo200.Value to an integer variable first, and then temporarily put that in another memo to pr…
-
I have found strange behaviour around page sizes in the past. FR seems to search the list of papers for the current printer by dimension, even when you say "A6", and if it doesn't find an exact match, it defaults to A4. Across a number of …
-
I suspect that, although .net 3.5 is still supported, MS may have disabled that feature during the update to 1903. Try Google. I believe I had to go to the control panel to turn it back on (for a different program).
-
I have found that if a FastReport variable's new value has a CRLF in it, then the outer quotes get printed, otherwise they are required to stop FR doing a recursive variable lookup. I have a function like this: procedure SetReportVar(Report : TfrxR…
-
This isn't quite what you are asking for, but you can get the same effect. Basically, you use the Name or Tag or TagStr field as a classifier, and iterate all the objects checking the tag against some report data field. I do this in my DetailData On…
-
Just remember that report variables are more like macros, they are evaluated as expressions so you have to put quotes IN the variable value for strings. See the Programmers Manual Chapter 2.
-
I'm not sure if this is supported in FR4, but in FR5 and 6 you can create Report Variables in the Designer and assign them a value, which you can override in code before using the report. They may not behave quite the same way, but its what I use.
-
The data band itself always maintains the same horizontal orientation. Depending on what you are trying to achieve, either set the TfrxReportPage Orientation field to poLandscape, or set the Rotation field in the Memos and other objects to 90 degree…
-
There is a thread about concatenating separately generated reports with deletepage/addemptypage (just search the forum) but if you are printing from one report, in the page header or group header which starts a new bill (and which is set to start a …
-
I know it doesn't fix your memory issues, but it is possible to print without the print dialog, in FR5 I use: MyReport.PrintOptions.ShowDialog := not NoDialogFlag; but obviously you have to set all the desired printer properties in the report first.
-
blumache wrote: » in Memo i write [IIF(1=0, '1', '2')] work fine in PascalLanguage Script , but if i change in C++ Script ERROR! I expect the C version should be [IIF(1==0, "1", "2")] although it may work with single quotes. Why do you nee…
-
Samuel Smith wrote: » Fairly easy to understand: Just as Bands can be set to start on a new page, I would like the option to start on the next available column. There is an engine.NewColumn call which could be made from a band's BeforePrint e…
-
akai1203 wrote: » hi, How to make barcode does not show in the absence of value instead of displaying 12345678 ? In the OnAfterData event of the barcode object you can set visible to false if the value is empty
-
Which version/edition of FastReport are you using? AFAICS scripting isn't available for the Embarcadero Edition shipped with RAD Studio.
-
I know I had issues with seemingly exponential runtime a few years ago, and it seemed to be related to traversing linked lists in FR. Doing it a different way was suggested by FR, but I'll have to search for the notes. I don't think it's the same a…
-
I tend to add all the fields in a test memo so I can see what comes through. Remove the other fields until it works... Are you using any math expressions or totals etc where FR would need to do that conversion? Or special numeric formatting?
-
I think you could do something in the group header like this (untested): procedure GroupHeader2OnBeforePrint(Sender: TfrxComponent); begin engine.newpage; if (( mod 2) = 0) then engine.newpage; end; You may need to compare to one to get th…
-
I use the following code, obtained from FR support or somebody in the forum: procedure GroupHeader2OnBeforePrint(Sender: TfrxComponent); begin if ( <> 0) or (engine.freespace < (GroupHeader2.Height + MasterData1.Height * 2 + 1)) then …
-
I know it's been a while, but I use the following code for changing paper size in one of my projects. Perhaps the SelectPrinter should go before assigning PaperSize, which may make the SetView Params unnecessary... Anyway, it works for me for odd-s…
-
kkamaras wrote: » Hi there! I would like to ask you, if we have an imagebox to a form, is it possible to find the file path from which we have load the bitmap file? I haven't seen anything like that, and can't see a pathname in the FR3 file, …
-
BenzRacer63 wrote: » pText = new TfrxMemoView(frxReport1->FindObject("Memo1")); I'm not a C++ programmer, but from a C perspective, I'd try a cast rather than a new: pText = (TfrxMemoView)(frxReport1->FindObject("Memo1"));
-
Peta wrote: » I think it's better to put the report as file in project resources and load with TResourceStream into the FastReport. Add the report file into resources from IDE menu Project->Resources and Images. Thanks Peta, I had been …
-
ame wrote: » How can I simply hide a barcode, that has no text? Currently without text it will say "invalid Barcode" and reset to a default text. Is there an option HideIfNoData like in .Net? In an OnBeforePrint or OnAfterData handler you ca…