Default Avatar

stg

stg

About

Username
stg
Joined
Visits
38
Last Active
Roles
Members, FR Team

Comments

  • Hello! Add a reference to FastReport.Bars.dll (located in the same installation folder/NuGet lib as FastReport.dll) to the References of your WinForms project (and, if you're using the Editor, also add FastReport.Editor.dll). Make sure the versions …
  • Hello! Delete the static ChildBands and, instead, right-click on DataAgent -> Add Detail Data Band (add two child DataBands: DataJobs and DataCommunications). Bind a separate DataSource (Jobs, Communications) to each of them and set the Relation …
  • Hello! In FastReport .NET (C#), this corresponds to the FastReport.ReportPage class: var page = report.Pages[0] as FastReport.ReportPage; if (page != null) { page.Landscape = true; page.PaperWidth = 297; page.PaperHeight = 210; page.LeftMargin = 15;…
  • Hello! In T-SQL, the STRING_AGG function does not support the DISTINCT modifier within its arguments, so barcodes must be deduplicated beforehand either in a subquery or CTE at the SQL level, or on the report side: SELECT StoreCode, SKU, STRING_AGG(…
  • Hello! To open the dialer when you tap a phone number in WebReport (on a smartphone or in a browser), configure a standard hyperlink using the tel:: protocol for the TextObject: In the report designer: Select the TextObject containing the phone numb…
  • Hello! A single call to `Report.SetParameterValue(“@Parameter”, x)` within the `BeforePrint` method is not enough to automatically restart an already open SQL data source (SQLTABLE). After changing the parameter, you need to force a reinitialization…
  • Hello! Check that CanGrow is set to true for both the text object and the parent band (DataBand / ChildBand). If there are other elements or nested frames below the expandable object, check that ShiftMode = ShiftMode.Always (or GrowToBottom = true f…
  • Hello! To align the margins on a scanned form or layout, it’s convenient to use the page watermark: Select Page1 -> Watermark property -> set Enabled = true. Load the layout image into Watermark.Image, set ImageSize = WatermarkImageSize.Stretc…
  • Hello! Be sure to enable the double pass for the report: Report -> Configure / Settings -> Double pass (report.DoublePass = true;). In the PrintOn property of the PageFooterBand, select both LastPage and SinglePage (so that the footer is print…
  • Hello! We recommend that you update to the latest version of FastReport .NET, in which this issue does not occur.
  • Hello! Use the modern Excel2007Export (.xlsx / OpenXML) instead of Excel2003Export (.xls)—the .xlsx format handles images much more reliably and works with modern versions of Excel without triggering false security warnings. If the client specifical…
  • Hello! Set AutoSize / CanGrow = true for it and center the RichObject itself (or its container/child band) vertically on the page using code in BeforePrint, based on the height of the prepared/measured content.
  • Hello! A crash within `FastReport.BandBase.CalcHeight()` when there are multiple `DataBand`s (with `CanBreak = true` and `CanGrow = true`) and table rows with `AutoSize = true` has been fixed in the latest releases of FastReport.Core. Please update …
  • Hello! For accurate printing from a browser, export to PDF (PDFExport) rather than HTML. Chrome and the built-in PDF viewer reproduce page breaks with millimeter-level precision, matching those in Preview. If you specifically need an HTML export, en…
  • Hello! Update the commercial packages FastReport.Core + FastReport.Web + FastReport.DataVisualization to a single current version from the private NuGet feed, and the error will disappear.
  • Hello! Yes, you can standardize the RTF font family and size right before printing in RichObject using the BeforePrint event via a temporary System.Windows.Forms.RichTextBox: private void Rich1_BeforePrint(object sender, EventArgs e) { var rich = (R…
  • Hello! After calling `report.Prepare()`, the coordinates must be read from the prepared objects on the prepared page (`report.PreparedPages.GetPage(i)`) rather than from the original template objects in `PageFooterBand`: In the original template, Pa…
  • Hello! To import, use `RDLImportPlugin.LoadReport`; after that, you can convert RDL to FRX using code. Here's an example: using (Report report = new Report()) { RDLImportPlugin rdlImport = new RDLImportPlugin(); // Load the .rdl or .rdlc file into …
  • Hello! You can place a separate TextObject row block/table below the chart columns with the same hyperlink (or click handler in Preview), formatted with blue underlined text, or use the CustomPostPaint / Chart layout.
  • Hello! In FastReport.OpenSource, basic formatting (<b>, <i>, <u>, <font color=...>) is rendered using a TextObject with the TextRenderType property set to TextRenderType.HtmlTags. If you’re using simple HTML (bold/italic/colo…
  • Hello! Check the DataBand.Sort collection in all bands of the template: the sort expression (for example, [DataReport.Name]) must exactly match the new name of the registered data source and contain no syntax errors. For programmatic registration of…
  • Hello! In FastReport .NET, the GroupHeaderBand group header only groups records that have been filtered by a child DataBand. Therefore, to prevent an empty group from appearing, set the filter condition directly in the DataBand.Filter property (rath…
  • Hello! As you correctly noted, the engine calls `GetData()` to evaluate all of a component’s expressions (`GetExpressions()`) and may also perform layout calculation passes. To avoid redrawing the resource-intensive Bitmap twice for each record: Cac…
  • Hello! To color the cells/text of a child band to match the color of the current parent row, use the BeforePrint method (or the Highlight condition) while tracking whether the parent row is even-indexed: private int parentIdx = 0; private void Paren…
  • Hello! Please update FastReport .NET to the latest version, 2027.1.x (or test FastReport.Core.Skia, where font metric calculations do not depend on GDI or the printer driver). If the problem persists in the latest version, please send us the .frx te…
  • Hello! The connector plugin (FastReport.MsSql / MsSqlDataConnection) is not connected in the application, or the parameters/connection string have not been passed to `Prepare()` (`report.Dictionary.Connections[0].ConnectionString = ...;`). If data i…
  • Hello! Add SET FMTONLY OFF at the beginning of the query/procedure (or rewrite the temporary table to the table variable @TmpPDPR / CTE). Alternatively, specify the column schema manually in the Define Columns window that opens in the FastReport des…
  • Hello! Curly braces { } within RTF may conflict with the braces used in Brackets expressions—if you’re passing a mixed RTF + expression, check the brace escaping or populate the RTF in the BeforePrint handler. If the database contains plain text or …
  • Hello! Use dynamic TableObject construction via ManualBuild (subscribe to table.ManualBuild, print the header using table.PrintRow(0); table.PrintColumns(); and each row of data using PrintRow(...) + FixedRows = 1). The engine will automatically spl…
    in Page.Break() Comment by stg November 27
  • Hello! By default, FastReport.Web (WebReport) is set to display pages sequentially (with navigation buttons on the toolbar). To display all generated pages at once in a single scrollable view (for scrolling with the mouse wheel or the Page Down key)…