I'm trying to figure out the correct way to use Actipro's RecentDocumentManager.
I'm copying syntax from the sample project in ...\Actipro Software\WPFStudio\v11.1.0542\SampleBrowser\ProductSamples\RibbonSamples\Common\DocumentReferenceGenerator.cs
The exception may originate from the System.Uri class, but something from within Actipro's code is calling the illegal operation (for example, perhaps Actipro assumes the URI is absolute and tries to resolve an absolute path without verifying the UriKind).
Here is some sample code that reproduces the error:
private void TestFunction()
{
// Create an absolute and a relative URI
System.Uri absoluteUri = new System.Uri(@"C:\Temp\Account.ABC", System.UriKind.Absolute);
System.Uri relativeUri = new System.Uri(@"/Account?id=ABC", System.UriKind.Relative);
// The absolute URI works
object o1 = new ActiproSoftware.Windows.DocumentManagement.DocumentReference(absoluteUri);
// The relative URI does not work
object o2 = new ActiproSoftware.Windows.DocumentManagement.DocumentReference(relativeUri);
}
To use the RecentDocumentManager, the sample project leads me to believe I need to use an Actipro DocumentReference. Is this correct or is there another way to do this?
Mick