Bonjour,

Connaissez-vous une solution pour afficher juste un viewer en wpf ?
J'utilise ce bout de code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
 
application = new Microsoft.Office.Interop.PowerPoint.Application();
            presentation = application.Presentations.Open2007(filename, Microsoft.Office.Core.MsoTriState.msoTrue, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoTrue);
            Microsoft.Office.Interop.PowerPoint.SlideShowSettings sst1 = presentation.SlideShowSettings;
 
            sst1.ShowType = (Microsoft.Office.Interop.PowerPoint.PpSlideShowType)1;
            Microsoft.Office.Interop.PowerPoint.SlideShowWindow sw = sst1.Run();
Ça me lance bien un viewer mais j'aimerais pouvoir l'intégrer à ma window wpf...
J'ai essayé avec ça :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
 
IntPtr wHandle = new WindowInteropHelper(this).Handle;
            IntPtr pptptr = (IntPtr)sw.HWND;
            SetParent(pptptr, wHandle);
mais ça me lance ma window wpf et une window avec le viewer