Insert images into rdlc reports

Source: Internet
Author: User

I.Preface

In10Month16No. I published an article aboutVisual Studio 2008OfIDEUsed inASP. NETCreateRdlcReport files([Original] rdlcReport series (1) Create a report)And received the response and support from many friends in the Group. I would like to express my gratitude and hope the content below will help you.

The original planRdlcThe content of the picture inserted in the report will be put into later stages. However, when I see the requirements of the top-up users, I want to change the original plan and explain the content in advance, hoping to help you in a timely manner.

II.Content

1.InRdlcInsert an image into a report

2.Summary

3.CodeDownload (download)

III.InRdlcInsert an image into a report

First, I want to declare that([Original] rdlcReport series (1) Create a report)ArticleFor more information, see this article.

Next, let's talk about how to add imagesRdlcReport.

1.First, create a new one in the project file.ImagesFolder, which is used to store the images used in our reports. We can insert an image file, as shown in.

2.OpenReporttemplateIn the folder, click the Report Editing area, and then selectReportUnder the menuEnabedded images..., In the pop-upEnabedded ImagesIn the dialog box, selectNewimage, SelectImagesThe image file in, as shown in the second figure below, then clickOKButton.

 

3.We have already completed adding images to our reports, but how can we apply them? Okay. Now let's solve this problem. First, chooseReportUnder the menuPage header(Because I want to load the image to the top of each page, you can also choosePage footer, That is, the footer), this time can be inRdlcThe top page is displayed in the report.

next, in Visual Studio 2008 ide toolbox drag one image Control header area, as shown in.

click the image, " in Visual Studio 2008 ide properties ", and then in source select embedded , Value select the image you just added, as shown in.

4.Save and select the code to view the image at the top of your report. So far, we have completed inserting the imageRdlcReport. The selection result is as follows.

 

4.Summary

Through the above content, we learned the following content:

1.How to enable the report header and footer;

2.Insert image resources to reports;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.