This is a migrated thread and some comments may be shown as answers.

Export to PDF get: ArgumentException

5 Answers 133 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Raymond
Top achievements
Rank 1
Raymond asked on 06 Dec 2011, 10:34 AM
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

5 Answers, 1 is accepted

Sort by
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()"
0
Ivailo Karamanolev
Telerik team
answered on 08 Dec 2011, 03:54 PM
Hello Raymond,

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,
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
0
Ivailo Karamanolev
Telerik team
answered on 08 Dec 2011, 04:02 PM
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

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.
Tags
RichTextBox
Asked by
Raymond
Top achievements
Rank 1
Answers by
Raymond
Top achievements
Rank 1
Ivailo Karamanolev
Telerik team
Share this question
or