PdfViewer load pdf from resources

3 posts, 0 answers
  1. wiquezada
    wiquezada avatar
    8 posts
    Member since:
    Nov 2016

    Posted 31 Jan 2018 Link to this post

    Hello,
    Is there a way to load a pdf file; located in Project's Resources, into pdfviewer?

    Thanks a lot,

    William

  2. Dimitar
    Admin
    Dimitar avatar
    2736 posts

    Posted 01 Feb 2018 Link to this post

    Hello William,

    You should load the resource in a stream first:
    var ms = new MemoryStream(Resources.test);
    radPdfViewer1.LoadDocument(ms);

    Should you have any other questions do not hesitate to ask.

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. wiquezada
    wiquezada avatar
    8 posts
    Member since:
    Nov 2016

    Posted 01 Feb 2018 in reply to Dimitar Link to this post

    Dimitar,

    Thank you very much, it was very helpful, it works!

    Regards,
    William

Back to Top