Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > RichTextBox > Export to PDF get: ArgumentException

Not answered Export to PDF get: ArgumentException

Feed from this thread
  • Posted on Dec 6, 2011 (permalink)

    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
    Attached files

    Reply

  • Posted on Dec 6, 2011 (permalink)

    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()"

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.
  • Ivailo Karamanolev Ivailo Karamanolev admin's avatar

    Posted on Dec 8, 2011 (permalink)

    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 >>

    Reply

  • Posted on Dec 8, 2011 (permalink)

    Hi,

    We have a sample project and my collegue have sent this you the support-team.
    /R

    Reply

  • Ivailo Karamanolev Ivailo Karamanolev admin's avatar

    Posted on Dec 8, 2011 (permalink)

    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 >>

    Reply

  • Posted on Dec 8, 2011 (permalink)

    Thank you.

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > RichTextBox > Export to PDF get: ArgumentException