feat(reporting): view nest reports in a window to save or print

Export Nest Report only wrote a file, so checking or printing a report meant
finding it and opening another program. View Nest Report renders the same
snapshot to a private temp folder and opens it in a WebView2 viewer with
Save As and Print; closing the window deletes the temp copy. Export and View
share the capture and write guards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ajandClaude Opus 5.5 committed 2026-11-04 10:02:42 -05:00
1 parent 54cea0c325
commit 9d4d024d60
6 files changed
+279 -22

No files matched your search

+9 -2
View File
@@ -9,8 +9,15 @@ the dialog closes, the target and those conditions are revalidated; the snapshot
is then captured synchronously on the UI thread and only that detached snapshot
reaches the renderer. Export never changes the selected plate, dirty state,
timestamps or quantities, and it never touches post selection, verification or
CNC output. Opening and printing use any normal PDF viewer; the report includes
no printer controls and there are no persisted report settings or templates.
CNC output. There are no persisted report settings or templates.
**File -> View Nest Report...** runs the same guards and capture without a dialog,
renders to a private folder under `%TEMP%\OpenNest\Reports\` and opens a modeless
viewer window (WebView2's PDF viewer, sharing Help's WebView2 data folder) with
**Save As...**, which copies the rendered file to a chosen path, and **Print...**,
the WebView2 print dialog. Closing the window deletes its temporary folder; a
render failure opens no viewer and leaves no folder. Without the WebView2 Runtime
the window still offers Save As.
The same two calls back the command and any future integration: