0
如何連接XtraReport到Windows窗體上的Visual Studio 2010(這也必須使用XtraGrid中查看報表)我如何連接XtraReport到Windows窗體上的Visual Studio 2010
如何連接XtraReport到Windows窗體上的Visual Studio 2010(這也必須使用XtraGrid中查看報表)我如何連接XtraReport到Windows窗體上的Visual Studio 2010
,並嘗試在你的表單中使用此代碼
public partial class YourForm : XtraForm
{
private YourXtraReport report;
public YourForm(PrintDocument document)
{
InitializeComponent();
report = new PrintingDocumentReport(document);
}
private void PrintingFormLoad(object sender, EventArgs e)
{
printControl1.PrintingSystem = report.PrintingSystem;
report.CreateDocument();
}
}