I wrote an application to view a folder, and whenever a PowerPoint document falls into it, it looks at the slides inside it and generates png images of each slide. This works fine in a Windows Forms application, but I put the exact same code into a Windows service, used the same test file, and could not open it with the following error:
Error: PowerPoint could not open the file. at Microsoft.Office.Interop.PowerPoint.Presentations.Open (String FileName, MsoTriState ReadOnly, MsoTriState Untitled, MsoTriState WithWindow) -2147467259 Error Com
I found that the service starts with my own user account (with administrator privileges), so I think this would eliminate permission problems, but I can not think of anything else to try.
Any suggestions?
, , . . - XP , , , PP , . PP , , . COM, PP, , - . , ERROR_ACCESS_DENIED, ERROR_OUT_OF_MEMORY .
, PowerPoint - - . . , , . , PowerPoint . Google , , .
" " , ( , ):
Office Windows 2008
( " " " " )
PowerPoint , .
Try installing the Service to interact with the desktop.
Source: https://habr.com/ru/post/1706109/More articles:Card identification in groovy - pythonHow to skip default tests if a dialog appears in watin - c #SELECT of tbl 'value1' minus 'previous value' - mysqlHow to add multidimensional array (AoA) in Excel using Perl? - arrayspassing object - c #Shallow copy - Link type abnormal - c #Struts2, best practice using the method = {1} - javaComposition versus inheritance for Equality & Hashcode providers - equalityRuby Connecting to SQL Server 2005 - ruby | fooobar.comCustomization in .NET. - .netAll Articles