DxDocumentViewerExportSettings.UseSameTab Property
Specifies whether the print and export operations are performed in the same browser tab as the Document Viewer control.
Namespace: DevExpress.Blazor.Reporting
Assembly: DevExpress.Blazor.Reporting.v21.1.JSBasedControls.dll
NuGet Package: DevExpress.Blazor.Reporting.JSBasedControls
Declaration
Property Value
Type | Description |
---|---|
Boolean | True to perform operations in the same tab; false to open another browser tab for print or export. |
Remarks
If this option is set to true, the Export command creates and downloads the exported document in the same browser tab. The Print command creates a PDF document and opens the browser Print dialog. This dialog also allows the user to download the PDF file if the browser cannot print the document or the printout is incorrect.
The popup dialog contains texts localizable with the following localization strings:
- ASPxReportsStringId.WebDocumentViewer_Print_Popup_Caption
- ASPxReportsStringId.WebDocumentViewer_Print_Popup_LinkText
- ASPxReportsStringId.WebDocumentViewer_Print_Popup_Text
Code Examples
<DxDocumentViewer ReportName=@ReportName Height="700px" CssClass="w-100">
<DxDocumentViewerExportSettings UseSameTab="true"/>
</DxDocumentViewer>