. NET rapid Information System development Framework V3.2 "User Management" main interface using multi-header display, add printing function

Source: Internet
Author: User

Rdiframeowrk.net User Management is the use of very frequent modules, because the need to show more fields, the previous presentation is not too prescriptive, Now the 3.2 version of the user management main interface has been completely redesigned, and the data list shows a new Gridcontrol control for the Dev family. The display of the column uses a multi-header presentation, while the functionality of the print user is added. Below we will do the function demonstration and explain the development method.

First, the user management multi-head display effect and implementation.

Implementation method:

1. First, convert the DevExpress Gridcontrol to Bandedgridview

2. Set the fields to display columns and bindings, which are set in the same way as we normally use Gridcontrol workpieces

3. Go to Design view, click Bands, see.

3.1 Add multiple Band, as in click "Add New Band ..." to add.

3.2 Layout: Drag the corresponding band for layout and adjust the position of the band as needed.

4.3 Data binding: Click Show Columns selector to display the column we set before, select the appropriate column below the specified band.

Second, the user manages the printing user function The effect and the realization.

Printing is the most commonly used function, user management without printing function, the effect of printing users are as follows:

In the user print interface, we can print the data output to various formats, such as: PDF files, HTML files, Excel files, etc., can also be sent directly to the current printing data, can also set the printing watermark, etc., can be set in the Print window, the function is very rich.

The print component here uses the Dev control's default print control xtraprinting, which prints the function reference code:

private void btnPrint_Click(object sender, EventArgs e)  {      PrintableComponentLink link = new PrintableComponentLink(new PrintingSystem())      {          Component = this.grdList,          Landscape = true,          PaperKind = PaperKind.A3      };      link.CreateMarginalHeaderArea += LinkOnCreateMarginalHeaderArea;      link.CreateDocument();      link.ShowPreview();  }  

private void LinkOnCreateMarginalHeaderArea(object sender, CreateAreaEventArgs e)  {      string titile = "用户列表";      PageInfoBrick brick = e.Graph.DrawPageInfo(PageInfo.None, titile, Color.DarkBlue, new RectangleF(0, 0, 100, 21), DevExpress.XtraPrinting.BorderSide.None);      brick.LineAlignment = BrickAlignment.Center;      brick.Alignment = BrickAlignment.Center;      brick.AutoWidth = true;      brick.Font = new Font("宋体", 15f, FontStyle.Bold);  

Related articles:

Rdiframework Platform Code generator V3.2 release version

Rdiframework.net-based on. NET rapid Information System development Framework-Series catalogue

Rdiframework.net━. NET rapid Information System development framework-Introduction to Workflow components

. NET rapid Information System Development Framework V3.2, WEB User Management Module editing interface-organization selection support cascading selection



For a few years, thanks to the supporters and users of the rdiframework.net framework, you can find out more at the address below.

Rdiframework.net Official website: http://www.rdiframework.net/

Rdiframework.net Official Blog: http://blog.rdiframework.net/

At the same time need to be explained, all the technical articles in the future to the official website as the subject, welcome to our collection!

Rdiframework.net Framework by the professional team for a long time to build, has been updated, has been upgrading, please rest assured that use!

Welcome to Rdiframework.net Framework Official public (No.: rdiframework-net), keep abreast of the latest developments.

Scan QR code for immediate attention

. NET rapid Information System development Framework V3.2 "User Management" main interface using multi-header display, add printing function

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.