Skip to main content
Need help?Talk to us →
See AttachedGet the code ↗

Your first attachment starts with the source.

A practical path from clone to compiled document.

FROM SOURCE TO FIRST ATTACHMENT

Start with the repository. The guide below matches the repository setup guide. The libraries target .NET 10; the visual builder runs on Windows.

01 / A small starting kit.

  • .NET 10 SDK; the repo pins SDK 10.0.302 or a later 10.x release.
  • Windows and the WebView2 runtime for the WPF builder.
  • Chromium for PDF export.
  • Node.js only when running the Next.js sample.

02 / Get the source.

git clone https://github.com/SDI-AI/see-attached
cd see-attached
dotnet build ReportCreator.slnx
dotnet test --project tests/ReportCreator.Compile.Tests

The repo uses Microsoft.Testing.Platform. Run the documented test command without extra flags such as --nologo.

03 / Build visually.

dotnet run --project src/ReportCreator.Builder
  1. Open the invoice sample from the File menu, or start a new report.
  2. In Page setup, set paper, orientation, and millimetre margins, plus page-header height, page-footer height, and whether page numbers print as “Page N of M”.
  3. Add text, fields, images, spacers, columns, or a table to Header, Body, Footer, Page header, or Page footer. The report header and footer print once; the page header and page footer repeat on every page.
  4. Select a block to edit its properties, including keep together, page break before, and page break after. Use Up and Down to reorder.
  5. Open the Data expander and choose Edit data, or use File → Open data. A .rcdata file holds field types and sample values. Open still accepts a plain JSON object of values. The data is not stored in the report.
  6. The middle pane is the real PDF preview. It refreshes shortly after the report or the data changes.
  7. Save the definition as JSON or a .rcreport zip; keep the data in its own file.
Illustrative view of the Windows report builder
Illustrative view of the Windows report builder.

04 / View the result.

Blazor: compile, preview, print, export.

dotnet run --project samples/viewer-blazor --launch-profile http

Open the sample at http://localhost:5250. It compiles the invoice and includes zoom, print, and Make PDF.

Next.js: display compiled HTML.

dotnet run --project samples/render-fixture
cd samples/viewer-next
npm install
npm run dev

Run npm inside samples/viewer-next. The Next.js sample displays the generated HTML; it does not bind data or offer PDF export.

05 / Give Chromium a home.

dotnet build tests/ReportCreator.Pdf.Tests
pwsh tests/ReportCreator.Pdf.Tests/bin/Debug/net10.0/playwright.ps1 install chromium

Install using an app or test output that contains Microsoft.Playwright.dll. The PDF class library output alone is insufficient. Export from the builder or the Blazor sample using the same .NET PDF library.

06 / Know the boundaries.

This is a flow-based report model, not a pixel-perfect form canvas. The report header, body, and report footer each print once. A page header and a page footer can repeat, with optional “Page N of M”. Tables split by row; printed table headings repeat. A table can group rows and carry a running total, with Sum, Count, or Avg. Parameters, page breaks, and keep-together are supported. Data is a separate JSON object or .rcdata file.

Not supported: charts, barcodes, rich text, expressions, right-to-left layout, and a free canvas. There is no converter for Crystal Reports or RDLC files. The Windows builder previews the real PDF. The Blazor and Next.js viewers show one paper-width column; Chromium inserts page breaks when that HTML is printed.

Read the full repository guide ↗ · Explore working examples · Read the MIT license

Your next attachment starts here.

Take the source. Define the layout. Give your data a document worth opening.

Get the code ↗
Want to look around first? Explore the examples