logo
small logo
  • Products
  • Comprar
  • Suporte
  • About
  • Customer panel Suporte
    • en
    • de
    • JP
    • ZH
  • Home
  • /
  • Suporte
  • /
  • FAQ
  • /
  • FastReport 4 VCL

FastReport® VCL 4

  • Documentação
  • Deinstallation
  • License
  • FAQ

What is the version, that I use in C++ Builder Xe2 Professional?

FR Embarcadero edition

FR Server Component can't work on any port other than 80.

You have to set the port (or any other config properties you want to alter) 
In the config.xml file in the same direction as the server  application .

Is there a way to change Thousand separator inside FR4 (using FR 4.5.1) ?

Yes, change thousand separators in locale settings or change thousandSeparator variable in Delphi.

I would like to know if there is any possibility of rotating TfrxRichView.

No , you cannot rotate it .

Is it possible from FastReport to set a different printer ?

Maybe you want to use a diffrent printer in the report definition (the 
*.fr3-file) so that this printer becomes the default printer for this 
specific report? To do this in the report designer choose "Options..." in 
the "Report"-menu. Select the "General" tab in the dialog and choose desired 
printer in the printer list.
Of course you can also select/alter printer from the preview window or by code from your delphi application.

Is Fast Report 4 Thread Safe? Are there any special properties I need to set when using FR from threads?

Yes, it's Thread Safe.

Create a report object inside thread and set this property:

1
2
frxReport.EngineOptions.EnableThreadSafe := True;
frxReport.EngineOptions.DestroyForms := False;

 

How can I limit rowcount per page ?

Use the line# variable in the OnBeforePrint event of the band write code to check the line# variable and use engine.newpage to force the newpage.

How to disconnect the use of global list of Datasets when using TfrxReport in a stream ?

At default FastReport uses grobal Datasets list which are initialized in the module frxClass. After creating copies of TfrxDBDataset, it adds it them this list. In view of this, it’s not possible to use Datasets with the same name (Even in different streams). For using local Datasets , you need to use the following code :

1
2
3
4
frxReport.EngineOptions.UseGlobalDataSetList := False;
frxReport.EnabledDataSets.Clear();
frxReport.EnabledDataSets.Add(frxDataSet);
frxReport.LoadFromFile(ReportName);

 

When creating a report with cross-table , an error comes up «Could not convert variant of type (String) into type (Double)».

If in the cross-table cells you used string values, then you need to disconnect functions arguments in the cross-table editor .

In the report its required to write a text with fixed width into TfrxMemoView ,reducing font size from 10 and below , until the smallest . How can this be done ?

Use the function TfrxMemoView.CalcWidth in the TfrxMemoView.OnAfterData:

1
2
3
4
5
6
procedure Memo1OnAfterData(Sender: TfrxComponent);
begin
 Memo1.Font.Size:=10; 
 if Memo1.CalcWidth>Memo1.Width-Memo1.GapX*2 then
 Memo1.Font.Size:=Trunc(Memo1.Font.Size*((Memo1.Width-Memo1.GapX*2)/Memo1.CalcWidth)); 
end;

 

Can you dynamically change designer localization as well as preview windows ?

Make language file a utility of mkall.bat ( in languages catalogue) and connect the language dynamically.

1
2
uses frxRes;
frxResources.LoadFromFile('english.xml');

 

How can you transfer an array of variables from Delphi into FR ?
1
2
3
4
5
var a: variant;
begin
 a := VarArrayOf([1,2,3]);
 frxReport1.Script.Variables['a'] := a;
end;

 

During compilation of the project, a message shows ‘ Class TfrxButtonControl not found'.

Add the component TfrxDialogControls (TfrxRichObject, TfrxCrossObject, TfrxOLEObject, TfrxBarCodeObject, TfrxCheckBoxObject, TfrxGradientObject, frxChartObject, TfrxADOComponents, etc.) from FR component panel into the project or add in the uses section the following modules: frxDCtrl, frxRich, frxCross, frxOLE, frxBarcode, frxChBox, frxGradient, frxChart, frxADOComponents.

How can you code dataset navigation connected to the report but not connected to any band in report script ?
1
2
3
4
5
6
7
8
9
10
var DS: TfrxDataSet;
begin
 DS:=Report.GetDataset('Items');
 DS.First;
 while not DS.Eof do 
 begin 
 ShowMessage(DS.Value('Part Name'));
 DS.NEXT;
 end; 
end.

 

How can you use report converter - Report Builder- in FR ?

Just add the module ConverterRB2FR. Into uses section.

I try to set a Memo frame in script. I write Memo1.Frame.Typ := [ftLeft, ftRight, ftTop, ftBottom]. But I receive an error. Why ?

FastReport script does not support sets . You can do this : 

1
Memo1.Frame.Typ := ftLeft + ftRight + ftTop + ftBottom;

 

How to write Report title in preview window title ?

Just set the following : 

1
frxReport1.ReportOptions.Name:='My Report';

 

