EK RTF report components for .Net
PreviousUpNext
EkBaseReport.ShellOpenFile Method
Pascal
function ShellOpenFile(const FileName: string; ShowCmd: ProcessWindowStyle): integer; virtual;
C#
public int ShellOpenFile(string FileName, ProcessWindowStyle ShowCmd);
Visual Basic
Public Function ShellOpenFile(const FileName As string, ShowCmd As ProcessWindowStyle) As integer

This function opens file specified in FileName using associated windows application. 

If the function succeeds, the return value is the identifier of process that was run. If the function fails, the return value is Win32Exception.NativeErrorCode. 

 

Additional parameter ShowCmd indicates how the application may be shown after opening. It works the same way as in ExecuteOpen method.

Copyright (c) 2007. All rights reserved.