ActiveReports Developer 7
Export Method
See Also  Example
GrapeCity.ActiveReports.Export.Excel.v7 Assembly > GrapeCity.ActiveReports.Export.Excel.Section Namespace > XlsExport Class : Export Method

Glossary Item Box

Exports the specified document to Excel format.

Overload List

Export(PageDocument,String)Exports the specified document to a .xls file.  
Export(PageDocument,String,String)Exports the specified page document to Excel.  
Export(PageDocument,Stream)Exports the specified page document to Excel.  
Export(PageDocument,Stream,String)Exports the specified document to Excel.  
Export(SectionDocument,String)Exports the specified document to an Excel file.  
Export(SectionDocument,String,String)Exports the specified range of pages in a document to an Excel file.  
Export(SectionDocument,Stream)Exports the specified document to a stream in Excel format.  
Export(SectionDocument,Stream,String)Exports the specified range of pages in a document to a stream in Excel format.  


Only when the output on the report is valid for the following conditions, the format settings of the cells exported to Excel are set automatically.


C#Copy Code
private void Form1_Load(object sender, System.EventArgs e) 
    rptExports rpt = new rptExports(); 
    this.viewer1.Document = rpt.Document; 
    xlsExport1.Export(this.viewer1.Document, Application.StartupPath + "\\x.xls"); 
VB.NETCopy Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim rpt As New rptExports()
    Viewer1.Document = rpt.Document

    XlsExport1.Export(rpt.Document, Application.StartupPath + "\x.xls")
End Sub

See Also