Hey guys,
Some of my users want to print a GridView and write things in the printed Grid.
I know, dumb...
The Export is currently done with this:
public void PDFExport()
{
Telerik.Windows.Controls.GridView.IColumnFilterDescriptor tempFilter = ucEndtermintreueDaten.rgvEndtermintreueDaten.Columns["Ausblenden"].ColumnFilterDescriptor;
tempFilter.DistinctFilter.AddDistinctValue(false);
SaveFileDialog dialog = new SaveFileDialog();
dialog.DefaultExt = ".pdf";
dialog.Filter = string.Format("(*.{0})|*.{1}", "pdf", "pdf");
dialog.FileName = "Endtermintreue " + MinDatum.ToString("dd.MM.yy") + "-" + MaxDatum.ToString("dd.MM.yy");
var result = dialog.ShowDialog();
if ((bool)result)
{
using (var stream = dialog.OpenFile())
{
GridViewDocumentExportOptions options = new GridViewDocumentExportOptions()
{
ShowColumnHeaders = true,
AutoFitColumnsWidth = true
};
options.ExcludedColumns.Add(ucEndtermintreueDaten.rgvEndtermintreueDaten.Columns["Ausblenden"]);
ucEndtermintreueDaten.rgvEndtermintreueDaten.ExportToPdf(stream, options);
}
System.Diagnostics.Process.Start(dialog.FileName);
}
tempFilter.Clear();
}
My problem is, that the rows are to small and the columns not wide enough to write something in it from hand if printed.
But I don't see any option to set the row height, and if I set AutoFitColumnsWidth to false it just cuts off the text in it.
Is it possible to set these options?
Or maybe do I have to set the RowHeight and ColumnWidth in the element and revert it back to the original values after export?
Greetings Benedikt