PDF Source /

Posted by: katrinlang on 4 January 2024, 9:30 pm EST

  • Posted 4 January 2024, 9:30 pm EST

    Hy,

    How do I access the attachments in a PDF document, or alternatively, how can I view the attachments in C1.Win.FlexViewer.C1.FlexViewer?

    pdf_Source is C1.Win.C1Document.C1PdfDocumentSource

    fle_PDF C1.Win.FlexViewer.C1.FlexViewer

    My code is as following:

    System.IO.FileInfo fi=new System.IO.FileInfo(pfad);

    if (fi.Exists)

    {

    if (fi.Extension.Equals(“.pdf”, StringComparison.OrdinalIgnoreCase))

    {

    pdf_Source.LoadFromFile(fi.FullName);

    fle_PDF.DocumentSource = pdf_Source;

    }

    }

    Best regards

  • Posted 7 January 2024, 6:30 pm EST

    Hi,

    Thanks for reaching out to us with your query.

    The code you provided is fine. FlexViewer should load the Pdf file.

    Please refer to the attached working sample with the same code: PdfDocumentViewer.zip

    It seems like the file is missing from the path at your end. If still issue persists then please let us know the error you getting.

    Regards,

    Nitin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels