When we develop the program, often encounter some reports, if it is WinForm report, generally can use the DevExpress control group Xtrareport, or Microsoft's RDLC report, of course, there are some other, not repeat it here. Because I often use some reports in the development of WinForm, sometimes use Xtrareport reports, sometimes also use the RDLC report, so this article mainly introduces the use of these t
Tags: winform style blog HTTP color Io OS ar usageOriginal article: Use and comparison of devexpress xtrareport and Microsoft rdlc reports
When developing programs, we often encounter some reports. For winform reports, we can generally use xtrareport in the devexpress control group or Microsoft rdlc reports. Of course there are some other reports, I will not go into details here. As I often use some report
DevExpress report is really powerful, a variety of tricks, dazzling. This time use Xtrareport Development Report, many questions in the official document does not have the detailed explanation, hereby records. 1. The Formattingrules attribute in Xtrareport is a condition (Condition) that can only return a bool value, not the expression I want. 2, according to Xtrareport
How to display the design form of xtrareport in developer Express
The xtrareport designer can actually use xrdesignformex.
Using system; using system. collections. generic; using system. componentmodel; using system. data; using system. drawing; using system. LINQ; using system. text; using system. windows. forms; using devexpress. xtrareports. ui; using devexpress. xtrareports. userdesigner; using system
the xtrareport designer can actually use xrdesignformex.
Using system; using system. collections. generic; using system. componentmodel; using system. data; using system. drawing; using system. LINQ; using system. text; using system. windows. forms; using devexpress. xtrareports. ui; using devexpress. xtrareports. userdesigner; using system. drawing. design; using system. componentmodel. design; namespace wfaxtrareport {public partial class form1: FO
Xtrareport first, the basic concept:
Each report in Xtrareports is represented by an instance of the Xtrarepot class, or is represented by subclasses of the class (this is more common). Therefore, each report is used as a container for the zone, and the report control is included in each stripe. Each report in the Xtrareports can be bound to data or unbound. To create a bound report, you first bind the report to a data source, and then specify the dat
First, create two xtrareport. One is the master and the other is the slave
MASTER: add three xrsubreport controls to detail.
View code
/// /// Print /// /// Dataset /// Printer name Public Newsuningreport (datatable dt1, datatable dt2, datatable dt3, String Printername) {initializecomponent (); If (Dt1! = Null ) {Suningreport sunrep1 = New Suningreport (dt1 ); This . Xrsubreport1.r
The document map is a tree-like collection of bookmarks for the entire report. By default, reports are printed and previewed on the left side of the dashboard. You can also output the dashboard as a PDF file, as shown in the following figure.
I have been using reportmachine design reports, but this time to do B/s development gave up RM, not RM is not good to use, it should be said that RM has many advantages, such as two report styles, the speed of design reports, many features in line
The first two methods are the same as winform, which can pass parameters, arrays, object objects, datatable, etc.1. Use constructorsUsage:In ReportPublic partial class xtrareport1: devexpress. xtrareports. UI. xtrareport{Private int test1;
Public form1 (INT test1){This. test1 = test1;Initializecomponent ();}}Call reportInt test1 = 1;Xtrareport1 report = new xtrareport1 (test1 );Report. Show ();
2. use attribute usage: in Report Public partial c
To implement this feature, You first need to print the report using the Xtrareport.printdialog and Xtrareport.print methods, and then you need to process the report's Xtrareport.printingsystem Printingsystembase.startprint event.
Key code:
private void Button1_Click (object sender, EventArgs e) {
XtraReport1 report1 = new XtraReport1 ();
Xtrareport[] reports = new xtrareport[] {new XtraReport2 (), New XtraR
Recently, the third-party report control (devexpress) was used to load the report designer by reading files (. repx. The implementation method is as follows:
Not SetCopy files to the output directoryThe report module file cannot be loaded.
1 // Get datatable data 2 Createdatatable (); 3 Dataset DS = New Dataset (); 4 DS. Tables. Add (DT ); 5 // Load data, custom Report Format 6 Devexpress. xtrareports. UI. xtrareport report = New De
;
Namespace WindowsFormsApplication2
{
Public partial class Form2: Form
{
Public Form2 (Form1 f)
{
This. prevForm = f;
InitializeComponent ();
}
Private Form1 prevForm;
Private void button#click (object sender, EventArgs e)
{
}
}
}
I am working on a winform program. I want to pass parameters (POST method) to a page of a web program and open this webpage.
Add a webbrowser control to winformThen use webrequestHttpWebRequest request = (HttpWebRequest) HttpWebRequest. Create
This article is only intended to help people who are new to users or who need devexpress xtrareports reports. To help more people, this article will not be written as a waste of time.ArticleYou can see what you don't want.
The devexpress xtrareports help document is provided in this Article. If you have read similar articles, skip this document.
Start with things.
This article consists of four steps:
Create an applicationProgramAdd a report
Build reports
Output report
View
"); // register the business object data report. registerData (FBusinessObject, "Categories"); // run the report. show (); report. dispose ();}
The data object initialization code is as follows.
private void CreateBusinessObject() { FBusinessObject = new List
From the above we can see that the data source is a list of entity classes, which shows how to use these data sources to construct reports. The running interface is as follows.
FastReport has powerful functions and its design
how to select data from the list.
And the case of direct data entry using GridControl on the right side based on TreeList tree-like list and search.
You can also enter data directly in the master-slave list.
3. Miscellaneous management for project development
In the project development process, we encapsulate some common functional modules to better and faster develop specific project functions, you can also use some widely used open-source components for function integration, such as variou
Devexpress version: 10.2.5
First look at the Implementation Effect
Empty rows are filled when report data falls below one page
When the report data exceeds one page, the last page fills in blank lines.
Code:
XtraReport rpt = new XtraReport (); // create a report instance
Rpt. FillEmptySpace + = new BandEventHandler (rpt_FillEmptySpace); // bind the event of filling empty rows
Corresponding Event code:
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.