BookAndPdf Integration

2 posts, 0 answers
  1. Phc
    Phc avatar
    1 posts
    Member since:
    Sep 2012

    Posted 18 Sep 2012 Link to this post

    Hi Telerik,

    I found there is an error when try to get document Resource stream (PDF File).

    When debug this code:

    this.documentStream = App.GetResourceStream(new Uri("/sNotes.Client.Windows.Shell;component/SampleData/avanza.pdf", UriKind.Relative)).Stream;

    An Error found:
    System.Windows.Markup.XamlParseException was unhandled
      Message='The invocation of the constructor on type 'sNotes.Client.Windows.Shell.BookBrowsing2' that matches the specified binding constraints threw an exception.' Line number '9' and line position '9'.

    Please download this sample version at below:


  2. Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 20 Sep 2012 Link to this post

    Hi Phc,

    Thank you for providing a sample application that demonstrates the problem. To repair this simply move the code out of the constructor and into a Loaded event or a OnNavigatedTo event.

    Good luck,
Back to Top