stg
stg
About
- Username
- stg
- Joined
- Visits
- 38
- Last Active
- Roles
- Members, FR Team
Comments
-
Hello! To filter an SQL table based on a range of two dates from a dialog box: add two DateTimePickerControls (DateTimePicker1, DateTimePicker2) to the DialogPage, bind them to a single date column using the DataColumn property and set FilterOperati…
-
Hello! Redirect the font cache directory to a folder with write permissions (for example, %LocalAppData% or Path.GetTempPath()) when the application starts: FastReport.Utils.Config.FontListFolder = Path.Combine(Path.GetTempPath(), “FastReportFonts”)…
-
Hello! In older versions (such as 2017.2.1), be sure to add a grouping key to the Sort tab of the child DataBand (as you did). In newer versions of FastReport .NET, the GroupHeaderBand sets SortOrder = SortOrder.Ascending by default, automatically s…
-
Hello! If you're using a DataBand, double-click it in the designer -> go to the Sort tab -> add the desired field and sort direction (Ascending / Descending). For a table-based design, it's most convenient to place a single-row table directly …
-
Hello! Yes, this issue with processing font files with uppercase extensions (.TTF) in early builds of FastReport.Core was a known bug and has been fixed by the development team in subsequent releases. Please update the FastReport.Core package to the…
-
Hello! What to check in the code that generates C# report classes: Find all GroupHeaderBands created in the report. Make sure that each one has a non-empty Condition specified for example, gh.Condition = “[Table.GroupCol]”;, if the GroupHeader was u…
-
Hello! The list of recently opened reports (RecentFiles) is stored in the FastReport.config configuration file (by default in %LocalAppData%\FastReport\FastReport.config, in the <Designer><RecentFiles>...</RecentFiles> section). To…
-
Hello! You’ve got the band’s lifecycle completely right: in scripts, calls to Report.GetColumnValue(...) are tied to the current row cursor, and switching TextXX. Visible based on the flag of the child SQL source is most reliable in the AfterData ev…
-
Hello! Calling `BigReport.Load(anotherReport)` does not carry over data that has already been loaded from another instance. To combine multiple reports from memory (from a stream or strings) with different data sources into a single print job or PDF…
-
Hello! Generating reports based on C# classes in the designer: pass a collection of business objects using `report.RegisterData(list, “MyObjects”, maxNestingLevel)` (or `report.Dictionary.RegisterBusinessObject(...)`) and call report.Design()—the cl…
-
Hello! Since a null value can cause a type conversion error in calculations: In C# classes, should you declare the field as a decimal? (Or set AllowDBNull = true for the DataTable column.) In report expressions, check the value for null (or set `Con…
-
Hello! Please update your packages to the latest version, 2027.1.x (we also recommend testing FastReport.Core.Skia, which completely eliminates GDI+/Win32 font handles during large batch runs). For parallel generation of hundreds of PDFs, isolate PD…
-
Hello! We're glad you've already found a solution! The basic FastReport.OpenSource package includes only free export to HTML and images (without the commercial PDFExport, Excel, and Word features). For basic PDF export in OpenSource, you need to ins…
-
Hello! We're glad you've already found a solution! The basic FastReport.OpenSource package includes only free export to HTML and images (without the commercial PDFExport, Excel, and Word features). For basic PDF export in OpenSource, you need to ins…
-
Hello! If the >> button is cut off on screens with high or low zoom levels, or if you need a larger button: As a workaround on a DialogPage, you can create your own selection block using two ListBoxControls and standard ButtonControls (btnAdd,…
-
Hello! Here is the correct code for updating the SelectCommand on three tables before calling Prepare() foreach (var dsName in new[] { “Table”, ‘Table1’, “Table2” }) { var tds = rp.GetDataSource(dsName) as FastReport.Data.TableDataSource; if (tds !=…
-
Hello! In the current version of FastReport.Core 2027.1.x (and the latest OpenSource version 2027.1.0), the DialogPage meta-type is present, so the .frx file itself deserializes without errors.
-
Hello! To compare account numbers as strings (lexicographically) or as numbers in DataBand.Filter, use either of the following two options: String comparison: String.Compare([transactions.account_name], “100000”) >= 0 Numeric comparison (if the s…
-
Hello! The reason lies in the syntax of the expressions: if you write `fieldA + “ ” + fieldB` without square brackets or without brackets around the field, FastReport treats the text outside the [...] as a regular string. Use a compound C# expressio…
-
Hello! Dot matrix printing without a preview from the code: report.Prepare(); using var txtExport = new FastReport.Export.Text.TextExport { ScaleX = 1.0f, ScaleY = 1.0f, Frames = false, EmptyLines = false }; txtExport.Export(report, outFilePath); //…
-
Hello! Open Dictionary in the designer and change the DataType for field1 and field2 from System.String to System.Int32 or System.Decimal. Alternatively, explicitly convert the values in the expression: [ToDecimal([Table.field1]) + ToDecimal([Table.…
-
Hello! In the XmlDataConnection settings, specify only the XML file (leave the XSD schema field blank) FastReport .NET will automatically generate the schema from the XML. Alternatively, in your C# code, read the data using the standard DataSet (ds.…
-
Hello! We're glad that after checking the band structure, the report and matrix totals are now working! We'd also like to remind you of the general recommendation for expressions in cells and MatrixObject calculation columns: Make sure the columns i…
-
Hello! Instead of setting borders on the DataBand, set them directly on the MatrixObject itself (Matrix.Border.Lines = BorderLines.All) and/or on its individual cells (TableCell.Border).
-
Hello! Yes, FastReport .NET reports work fully in ASP.NET Core Blazor Server. I'm sending you a sample project: https://www.dropbox.com/scl/fi/jlp1nzig9kuveet9tnso0/FastReport.Blazor.Demo-Online-Designer-Trial-2.7z?rlkey=dyykkhkbb3k312b7g6u14aqwn&am…
-
Hello! The TableObject in FastReport .NET does not have built-in HTML/CSS automatic recalculation of column widths when adjacent columns are hidden. However, the desired percentage distribution (30% / 70% of the remaining page width) can be easily s…
-
Hello! The expression [[Field1] - [Field2]] returns a TimeSpan object (the difference between two DateTime values), and the extra outer square brackets around the nested fields sometimes cause parsing errors. To display the number of days between tw…
-
Hello! Filter on DataBand (if the dataset is of moderate size): pass the list as a report parameter (SetParameterValue(“OrdersList”, “,Order1,Order2,”)) and set DataBand.Filter = "[OrdersList]. Contains(\“,\” + [Orders.Order] + \“,\”)". SQ…
-
Hello! The “Error in Expression” error when transferring a report from the standalone designer to a C# application occurs because the Data data source within the application is not connected or is null (the connection string in the .frx file is not …