All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Hi,
Is it possible for the ReportViewer to use your RadSaveDialog during exportation.
Thanks
Marc
public
Window1()
{
InitializeComponent();
this
.ReportViewer1.ExportEnd += ReportViewer1_ExportEnd;
}
private
void
ReportViewer1_ExportEnd(
object
sender, Telerik.ReportViewer.Common.ExportEndEventArgs args)
args.Handled =
true
;
var fileDialog =
new
RadSaveFileDialog()
Owner =
,
FileName = args.DocumentName,
DefaultExt = args.DocumentExtension
};
if
(fileDialog.ShowDialog() ==
)
using
(var stream = fileDialog.OpenFile())
stream.Write(args.DocumentBytes, 0, args.DocumentBytes.Length);
Hi Ivan,
Work perfectly !!
Thanks Marc