Hi guys,
The app im working on freezes when I print a gridview that has a datapager on it.The problem comes in when setting the pagesize to 0
and then when resetting the pagesize back to its the original size once the export has completed [BeginExport + Exported in code]. And Inbetween this I have the CreateDocument. I am using a radDocument. Everything is fine when exporting to pdf but printing large amounts of data doesnt work. I see someone had a similar problem and it was never resolved.
Thanks.
The app im working on freezes when I print a gridview that has a datapager on it.The problem comes in when setting the pagesize to 0
and then when resetting the pagesize back to its the original size once the export has completed [BeginExport + Exported in code]. And Inbetween this I have the CreateDocument. I am using a radDocument. Everything is fine when exporting to pdf but printing large amounts of data doesnt work. I see someone had a similar problem and it was never resolved.
Thanks.
protected
override
void
ExportButtonClicked(
object
sender, RoutedEventArgs routedEventArgs)
{
var document =
new
RadDocument();
Dispatcher.BeginInvoke(() =>
{
if
(BeginExport !=
null
)
BeginExport();
if
(ControlWithGridView !=
null
)
document = CreateDocument(ControlWithGridView.GridView);
else
if
(GridView !=
null
)
document = CreateDocument(GridView);
RadRichTextBox.Document = document;
if
(Exported !=
null
)
Exported();
});
RadRichTextBox.Print(
"Prof1t"
, PrintMode.Native);
RadRichTextBox.Document.History.Clear();
}