Hi!
I try to overlay documents (
http://www.syncfusion.com/products/reporting-edition/pdf/overlay-documents); however, I got an exception.
Would you give me the syntax on how to overlay Documents?
Thanks!
~~~~~~~~~~~~~~
string path1 = @"C:\path1.pdf";
string path2 = @"C:\path2.pdf";
string saveToPath = @"C:\out.pdf";
PdfLoadedDocument loadDocument1 = new PdfLoadedDocument(path1);
PdfLoadedDocument loadDocument2 = new PdfLoadedDocument(path2);
PdfDocument doc = new PdfDocument();
PdfPage page = doc.Pages.Add();
//doc.PageSettings.Size = PdfPageSize.A1;
doc.ImportPage(loadDocument1, (PdfPageBase)page);
doc.ImportPage(loadDocument2, page);
doc.Save(saveToPath);
doc.Close(true);
System.Diagnostics.Process.Start(saveToPath);
~~~~~~~~~~~~~~~
System.Windows.Markup.XamlParseException was unhandled
Message="Cannot create instance of 'Window1' defined in assembly 'SyncfusionPDFPrac, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the target of an invocation. Error in markup file 'Window1.xaml' Line 1 Position 9."
Source="PresentationFramework"
LineNumber=1
LinePosition=9
.........
at SyncfusionPDFPrac.Window1..ctor() in C:\Documents and Settingsvan\My Documents\Visual Studio 2008\Projects\SyncfusionPDFPrac\SyncfusionPDFPrac\Window1.xaml.cs:line 50
InnerException: