stg
stg
About
- Username
- stg
- Joined
- Visits
- 38
- Last Active
- Roles
- Members, FR Team
Comments
-
Hello! The correct approach in FastReport .NET: In the data source's SQL query, enter: SELECT * FROM TableName WHERE ID = @CustomerId. In the SQL parameter editor, bind @CustomerId to the report parameter [CustomerId] (with the appropriate data type…
-
Hello! Yes, you’re absolutely right: the FlowTo property is mentioned in the FastReport VCL (Delphi) manual, whereas in FastReport .NET, the BreakTo property handles the similar task of wrapping excess text into another TextObject (for example, to w…
-
Hello! To ensure that the Child1 child band under PageHeader2 prints only on the first page, you can do this even more easily without a script by using the PrintOn property: Select Child1 in the designer and open the PrintOn property in the inspecto…
-
Hello! Your original formula IIF([@INVNUM]==“”, ‘’, ...) didn't work because the DataBand.Filter property must return a boolean, but the “” branch returned a string (which causes a compilation error), plus in C# expressions, IIF evaluates both argum…
-
Hello! You can update the report.FileName property in your code immediately after report.Load(...) and Prepare(), before displaying the Preview (the Save dialog or export function often uses report.FileName or ReportInfo.Name as the default file nam…
-
Hello! There are two syntax errors in the properties of the TextBoxControl filter dialog: DataColumn is specified by the column name in the dictionary, not by a value from GetColumnValue: TextBox1.DataColumn = “RSRList.SRI”;. By toggling the FilterO…
-
Hello! Pass the table to RegisterData and be sure to enable the data source: report.RegisterData(dtPrint, “GridTable”); report.GetDataSource(“GridTable”).Enabled = true; When designing the template for the first time, call report.Design(); immediate…
-
Hello! To use a single, updatable footer/header template across all reports, it’s best to use report inheritance (report.BaseReport = “common_footer.frx”;) this allows you to change the footer in a single base .frx file without duplication. Regardin…
-
Hello! To reuse the same header/company logo across all reports while being able to edit it in one place, FastReport .NET includes a built-in report inheritance mechanism (Report Inheritance): Create a base template, CompanyBase.frx, with your PageH…
-
Hello! Before passing the text to the report, process it in C# (for example, using a .NET hyphenation library such as NHyphenator or Hyphenation) to insert the \u00AD character at valid syllable boundaries. Make sure that the WordWrap property of th…
-
Hello! Inside the BeforePrint event handler for a table or cell, the values for the current record are retrieved using `Report.GetColumnValue(...)`, and the cell itself is retrieved by casting `(TableCell)sender`: private void Cell1_BeforePrint(obje…
-
Hello! A separate design page (ReportPage2) runs exactly once after the entire first page (Page1) has finished, so it cannot be set to repeat automatically after each month on Page1. To repeat the summary page at the end of each month: On Page1, add…
-
Hello! To ensure that when using your own PreviewControl, the filter dialog opens first, and the preview window appears (or populates) only after the user clicks OK: Call report.Prepare() BEFORE binding or displaying the form with the PreviewControl…
-
Hello! To ensure that the second line in the PageHeader is printed only for selected subreports/sections: Place the second header line in a ChildBand under the PageHeaderBand (or in a TextObject inside the PageHeader). Keep in mind an important deta…
-
Hello! Yes, you can determine in the script whether a subreport has moved to a new page by comparing Engine.CurPage (and, if necessary, Engine.CurY) in the BeforePrint and AfterPrint events: private int prevPage = -1; private void Subreport1_BeforeP…
-
Hello! How to customize a converted .frx file for .NET: Pass the DataSet or DataTable in the code and open the template in the designer (report.RegisterData(ds, “Employees”); report.Design();), or manually replace the <Dictionary> block in the…
-
Hello! Add FastReport.SQLite.dll (along with System.Data.SQLite.dll and the native SQLite.Interop.dll) to your project's References with Copy Local set to True. When the application starts (in Program.cs / Main, before opening reports), call the fol…
-
Hello! Use a single common report parameter in all 10 SQL queries/filters. (Just as you did.) If the template structure requires 10 named parameters (for example, for different subqueries), simply specify a reference to the master parameter in the d…
-
Hello! FastReport .NET does not have a built-in button to “export each group into 100 separate PDF files with a single call to Export(),” but this task can be easily accomplished with a short loop in C# / VB.NET: foreach (var groupKey in distinctGro…
-
Hello! Please update to the latest release of FastReport .NET 2027.1.x; this behavior has been fixed in that version. In practice, set the restriction both on the control and in the global settings before calling ShowPrepared(), so that the global F…
-
Hello! Yes, starting with Office 2007, Microsoft has been using a single standard, OOXML (.xlsx), and the format has remained unchanged. Therefore, the Excel2007Export export class creates fully functional .xlsx files that open and are supported nat…
-
Hello! How to configure an Angular SPA + ASP.NET Core: In the proxy.conf.json file (if the Angular dev server is running on port 4200/8000 and the ASP.NET Core API is running on port 5000), add proxying for the paths /WebReportDesigner, /_fr, and /a…
-
Hello! You can programmatically change the metadata of a PDF document (Creator and Producer) before exporting (including in VB.NET) using the properties of the PDFExport object: Dim pdfExport As New FastReport.Export.Pdf.PDFExport() pdfExport.Creato…
-
Hello! To resolve your issue, you can upgrade to the latest version of FastReport.Core 2027.1.x.
-
Hello! The Report instance you opened in DesignerControl does not have a data source or the [Date] parameter registered/enabled (in the standalone designer, you likely opened a .frx file with test data or a connection, and in the VB.NET code, you ca…
-
Hello! In Application_Start / Startup, specify a dedicated folder with write permissions: FastReport.Utils.Config.TempFolder = Server.MapPath(“~/App_Data/FastReportTemp”); and Config.WebMode = true;, making sure that the AppPool account (IIS_IUSRS /…
-
Hello! When the column total in Matrix concatenates the values into a string (200300) instead of summing them (500), this means that the column in the report’s Dictionary has a System.String type (despite the xs:decimal in the XSD; either an old/man…
-
Hello! To ensure that the second page of the template (Page2) is printed only when a specific condition is met, use the Page2.Visible property: In the page editor or properties, you can bind a condition to Page2.VisibleExpression (for example, [Show…
-
Hello! In the BeforePrint handler, you cannot access the design field by its global name (or mutate it in AfterData, once the image has already been rendered). Always retrieve an instance of the current row via (BarcodeObject)sender, and if the text…
-
Hello! Text objects/columns have the properties AutoWidth = true or WordWrap = false enabled, which causes a long value without spaces in these two rows to force the cell to expand. If you’re using a TableObject with dynamic column widths or Cell.Au…