Where is zmManyPages –mode in report preview window ?

In FastReport 4 there is an automatic setter of report preview window. If there are two pages, the size can be set by using the following : 

1
frxPreview1.Zoom:=(frxPreview1.Width-80)/(frxPreview1.PreviewPages.PageSize[frxPreview1.PreviewPages.CurPreviewPage].X*2);

 

I lost object inspector (data tree, standard tools panel) in my report designer.

Go to menu – view - settings, and click on restore settings.

How can you put the last record into master data on a new page ?
1
2
3
4
procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
begin
 if MasterData1.DataSet.RecNo = MasterData1.DataSet.RecordCount-1 then Engine.NewPage;
end;

 

How can I use report converter - QuickReport to FastReport?

Just add the module ConverterQR2FR into uses section and using:

1
2
3
4
5
conv := TConverterQr2Fr.Create;
conv.Source := QuickRep1;
conv.Target := FReport;
conv.Convert;
FReport.SaveToFile('converted_fromQR.fr3');

 

Can I install FR4 on RAD studio 2007 under vista?

Yes , the installation file to use is FR4*D11*.EXE.

What's the right file to use for installing FR4 on RAD Studio 2007 (BCB2007) ?

You should install FastReport 4.5 under Vista with Administrator rights. You can click right mouse button on install file and select "Run as administrator". RAD Studio 2007 must be closed.

How can I install FastReports 4 with teechart 8 ?

Use the recompile wizard and select TeeChart8.

Is it possible to export a report to many pdf files ?

Yes you can. You just have to code that in your program. Look at this example:

1
2
3
4
5
frxReport1.PrepareReport;
frxPDFExport1.FileName:= 'filename1.pdf';
frxReport1.Export (frxPDFExport1);
frxPDFExport1.FileName:= 'filename2.pdf';
frxReport1.Export (frxPDFExport1);

 

Can I export a report directly to memory stream ?

Yes you can export .Look at this simple example :  

1
2
frxHTMLExport1.Stream := myStream;
frxReport1.Export (frxHTMLExport1);

 

                  

Is it possible to do a PDF when users send the report to the printer ?

Do a PrepareReport and then export the report to PDF immediately
before or after the Print statement.
But  you will need to generate a unique filename beforehand.

Are export filters enabled in FR4 Basic Version?

Yes, export filters are enabled .

During certain conditions , arises the need to allow the possibility of exporting into certain formats from preview . How can this be done ?

Dynamically create the needed filter before preview :

1
2
3
4
5
6
7
var frxRTFExport1:TfrxRTFExport;
begin 
 frxRTFExport1:=TfrxRTFExport.Create(Form1);
 frxReport1.PreviewOptions.Buttons:=frxReport1.PreviewOptions.Buttons+[pbExport];
 frxReport1.ShowReport();
 frxRTFExport1.Free;
end; 

 


In a report DMP , in all Memo , after choosing compressed font , the report prints ordinary font . What should be done ?

In dialogue in combo box Esc-command , choose the needed command type or assign in code . frxDotMatrixExport1.EscModel:=1; // Epson Generic

How to convey needed parameters directly into a report so that the interactive dialogue window doesn’t show up and export is done “ quietly”, without filling in extra data , file name e.t.c?

Set in Export filter the property ShowDialog, ShowProgress to False and fill DefaultPath and FileName.

Why are numbers exported as lines during exportation into Excel ?

This happens when TfrxMemoView.DisplayFormat.Kind is set to fkText. Set TfrxMemoView.DisplayFormat.Kind в to fkNumeric .

Is the presence of Microsoft Excel in word needed during exportation to RTF, XLS, XML ?

Exporting into RTF needs the availability of XLS - Microsoft Excel in Microsoft Word. Exporting into XML doesn’t need installation of any application.

The report is lost from preview (TfrxPreview) after exporting the report frxReport1.Export(frxPDFExport1). What should be done ?
Do  this:
1
2
3
frxPreview1.Lock;
frxReport1.Export(frxPDFExport1);
frxPreview1.UnLock;

 Or this :

1
frxPreview1.Export(frxPDFExport1);

 

When I modify the excel cell in the excel report , the total field must change automatically, but it didn't work.

Export filter works from prepared report not from report template. That filter "does not know" what kind of data is in report cells, numbers itself or aggregate functions. You can modify exported report yourself, i.e. use SUM function for totals or any other expressions.

logo
  • 800-985-8986 (English, US)
  • +4930568373928 (German)
  • +55 19 98147-8148 (Portuguese)
  • info@fast-report.com
  • 901 N Pitt Str #325 Alexandria VA 22314
  • Comprar
  • Download
  • Documentação
  • Depoimentos
  • Como desinstalar nossos produtos
  • FAQ
  • Tutorial Video
  • Forum
  • Support SLA
  • Articles
  • Our News
  • Informação sobre nós
  • Parceiros
  • Extended licensing
  • Contatos

© 1998-2023 by Fast Reports Inc.

  • Privacidade

Trustpilot