[]
Saves the document snapshot with aids the specified file info.
public void SaveSnapshot(FileInfo snapshotFile)
| Type | Name | Description |
|---|---|---|
| FileInfo | snapshotFile | A FileInfo object to aids in the creation of FileStream. |
Saves the document snapshot to the specified output stream.
public void SaveSnapshot(Stream snapshotStream, bool isInteractive = false)
| Type | Name | Description |
|---|---|---|
| Stream | snapshotStream | A Stream object to which the snapshot will be written. |
| bool | isInteractive | A bool value indicating report has interactive items like user sorts.
If |
// Saving a report snapshot to the file.
string path = System.IO.Path.Combine(rootPath, "SampleSnapshotFile.rdlx-snap");
using (var fs = new FileStream(path, FileMode.Create)
{
pageReport.Document.SaveSnapshot(fs);
}
Saves the document snapshot to the specified output stream.
public void SaveSnapshot(Stream snapshotStream, bool isInteractive, bool formatted)
| Type | Name | Description |
|---|---|---|
| Stream | snapshotStream | A Stream object to which the snapshot will be written. |
| bool | isInteractive | A bool value indicating report has interactive items like user sorts.
If |
| bool | formatted | A bool value indicating whether the JSON should be formatted for readability. |
// Saving a formatted non-interactive report snapshot to the file.
string path = System.IO.Path.Combine(rootPath, "SampleSnapshotFile.rdlx-snap");
using (var fs = new FileStream(path, FileMode.Create)
{
pageReport.Document.SaveSnapshot(fs, false, true);
}