[]
The topic describes saving a Page/RDLX report.
type=note
Note: The Report menu in Visual Studio 2019 and above is available as submenu under Extensions. You should select the Design View of the report in the ActiveReports Designer first.
Use the Save method to save your report layout at run time.
Right-click the Windows Form and select View Code to see the code view for the Windows form.
Add the following code to the Form class to save the report.
The following example shows what the code for the method looks like to save a Page or an RDLX report.
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
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));
}
}