Hi there,
I cannot get DocumentPreview.Page working - is there a bug?
In the provided samples for MigraDoc v1.32 based on WPF, in the DocumentViewer project I enter the code:
Code:
preview.Page = 3;
but the document viewer does not jump to page 3, nor does:
Code:
preview.NextPage();
preview.NextPage();
work.
Please see below code in the MainWindow constructor (all I did was add a single line to the existing code)... can anyone help with displaying a page other than the default first page?
Code:
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
// Create a new MigraDoc document
Document document = SampleDocuments.CreateSample1();
// HACK
string ddl = DdlWriter.WriteToString(document);
preview.Ddl = ddl;
preview.Page = 3; // This newly entered line does not work !?!
}
...
}
Please help,
Thanks, Brad.