This is a migrated thread and some comments may be shown as answers.

BookAndPdf Integration

1 Answer 20 Views
Book
This is a migrated thread and some comments may be shown as answers.
Phc
Top achievements
Rank 1
Phc asked on 19 Sep 2012, 01:27 AM
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:
BookandPDFIntegration

Thanks,
John

1 Answer, 1 is accepted

Sort by
0
Lancelot
Top achievements
Rank 1
answered on 20 Sep 2012, 02:42 PM
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,
Lancelot
Tags
Book
Asked by
Phc
Top achievements
Rank 1
Answers by
Lancelot
Top achievements
Rank 1
Share this question
or