DocumentSource Problem

3 posts, 1 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 22 Jun 2012 Link to this post

    Hi,

    i have a problem to add a DocumentSource on my pdfviewer.

    this works fine:
    <telerik:RadPdfViewer Grid.Row="1" x:Name="pdfViewer" DocumentSource="F:\\TEMP\\BinderDemo_2009_R4_N55_1\\test.pdf" />

    this does not work:
    string pdffile_s = "F:\\TEMP\\BinderDemo_2009_R4_N55_1\\test.pdf";
    pdfViewer.DocumentSource = new PdfDocumentSource(new System.Uri(@pdffile_s, System.UriKind.Relative));

    Why not? I have read this link, but without any good input.
    What's wrong in the c# part? I have to add the DocumentSource here.

    Please this is a strange Problem! I need help.

    Thanks
    best Regards
    Rene
  2. Answer
    Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 25 Jun 2012 Link to this post

    Hi Rene,

    I think the problem in the C# part is that you are using UriKind.Relative instead of UriKind.Absolute. 

    Please, try changing it to UriKind.Absolute and see how it goes.

    Regards,
    Kammen
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 25 Jun 2012 Link to this post

    Hi,

    thank's so much, sometimes glasses would be fine for me...

    thanks
    Rene
Back to Top