Export to PDF get: ArgumentException

6 posts, 0 answers
  1. Raymond
    Raymond avatar
    24 posts
    Member since:
    Apr 2009

    Posted 06 Dec 2011 Link to this post

    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
  2. Raymond
    Raymond avatar
    24 posts
    Member since:
    Apr 2009

    Posted 06 Dec 2011 Link to this post

    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()"
  3. DevCraft banner
  4. Ivailo Karamanolev
    Admin
    Ivailo Karamanolev avatar
    276 posts

    Posted 08 Dec 2011 Link to this post

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

  5. Raymond
    Raymond avatar
    24 posts
    Member since:
    Apr 2009

    Posted 08 Dec 2011 Link to this post

    Hi,

    We have a sample project and my collegue have sent this you the support-team.
    /R
  6. Ivailo Karamanolev
    Admin
    Ivailo Karamanolev avatar
    276 posts

    Posted 08 Dec 2011 Link to this post

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

  7. Raymond
    Raymond avatar
    24 posts
    Member since:
    Apr 2009

    Posted 08 Dec 2011 Link to this post

    Thank you.
Back to Top
DevCraft banner