-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForm1.cs
30 lines (25 loc) · 1.18 KB
/
Form1.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Windows.Forms;
namespace Q250602 {
public partial class Form1 :Form {
public Form1() {
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e) {
// TODO: This line of code loads data into the 'nwindDataSet.Order_Details' table. You can move, or remove it, as needed.
this.order_DetailsTableAdapter.Fill(this.nwindDataSet.Order_Details);
}
private void OnShowPrintPreviewButtonClick(object sender, EventArgs e) {
orderDetailsGrid.ShowPrintPreview();
}
private void OnExportToXlsButtonClick(object sender, EventArgs e) {
orderDetailsGrid.ExportToXls(@"..\..\order_details.xls");
//orderDetailsGrid.ExportToHtml(@"..\..\order_details.html");
//orderDetailsGrid.ExportToMht(@"..\..\order_details.mht");
//orderDetailsGrid.ExportToPdf(@"..\..\order_details.pdf");
//orderDetailsGrid.ExportToRtf(@"..\..\order_details.rtf");
//orderDetailsGrid.ExportToText(@"..\..\order_details.txt");
//orderDetailsGrid.ExportToPdf(@"..\..\order_details.pdf");
}
}
}