How to Embed a PDF File in Bold Reports
Published:
Updated:
The PDF Report Item in Bold Reports allows you to embed external PDF files directly into your report design. This helps reduce design time and enables seamless integration of supporting documents such as manuals, invoices, or reference materials. This guide provides step-by-step instructions to add and configure the PDF Report Item.
Step-by-Step Instructions
Step 1: Add the PDF Report Item
- Open your report in the Bold Reports Enterprise Designer.
- In the Widgets Panel, locate the PDF report item.
- Drag and drop the PDF report item onto the design canvas.
Step 2: Configure the PDF Source
You can configure the PDF source in three different ways:
Using Source as URL
- Select the PDF report item on the design canvas.
- In the Properties panel, under Basic Settings, set the Source to URL.
- Paste the URL of your PDF file into the URL field.
Using Source as Database
- Set Source as Database in the Properties panel.
- Bind the dataset field to the database.
- Ensure the PDF is stored as a byte array in the database and that your query retrieves it correctly.
Using Source as Server
- Select Source as Server in the Properties panel.
- Select the required PDF file from the server dropdown.
Step 3: Save and Preview the Report
- Save your report changes.
- Click the Preview button in the toolbar to view the report.
- Verify that the embedded PDF displays correctly within the report layout.