ReaderControl error when expanding SideWindow

25 views
Skip to first unread message

Mike McFarland

unread,
Aug 15, 2013, 9:32:37 PM8/15/13
to silv...@googlegroups.com
Am I missing an assembly reference or something?
 
I have loaded a reference to ReaderControl from the samples and referenced xmlns the name space as follows:
 

xmlns:docView="clr-namespace:PDFTron.SilverDox.Samples;assembly=ReaderControl"

loaded the control in xaml

<docView:ReaderControl x:Name="myReaderControl"

Background="DarkGray"

Grid.Row="1"

EnableOpenLocalFileControl="False"

EnableThumbnailListControl="True"

EnableFullTextSearchControl="False"

EnableOutlineTreeControl="False"

EnablePageNavigationControl="True"

EnableFitModeControl="True"

ShowToolbar="True"

ShowSideWindow="False"

EnableToolModeControl="False"

EnableRotateControl="True"

EnableFullScreenControl="False"

EnableAnnotationWindowControl="False"

EnableLayoutControl="False"

EnableSearchControl="False"/>

I load the document with a byte array from a database:

Uri documentUri = new Uri(address + "?id=" + _documentRefID);

var myHttpPartRetriever = new HttpStreamingPartRetriever(documentUri);

myReaderControl.DocumentViewer.LoadAsync(myHttpPartRetriever, OnLoadAsyncCallback);

Works great!! Document loads fine.
 
The problem is when I try to expand the SideWindow I get an System.NullReferenceException error 4004:
 
Any ideas?
 
Thanks for any help,
 
Mike
 
 
 
 
 
 

Kevin Kuo

unread,
Aug 23, 2013, 2:22:00 PM8/23/13
to silv...@googlegroups.com
I wasn't able to reproduce this in the ReaderControlSample.
Since the source code for ReaderControl and ReaderControlSample is provided, you should be able to debug the project to get more information.
Were there any other messages? Line numbers, stack trace, etc?

Mike McFarland

unread,
Aug 28, 2013, 12:44:46 PM8/28/13
to silv...@googlegroups.com
This was solved by downloading and using the latest version of SilverDox-SL5. Thanks!
Reply all
Reply to author
Forward
0 new messages