Skip to content

Commit 8e5b07f

Browse files
Merge pull request #74 from serge-andreyev/pdfcontent
Describe the PDF Content and PDF Signature controls
2 parents 43430ac + 13c7e7c commit 8e5b07f

File tree

35 files changed

+304
-1
lines changed

35 files changed

+304
-1
lines changed

interface-elements-for-desktop/articles/report-designer/report-designer-for-winforms/report-designer-tools/ui-panels/report-explorer.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,7 @@ You can select all report elements with a specific style.
5252
The Components node lists all [data sources](../../bind-to-data.md) configured for the report. Right-click a data source to customize its settings or add it to the [Report Gallery](report-gallery.md).
5353

5454
![design-time-report-explorer-data-source-add-to-gallery](../../../../../images/eurd-win-report-explorer-data-source-add-to-gallery.png)
55+
56+
You can convert a **Data Set** data source to an SQL data source. Right-click the Data Set and select **Convert to SqlDataSource** from the context menu. Click **Yes** in the invoked dialog to confirm the selected action.
57+
58+
![design-time-report-explorer-data-source-convert-data-set](../../../../../images/eurd-win-report-explorer-data-source-convert-data-set.png)

interface-elements-for-desktop/articles/report-designer/report-designer-for-winforms/use-report-elements/use-basic-report-controls.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ The controls below allow you to embed other reports and customize the report lay
1818
* [Panel](use-basic-report-controls/panel.md)
1919
* [Page Break](use-basic-report-controls/page-break.md)
2020

21+
The following controls add PDF-specific features to reports:
22+
23+
* [PDF Content](use-basic-report-controls/pdf-content.md)
24+
* [PDF Signature](use-basic-report-controls/pdf-signature.md)
25+
2126
Use the following controls to display auxiliary information in a report:
2227

