Difference between revisions of "How Reports are Displayed"

From truxwiki.com
Jump to navigation Jump to search
 
Line 1: Line 1:
 +
This page documents how the Reports in Truxton are displayed, or how the View of the report is created.
 
== UI Guide Menu ==
 
== UI Guide Menu ==
 
:* [[ UI - Truxton Analyst - Dev Guide ]]
 
:* [[ UI - Truxton Analyst - Dev Guide ]]
Line 8: Line 9:
 
:# [[ Truxton CLI options ]]
 
:# [[ Truxton CLI options ]]
 
:# [[ How Reports are Displayed ]]
 
:# [[ How Reports are Displayed ]]
 +
 +
== Overview ==
 +
 +
:Most of the UI app is in C# and WPF. Typically, when you load a page, a View is made and rendered on screen using C# and WPF magic. This is not the case for Reports. The report is generated using HTML. Eventually, that HTML-report is loaded into an existing view.
 +
 +
:I assume this is the case for multi-platform report generation as well as ease of printing. I'll update this as it's discovered.
 +
 +
== Main Files ==
 +
 +
::{| class="wikitable"
 +
! File
 +
! Summary
 +
! Path
 +
|-
 +
| ReportSection.xaml
 +
| This view has a WebBrowser element that displays the HTML. It's loaded using the Binding HTMLReport.Stream
 +
| \Truxton\Client\TruxtonClient\TruxtonClient\Templates\ReportSection.xaml
 +
|-
 +
| ReportSectionViewModel.cs
 +
| This is the ViewModel for the ReportSection
 +
| \Truxton\Client\TruxtonClient\TruxtonClient\ViewModels\Reports\ReportSectionViewModel.cs
 +
|-
 +
| HTMLReportViewModel.cs
 +
| This is where the report-generating functions are called in loadReportContent
 +
| \Truxton\Client\TruxtonClient\TruxtonClient\ViewModels\Reports\HTMLReportViewModel.cs
 +
|-
 +
|}

Revision as of 15:08, 12 November 2021

This page documents how the Reports in Truxton are displayed, or how the View of the report is created.

UI Guide Menu

  1. Entry Point
  2. Navigation and Routing
  3. Databinding
  4. Dependency Injection
  5. Task Bar Icon
  6. Truxton CLI options
  7. How Reports are Displayed

Overview

Most of the UI app is in C# and WPF. Typically, when you load a page, a View is made and rendered on screen using C# and WPF magic. This is not the case for Reports. The report is generated using HTML. Eventually, that HTML-report is loaded into an existing view.
I assume this is the case for multi-platform report generation as well as ease of printing. I'll update this as it's discovered.

Main Files

File Summary Path
ReportSection.xaml This view has a WebBrowser element that displays the HTML. It's loaded using the Binding HTMLReport.Stream \Truxton\Client\TruxtonClient\TruxtonClient\Templates\ReportSection.xaml
ReportSectionViewModel.cs This is the ViewModel for the ReportSection \Truxton\Client\TruxtonClient\TruxtonClient\ViewModels\Reports\ReportSectionViewModel.cs
HTMLReportViewModel.cs This is where the report-generating functions are called in loadReportContent \Truxton\Client\TruxtonClient\TruxtonClient\ViewModels\Reports\HTMLReportViewModel.cs