| Visual Basic (Declaration) | |
|---|---|
Overloads Public Sub SaveLayout( _ ByVal stream As Stream _ ) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public void SaveLayout( Stream stream ) | |
Parameters
- stream
- Stream object where the report's layout will be saved.
| C# | Copy Code |
|---|---|
private void mnuPrintPreview_Click(object sender, System.EventArgs e) | |
| Visual Basic | Copy Code |
|---|---|
Private Sub mnuPrintPreview_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _ | |
You can use this method to save the report's layout as a stream, then store it in a database or a resource file.
The SaveLayout method uses UTF-16 encoding when you save to a stream, and UTF-8 encoding when you save to a file.
When using this method, any code behind the report is ignored. To embed code in the report, use Scripting.