The topic describes saving a Page/RDLX report.
Use the Save method to save your report layout at run time.
The following example shows what the code for the method looks like to save a Page or an RDLX report.
VB# code. Paste INSIDE the Form class |
Copy Code
|
---|---|
Private Sub SaveButton_Click(ByVal sender As Object, ByVal e As EventArgs) Dim saveFileDialog As SaveFileDialog = New SaveFileDialog() saveFileDialog.Title = "Save Report" saveFileDialog.Filter = "Page Report Files|*.rdlx" saveFileDialog.ShowDialog() If saveFileDialog.FileName <> "" Then pageReport.Save(New FileInfo(saveFileDialog.FileName)) End If End Sub |
C# code. Paste INSIDE the Form class |
Copy Code
|
---|---|
private void SaveButton_Click(object sender, EventArgs e) { SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Title = "Save Report"; saveFileDialog.Filter = "Page Report Files|*.rdlx"; saveFileDialog.ShowDialog(); if (saveFileDialog.FileName != "") { //Save Report File pageReport.Save(new FileInfo(saveFileDialog.FileName)); } } |