2328
* [Table of Contents](use-basic-report-controls/table-of-contents.md)
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
---
2+
title: PDF Content
3+
author: Sergey Andreev
4+
---
5+
# PDF Content
6+
7+
**PDF Content** is a control that renders PDF content in a report.
8+
9+
PDF content is rendered on separate pages and uses its own page settings.
10+
11+
![](../../../../../images/eurd-win-pdf-content-diagram.png)
12+
13+
Use one of the following options to specify PDF content:
14+
15+
* [Specify PDF data](#specify-pdf-data).
16+
17+
This data is stored in the report file. The source of this data does not need to be available when the report is rendered.
18+
19+
* [Specify a reference to a PDF document](#specify-a-reference-to-a-pdf-document).
20+
21+
The reference to the document is stored in the report definition file. The referenced document should be available when the report is rendered.
22+
23+
## Add a PDF Content Control to a Report
24+
25+
Drop the **PDF Content** item from the Toolbox onto a [band](../../introduction-to-banded-reports.md) on the design surface.
26+
27+
![](../../../../../images/eurd-win-pdf-content-drop-from-toolbox.png)
28+
29+
You can also copy a PDF document from an external application and paste it in your report, or drag a document and drop it onto the design surface. The dragged file's content is assigned to the control's **Source** property as [PDF data](#specify-pdf-data).
30+
31+
![](../../../../../images/eurd-win-pdf-content-drag-file.png)
32+
33+
## Specify PDF Data
34+
35+
You can assign PDF data to the control's **Source** property.
36+
37+
Expand the **PDF Content**'s smart tag and click the **Source** property's ellipsis button to obtain the binary data from a file.
38+
39+
![](../../../../../images/eurd-win-pdf-content-source-ellipsis.png)
40+
41+
When users save a report, the **Source** property value persists in the report file.
42+
43+
> [!TIP]
44+
> See the [Use Expressions](#use-expressions) section below for information on how to conditionally specify the **Source** property value, or bind it to a report parameter or data source field.
45+
46+
## Specify a Reference to a PDF Document
47+
48+
You can use an external PDF document as a source of PDF data. Set the **Source URL** property to a local file system path or URL.
49+
50+
Expand the **PDF Content**'s smart tag and click the **Source URL** property's ellipsis button to specify the PDF document location in the file system.
51+
52+
![](../../../../../images/eurd-win-pdf-content-sourceurl-ellipsis.png)
53+
54+
To specify the PDF document's location on the Web, use the URL as the **Source URL** property's value.
55+
56+
![](../../../../../images/eurd-win-pdf-content-sourceurl.png)
57+
58+
When users save a report, the URL or path specified in the **Source URL** property is included in the report file. The PDF document should be available at the specified location when a report is printed or rendered in Preview.
59+
60+
> [!TIP]
61+
> See the [Use Expressions](#use-expressions) section for information on how to conditionally specify the **Source URL** property value, or bind it to a report parameter or data source field.
62+
63+
The **Source URL** property value takes precedence over the **Source** property value. If you specify both properties, **PDF Content** includes the content specified by **Source URL**. However, if the file specified in the **Source URL** property cannot be loaded, the binary data from the **Source** property is used.
64+
65+
## Use Expressions
66+
67+
You can specify an expression that specifies the **Source** or **Source URL** property value. An expression can include [report parameters](../../shape-report-data/use-report-parameters.md) or [data source](../../bind-to-data.md) fields, or it can conditionally specify a property value.
68+
69+
Expand the **PDF Content**'s smart tag.
70+
71+
* Click the **Expression** property's ellipsis button below the **Source** property. Use the invoked **Expression Editor** to create an expression that identifies the source of binary PDF data.
72+
73+
![](../../../../../images/eurd-win-pdf-content-source-expression.png)
74+
75+
* Click the **Expression** property's ellipsis button below the **Source URL** property. Use the invoked **Expression Editor** to create an expression the value of which identifies a URL or path to a PDF document.
76+
77+
![](../../../../../images/eurd-win-pdf-content-sourceurl-expression.png)
78+
79+
80+
## Limitations
81+
82+
* PDF content always starts on a new page. Report content is printed?on a new page after the PDF content is finished.
83+
84+
* PDF content is displayed as an image in Preview. Users cannot select text in PDF content. To allow users to select text, export the report to PDF.
85+
86+
* You cannot add the **PDF Content** control to the following bands:
87+
* **Top Margin** / **Bottom Margin**
88+
* **Page Header** / **Page Footer**
89+
* **Group Header** / **Group Footer** bands (if their **Repeat Every Page** properties are enabled).
90+
* **Vertical Header** / **Vertical Detail** / **Vertical Total**
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
title: PDF Signature
3+
author: Sergey Andreev
4+
---
5+
# PDF Signature
6+
7+
**PDF Signature** is a control that adds a visual signature to a report exported to PDF.
8+
9+
You can sign a report document when you [export it to PDF](../../../../print-preview/print-preview-for-winforms/exporting/exporting-from-print-preview.md). The signature information you specify is saved to the document's **PDF Signature Options**. The **PDF Signature** control visualizes the document signature information:
10+
11+
* Certificate name
12+
* Distinguished name
13+
* Location
14+
* Signature date
15+
* Signature reason
16+
17+
![PDF Signature Overview](../../../../../images/eurd-win-pdf-signature-overview.png)
18+
19+
> [!TIP]
20+
> For more information on how to create, export, and sign a report, refer to the following tutorial: [Reports with a Visual PDF Signature](../../create-reports/reports-with-visual-pdf-signature.md).
21+
22+
## Add a Signature Control to a Report
23+
24+
Drop the **PDF Signature** control from the **Toolbox** onto a report.
25+
26+
![Drop PDF Signature from the Toolbox](../../../../../images/eurd-win-pdf-signature-drop-from-toolbox.png)
27+
28+
## Report with Multiple Signatures
29+
30+
The first **PDF Signature** control is added to a report with the **Display Document Signature** property enabled. This control visualizes the document signature information.
31+
32+
Other **PDF Signature** controls are added with the **Display Document Signature** property disabled. When a report is exported to PDF, these controls are converted to signature form fields. Users can open an exported file in a PDF editor and put their signatures in these fields.
33+
34+
![Multiple Controls](../../../../../images/eurd-win-pdf-signature-multiple.gif)
35+
36+
Enable a control's **Display Document Signature** property to make it visualize the document's signature information. This property becomes disabled for all other signature controls.
37+
38+
If all signature controls have the **Display Document Signature** property disabled, the signature information is added to an exported file but is not displayed.
39+
40+
## Specify Signature Options
41+
42+
Expand the control's smart tag and enable check boxes for the signature fields that you want to display.
43+
44+
* **Image Display Mode**
45+
46+
Specifies whether the control shows the signature image. The following property values are available:
47+
48+
* **Show**
49+
50+
The control shows a sample signature image. If an exported document is signed, the converted PDF form field shows the actual signature image.
51+
52+
![Show Certificate Image](../../../../../images/eurd-win-pdf-signature-showcertificateimage.png)
53+
54+
* **Hide**
55+
56+
The control does not show a signature image.
57+
58+
![Hide Certificate Image](../../../../../images/eurd-win-pdf-signature-hidecertificateimage.png)
59+
60+
* **Show Certificate Name As Image**
61+
62+
The control shows a sample certificate name in place of a signature image. When an exported document is signed, the converted PDF form field shows the actual certificate name.
63+
64+
![Show Certificate Name as Image](../../../../../images/eurd-win-pdf-signature-showcertificatenameasimage.png)
65+
66+
* **Display Document Signature**
67+
68+
Specifies whether the control displays the document signature information. For more information, refer to the following section: [Report with Multiple Signatures](#report-with-multiple-signatures).
69+
70+
The signature control shows the **certificate name**, **distinguished name**, **location**, **signature date**, and **signature reason**. Disable the corresponding options in the control's smart tag to hide these fields.
71+
72+
![Disable Signature Options](../../../../../images/eurd-win-pdf-signature-disable-options.png)
73+
74+
Disable the **Show Captions** property to exclude captions from the fields listed above.
75+
76+
| Show Captions Enabled | Show Captions Disabled |
77+
| --- | --- |
78+
| ![Show Captions Enabled](../../../../../images/eurd-win-pdf-signature-show-captions-enabled.png) | ![Show Captions Disabled](../../../../../images/eurd-win-pdf-signature-show-captions-disabled.png) |
79+
80+
## Limitations
81+
82+
The **PDF Signature** control is not exported to non-PDF formats. A placeholder is added to exported documents instead.
19.4 KB
Loading
20.9 KB
Loading
17.7 KB
Loading
40.6 KB
Loading
27.3 KB
Loading
38 KB
Loading

0 commit comments

Comments
 (0)