;Autor: Rudi EnableExplicit Define File$ File$ = OpenFileRequester("", "", "Text (*.txt)|*.txt|Alle Dateien (*.*)|*.*", 0) If File$ Select ShellExecute_(0, "print", File$, #Null, #Null, #SW_SHOWNORMAL) Case 0 MessageRequester("Fehler", "The operating system is out of memory or resources.", #MB_ICONSTOP|#MB_TOPMOST) Case #ERROR_FILE_NOT_FOUND MessageRequester("Fehler", "The specified file was not found.", #MB_ICONSTOP|#MB_TOPMOST) Case #ERROR_PATH_NOT_FOUND MessageRequester("Fehler", "The specified path was not found.", #MB_ICONSTOP|#MB_TOPMOST) Case #ERROR_BAD_FORMAT MessageRequester("Fehler", "The .EXE file is invalid (non-Win32 .EXE or error in .EXE image).", #MB_ICONSTOP|#MB_TOPMOST) Case #SE_ERR_ACCESSDENIED MessageRequester("Fehler", "The operating system denied access to the specified file.", #MB_ICONSTOP|#MB_TOPMOST) Case #SE_ERR_ASSOCINCOMPLETE MessageRequester("Fehler", "The filename association is incomplete or invalid.", #MB_ICONSTOP|#MB_TOPMOST) Case #SE_ERR_DDEBUSY MessageRequester("Fehler", "The DDE transaction could not be completed because other DDE transactions were being processed.", #MB_ICONSTOP|#MB_TOPMOST) Case #SE_ERR_DDEFAIL MessageRequester("Fehler", "The DDE transaction failed.", #MB_ICONSTOP|#MB_TOPMOST) Case #SE_ERR_DDETIMEOUT MessageRequester("Fehler", "The DDE transaction could not be completed because the request timed out.", #MB_ICONSTOP|#MB_TOPMOST) Case #SE_ERR_DLLNOTFOUND MessageRequester("Fehler", "The specified dynamic-link library was not found.", #MB_ICONSTOP|#MB_TOPMOST) Case #SE_ERR_FNF MessageRequester("Fehler", "The specified file was not found.", #MB_ICONSTOP|#MB_TOPMOST) Case #SE_ERR_NOASSOC MessageRequester("Fehler", "There is no application associated with the given filename extension.", #MB_ICONSTOP|#MB_TOPMOST) Case #SE_ERR_OOM MessageRequester("Fehler", "There was not enough memory to complete the operation.", #MB_ICONSTOP|#MB_TOPMOST) Case #SE_ERR_PNF MessageRequester("Fehler", "The specified path was not found.", #MB_ICONSTOP|#MB_TOPMOST) Case #SE_ERR_SHARE MessageRequester("Fehler", "A sharing violation occurred.", #MB_ICONSTOP|#MB_TOPMOST) EndSelect EndIf