Click or drag to resize
MsOfficeExternalPreviewApplication Class
Microsoft Office applications try to manage resources, processes on its own, so Process.Start() will return valid process id only if there are no other instances of MS office running. In other case Process.Start() call will return immediately without returning valid process id, because existing instance of MS office application will take over process creation and opening the file. To avoid this, special DDE switch has to be passed to MS Office application when it is started. Class below customizes starting of MS Office application. see: http://support.microsoft.com/kb/210565 for command line switch and see: http://social.msdn.microsoft.com/Forums/hu-HU/csharpgeneral/thread/21014f97-1732-4261-afe5-2127b2e64f68 for
Inheritance Hierarchy

Namespace: Sdl.FileTypeSupport.Framework.PreviewControls
Assembly: Sdl.FileTypeSupport.Framework.PreviewControls (in Sdl.FileTypeSupport.Framework.PreviewControls.dll) Version: 1.0.0.0 (1.0.5151.0)
Syntax
public class MsOfficeExternalPreviewApplication : GenericExteralPreviewApplication

The MsOfficeExternalPreviewApplication type exposes the following members.

Constructors
  NameDescription
Public methodMsOfficeExternalPreviewApplication
Initializes a new instance of the MsOfficeExternalPreviewApplication class
Top
Methods
  NameDescription
Public methodDispose (Inherited from GenericExteralPreviewApplication.)
Protected methodDispose(Boolean)
Dispose of resources used by this object. Implementation attempts to close the preview application and delete the temp file.
(Inherited from GenericExteralPreviewApplication.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize (Inherited from GenericExteralPreviewApplication.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLaunch
Display the file in the external application.
(Inherited from GenericExteralPreviewApplication.)
Protected methodLaunchApplicationForFile
Start external application for given file
(Overrides GenericExteralPreviewApplicationLaunchApplicationForFile(TempFileManager).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNotifyCanClose
Default implementation sends a close message to the process main window, if it is open.
(Inherited from GenericExteralPreviewApplication.)
Public methodOnPreviewClosed
Raise the PreviewClosed event.
(Inherited from GenericExteralPreviewApplication.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyApplicationPath
The path of the external app to preview the generated file (or null for default associated app)
(Inherited from GenericExteralPreviewApplication.)
Public propertyDdeSwitch
Gets or sets dde switch allowing to open every file in separate instance of MS Office Application directly.
Public propertyFileTypeDefinition
Implements synchronized access to this property.
(Inherited from AbstractFileTypeDefinitionComponent.)
Public propertyMonitorApplicationExit
Indicates if the application should be monitored when exiting. This will perform some tidy up if set to true
(Inherited from GenericExteralPreviewApplication.)
Public propertyPreviewFile
Default implementation is accessor for member field.
(Inherited from GenericExteralPreviewApplication.)
Top
Events
  NameDescription
Public eventPreviewClosed
Raised when the launched application terminates.
(Inherited from GenericExteralPreviewApplication.)
Top
See Also
Community
Edit
Be the first to Edit the community content of this topic.
Comments