Hi,
I have a RichTextBox. I have imported som RTF code, importet from last export. I edit and then try to Export to PDF with the PdfFormatProvider. Sometimes this works, sometimes it crashes. Look at attached image: ArgumentException was unhandled by user code. Parameter name: height.
Not always. Only sometimes...
/R
I have a RichTextBox. I have imported som RTF code, importet from last export. I edit and then try to Export to PDF with the PdfFormatProvider. Sometimes this works, sometimes it crashes. Look at attached image: ArgumentException was unhandled by user code. Parameter name: height.
Not always. Only sometimes...
/R
5 Answers, 1 is accepted
0
Raymond
Top achievements
Rank 1
answered on 06 Dec 2011, 10:42 AM
More info:
"System.ArgumentException: Parameter name: height at System.Windows.Rect..ctor(Double x, Double y, Double width, Double height) at Telerik.Windows.Documents.FormatProviders.Pdf.PdfDocumentExporter.ExportHeadersAndFooters(SectionLayoutBox sectionBox, PdfContentsWriter writer) at Telerik.Windows.Documents.FormatProviders.Pdf.PdfDocumentExporter.ExportPage(SectionLayoutBox sectionBox, PdfContentsWriter writer) at Telerik.Windows.Documents.FormatProviders.Pdf.PdfDocumentExporter.<>c__DisplayClass3.<Export>b__2(PdfContentsWriter contentsWriter) at Telerik.Windows.Documents.FormatProviders.Pdf.RadPdf.PdfContents.WriteContents(PdfWriter writer) at Telerik.Windows.Documents.FormatProviders.Pdf.RadPdf.PdfStream.WriteToCore(PdfWriter writer) at Telerik.Windows.Documents.FormatProviders.Pdf.RadPdf.PdfObject.WriteTo(PdfWriter writer) at Telerik.Windows.Documents.FormatProviders.Pdf.RadPdf.PdfWriter.WritePdfObject(PdfObject obj) at Telerik.Windows.Documents.FormatPr
oviders.Pdf.PdfDocumentExporter.Export() at Telerik.Windows.Documents.FormatProviders.Pdf.PdfFormatProvider.Export(RadDocument document, Stream output) at KST.RE.SLUI.TextEditSelect.GetPDF()"
"System.ArgumentException: Parameter name: height at System.Windows.Rect..ctor(Double x, Double y, Double width, Double height) at Telerik.Windows.Documents.FormatProviders.Pdf.PdfDocumentExporter.ExportHeadersAndFooters(SectionLayoutBox sectionBox, PdfContentsWriter writer) at Telerik.Windows.Documents.FormatProviders.Pdf.PdfDocumentExporter.ExportPage(SectionLayoutBox sectionBox, PdfContentsWriter writer) at Telerik.Windows.Documents.FormatProviders.Pdf.PdfDocumentExporter.<>c__DisplayClass3.<Export>b__2(PdfContentsWriter contentsWriter) at Telerik.Windows.Documents.FormatProviders.Pdf.RadPdf.PdfContents.WriteContents(PdfWriter writer) at Telerik.Windows.Documents.FormatProviders.Pdf.RadPdf.PdfStream.WriteToCore(PdfWriter writer) at Telerik.Windows.Documents.FormatProviders.Pdf.RadPdf.PdfObject.WriteTo(PdfWriter writer) at Telerik.Windows.Documents.FormatProviders.Pdf.RadPdf.PdfWriter.WritePdfObject(PdfObject obj) at Telerik.Windows.Documents.FormatPr
oviders.Pdf.PdfDocumentExporter.Export() at Telerik.Windows.Documents.FormatProviders.Pdf.PdfFormatProvider.Export(RadDocument document, Stream output) at KST.RE.SLUI.TextEditSelect.GetPDF()"
0
Hello Raymond,
Ivailo Karamanolev
the Telerik team
We haven't encountered such issues with the PdfFormatProvider. We can only diagnose the issue if we can reproduce it. Therefore, we would appreciate it if you could send us a sample XAML document and any steps (if relevant) to reproduce the issue.
Looking forward to your reply.
Regards,Looking forward to your reply.
Ivailo Karamanolev
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Raymond
Top achievements
Rank 1
answered on 08 Dec 2011, 04:01 PM
Hi,
We have a sample project and my collegue have sent this you the support-team.
/R
We have a sample project and my collegue have sent this you the support-team.
/R
0
Hi Raymond,
I am closing this ticket and we will continue the conversation on the other one when ready.
All the best,
Ivailo Karamanolev
the Telerik team
I am closing this ticket and we will continue the conversation on the other one when ready.
All the best,
Ivailo Karamanolev
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Raymond
Top achievements
Rank 1
answered on 08 Dec 2011, 04:03 PM
Thank you.