Technical documentation - Reports

This article describes pdf download reports and part list report function.

Downloadable reports

Select settings for print quality, the report manager uses the settings when exporting database data and illustrations to Pdf.

PdfExportPaperKind

Name of paper size; A4, Letter etc. Defaults to A4.

PdfExportDpi

Dpi setting, 150 is a default

PdfExportQuality

Print quality, always use 100 % and the default is 100.

PartAssemblyPrintTemplate

Choose a report template when a part assembly is exported to Pdf. The name is looked up in ReportTemplate.config as a PartModuleReport templates

Options

string? PdfExportPaperKind

Paper format for pdf download of orders, part assemblies, part list reports etc. E.g. use A4.

int? PdfExportDpi

Image resolution for images in generated pdf:s. Typically use 300 for high resolution.

int? PdfExportQuality

Image quality for images in generated pdf:s. Typically use 100 for high quality.

string? PrintHeaderLogoFilename

The built-in pdf and Excel download templates may have a logo. The logo file is named in this setting, and the logo file shall be placed in C:\inetpub\wwwroot\AssertWeb\App_Data\[site].

string? PartAssemblyPrintTemplate

string? IllustrationPrintTemplate

string? CatalogReportTemplate

string? OrderPrintTemplate

By default Web Viewer will use an order template, but if any other template is developed it shall be named in this tag. If several templates are provided the templates shall be listed here separated with “,”. The names listed shall correspond to a name of a template located in ReportTemplate.config.

bool? CatalogReportEnabled

The CatalogReportEnabled setting will allow the user to download the entire catalogue as a pdf. A configuration of pdf template may be needed.

Part list report

bool? PartListReportEnabled

Part list report function available or not. Default is true (available).

bool? PartListReportDownloadEnabled

Part list report function download option available or not. Default is true (available).

Element PartListReportSettings

Part list report function has a few settings to enable pagination, order and preview. These functions are initially turned off.

<PartListReportSettings>   <PagingEnabled>true</PagingEnabled>    <AddToOrderPerRowEnabled>false</AddToOrderPerRowEnabled>    <PartPreviewEnabled>true</PartPreviewEnabled> </PartListReportSettings>

Sample

ReportTemplate.config sample below, the Classification and Application elements are used to identify report templates.

Classification = Report

A report is executed from the AssertWeb application, Application can be in: PartListReport, IllustrationReport, PartModuleReport, PartReport or according to custom profile definition.

Classification = Order

Similar to the report, but Application is in: Order.

Classification = Publication

When publication report templates are define, they are available in the publications repository, the editor may choose among several ones.

As an exception, we use the publication process when making a report of a complete catalogue “download as Pdf“.

ReportTemplate.config sample

<?xml version="1.0" encoding="utf-8" ?>   <ArrayOfReportTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">     <ReportTemplate>       <!-- Name which is referred from profile.config -->       <Application>VerPartModuleReport</Application>       <!-- Name of template -->       <ReportFile>VerAtlasCopcoPartModuleReport.mrt</ReportFile>       <!-- Can be Report or Order depending on what report is to be referred -->       <Classification>Report</Classification>       <ReportName>Atlas Copco Preview Part Module report</ReportName>       <!-- Key text to use in drop down in web viewer, default is pdf --> <ReportNameTextKey>BOMMultiLanguagesLandscape</ReportNameTextKey> <!-- Dump report data, schema and compiled report --> <DumpReportEnable>true</DumpReportEnable>    </ReportTemplate> </ArrayOfReportTemplate>