Page 1 of 1

View XPS on Dyalog Form

Posted: Wed Dec 09, 2009 5:40 pm
by paulmansour
In 12.1 we can I think host .net controls on classic Dyalog forms. Does anyone know if there is a .NET control for viewing XPS documents, so I can display one a Dyalog form? Does anyone have a code snippet they would like to share that does this?

Re: View XPS on Dyalog Form

Posted: Wed Dec 09, 2009 6:02 pm
by Morten|Dyalog
Haven't tried anything, but entering "microsoft xps viewer control" into Google brings up quite a few hits... Including an ActiveX component from "SANATech". Did you see http://www.microsoft.com/whdc/xps/viewxps.mspx?

Re: View XPS on Dyalog Form

Posted: Fri Dec 11, 2009 5:17 pm
by paulmansour
Morten, yes I've seen the MS page. The viewer comes with Windows 7, but it appears there is no .Net control for it - it's just an end user app. I dont really want a third party control....

It seems strange MS would go to all the trouble of this and not have a control for it...

Re: View XPS on Dyalog Form

Posted: Fri Dec 11, 2009 5:29 pm
by paulmansour
Hmm... this might do it:

http://msdn.microsoft.com/en-us/library/system.windows.controls.documentviewer.aspx

I'll post back if it looks promising...