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;