private void button2_Click(object sender, EventArgs e)
{
StiReport report = new StiReport();
report.Load("stiReport1.mrt");
report.Render();
StiWord2007ExportService wordExport = new StiWord2007ExportService();
wordExport.Export(report, @"c:\doc.docx");
}
با این روش در مسیر c میتونید ذخیره کنید . البته در این روش Dialog Box هم نمایش داده میشه و برای ذخیره بدون نمایش Dialog Box باید کد زیر رو استفاده بکنید :
StiReport report = new StiReport();
report.Load("stiReport1.mrt");
report.Render();
report.ExportDocument(StiExportFormat.Word2007, @"c:\doc1.docx");