Default Avatar

stg

stg

About

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

Comments

  • Hello! report.RegisterData(IEnumerable<T>, ‘MyData’) accepts any lists, arrays, DataTables, LINQ queries and business objects of type List<MyRow> (or IEnumerable<MyRow>, which returns data one record at a time via `yield return` wi…
    in UserDataSet Comment by stg November 24
  • Hello! The ‘experimental’ status applied to the early releases of 2018–2019. FastReport.Core (for .NET 6–10) has long been a production-ready product, released and supported on a regular basis alongside FastReport.Net (the current audit-verified com…
  • Hello! FastReport.Core fully supports MSChartObject  It is important not to confuse this with the free FastReport.OpenSource (which does not include MSChartObject)
    in MSChart Comment by stg November 24
  • Hello! A sufficient `maxNestingLevel` has been passed to `report.RegisterData(...)` (the default is often 1, so the nested `ConfigStatusComponent` class is not expanded – set `maxNestingLevel` to 3 or higher!): report.RegisterData(data, ‘reportData’…
  • Hello! To open a ready-made (.fpx) report within a PreviewControl in WinForms: var report = new FastReport.Report(); report.LoadPrepared(@‘C:\path\to\report.fpx’); report.Preview = previewControl1; // bind the PreviewControl before displaying! repor…
  • Hello! To fill even rows with silver: var style = new FastReport.Style { Name = ‘EvenSilver’, Fill = new FastReport.SolidFill(System.Drawing.Color.Silver), ApplyFill = true }; report.Styles.Add(style); dataBand.EvenStyle = ‘EvenSilver’; textObjectOn…
  • Hello! The DataBand.EvenStyle property takes the name of a style that has been previously added to report.Styles; furthermore, the style itself must have the ApplyFill = true flag set (and/or the ApplyFont and ApplyBorder flags), and the row objects…
  • Hello! Check the TEMP and TMP environment variables for the user or application pool under which the process is running, and ensure that this directory exists and that the user has Modify and Full Control permissions. Additionally, if necessary, cle…
  • Hello! To solve your problem, you can create a small command-line utility in C# (.NET): using var report = new FastReport.Report(); report.Load(args[0]); foreach (var arg in args.Skip(1)) { var parts = arg.Split(“=”, 2); report.SetParameterValue(par…
  • Hello! Iterate recursively through `report.AllObjects` in a loop up to `Prepare()` and set the `Angle` property of each `TextObject` and `BarcodeObject` to 180 (and mirror the coordinates: `PageWidth - Left - Width`, `PageHeight - Top - Height`). Al…
  • Hello! Load the FontAwesome .ttf/.otf file into PrivateFontCollection (Report.Dictionary / Config.PrivateFontCollection or install the font on your system) and assign it to TextObject.Font using the glyph code in the text (for example, ‘\uf007’). Wh…
  • Hello! Move the fixed header not into the DataHeaderBand, but into an independent ChildBand (for example, a child band linked to the first DataBand via DataFooter, or a separate header band that is independent of the filter in the second DataBand). …
  • Hello! To ensure the scanner decodes exactly the string written beneath the barcode, without the checksum character: Select BarcodeObject in the designer. Expand the Barcode property in the Properties Inspector and set CalcCheckSum = false (in the c…
  • Hello! During publication (Publish), the folder containing the .frx reports has not been copied to the output directory, or a relative path is being used instead of IWebHostEnvironment.WebRootPath / ContentRootPath. The IIS application pool (Applica…
  • Hello! To ensure that both major and minor grid lines (Major + Minor Grid) are displayed simultaneously on the chart (Spline / Line) without the X-axis labels being obscured: var area = chart.Chart.ChartAreas[0]; area.AxisX.MajorGrid.Enabled = true;…
  • Hello! Use a DataTable (the simplest way to create dynamic columns on the fly), JsonDataSourceConnection, or a wrapper that implements ICustomTypeDescriptor (and ITypedList for collections)
  • Hello! Check the HideZeros property on TableCell / TextObject cells — when HideZeros = true, all zero values are replaced with an empty string; set HideZeros = false to display the zeros. If the rows or the entire table disappear as a result, check:…
  • Hello! Configure the environment settings once before calling `report.Show()`: using FastReport; using FastReport.Preview; // Hide only the designer button (Edit): var env = new EnvironmentSettings(); env.PreviewSettings.Buttons = PreviewButtons.All…
  • Hello! When you pass a `List<Person>` via `report.RegisterData(data, ‘JSON.item’)` in a template designed for a JSON schema (or without an explicit `DataBand.DataSource` binding), only the first item in the list is displayed because the `DataB…
  • Hello! If you run it using `await Task.Run(() => fastReport.PrintPrepared(settings));`, the line immediately following the `await` statement will execute as soon as `PrintPrepared` has finished running. If you also need an event at the report lif…
  • Hello! Please install the .NET Framework 4.x / 4.8 targeting packs via the Visual Studio Installer (under the ‘Individual components’ tab). For older net40 versions, you may need the .NET Framework 4.5+ targeting pack or to update the `TargetFramewo…
  • Hello! Set the default value in the Expression field using one of the following C# methods: new DateTime(2021, 1, 1) (a universal option that is independent of regional settings!) or DateTime.Parse(‘2021-01-01’) or DateTime.Today / DateTime.Now.AddD…
  • Hello! Draw the ‘composite’ frame in sections: in the GroupHeader — the top arc/top rounded corners and side lines (using Shape/borders or 2 thin arcs + side LineObjects), in the DataBand — the left and right vertical borders (Border.Lines = Left | …
  • Hello! Extract the images from the RTF string and display them using a separate PictureObject (ImageData / DataColumn). Alternatively, convert the content to HTML (using embedded <img> / Base64 or paths) and use the modern HtmlObject / HtmlPar…
  • Hello! If you are using a built-in database connection within the .frx file (SQLite, MS SQL, XML, etc.), please ensure that the relevant connector plug-in has been added to and registered in your C# application (FastReport.Data.* + RegisteredObjects…
  • Hello! The Unit property within the TextObject.Font property is a standard property of System.Drawing.Font.Unit (GraphicsUnit: Point, Millimetre, Inch, Pixel). When editing in the Properties Inspector or during rendering, FastReport uses font size i…
  • Hello! Add the high limit to a hidden row or column in the matrix header (with `Visible = false` or as an additional dictionary/report parameter, indexed by row or column keys). Perform conditional formatting in the Matrix1.ModifyResult event (itera…
  • Hello! The built-in RDL/RDLC import feature in FastReport .NET Designer transfers the visual layout (sections, text fields, tables, frames), but complex SSRS data sources (DataSets with custom SQL queries/shared datasets) and some SSRS expressions/p…
  • Hello! The absence of the Print(), PrintPrepared() and PrintSettings methods in the FastReport.Core package is intended behaviour by design: FastReport.Core is a cross-platform library (Linux/macOS/Docker) and does not include the Win32/GDI printing…
  • In FastReport .NET, event subscriptions to the BeforePrint event are bound to the chart instance from the report template. During the Report.Prepare() stage, FastReport builds the prepared pages (PreparedPages), but does not yet render them. Renderi…