بتاريخ: 11 فبراير 200620 سنة comment_59835 يا شباب إذا كان عندي إمتداد مجلد على الشبكة وليكن : \\serverfolder\reporstmall فكيف أستطيع فتح هذا الملف عن طريق أخذ المسار من حقل اسمه loc_file مخزن على الداتا بيزأي كأن افتح الـ Exploer واعطيه مسار الملف ويظهره لي ؟؟؟؟مع العلم أني جربت التالي : host('C:\WINDOWS\explorer.exe ||:in_doc.loc_file'); ولم ينفع حيث يعطيني خطأ . تقديم بلاغ
بتاريخ: 12 فبراير 200620 سنة comment_59882 win_api_shell.startfile ('c:\MYFILE.EXT'); ولكن يجب أولا تثبيت d2kwutil.pll d2kwut60.dll d2kwut32.dll windows api forms 6iوهذة هى حطوات التثبيت 1) Download d2kwutil_6_0_4_1.exe to temp directory for example c:\temp from ftp://oracle-ftp.oracle.com/dev_tools/patchsets/dev2k/Win95NT/d2kwutil/ Note: d2kwutil_6_0_4_1.exe is an executable format of a ZIP format archive. 2) Execute d2kwutil_6_0_4_1.exe to extract the archived files. Note: The current version of d2kwutil_6_0_4_1.exe (927KB) contains 12 files: D2kcomn.pll 11/11/99 10:33a D2KWUT1.WAV 06/06/97 07:24a D2KWUT2.WAV 06/06/97 07:25a d2kwut60.dll 11/13/99 08:09a D2KWUTIL.html 11/13/99 08:14a D2kwutil.pll 11/11/99 12:33p readme.1st 07/09/99 09:14a WAPIDEMO.FMB 11/11/99 11:45a WAPIDEMO.FMX 11/11/99 11:45a WAPIDEMO.MMB 02/19/99 02:19p WAPIDEMO.MMX 02/19/99 02:19p WAPIDMUS.res 09/29/99 08:13a 3) Review "D2KWUTIL.html" and "readme.1st". 4) Scan the ORACLE_HOME directory tree, and any directories on the FORMSxx_PATH or ORACLE_PATH, for any copies of the file D2KWUTIL.PLX or D2KWUTIL.PLL. Note: The Windows 'Find' function provides a convenient way to accomplish this. <Start><Find><Files or Folders> 5) Note the location of, and delete any copies of D2KWUTIL.PLX or D2KWUTIL.PLL that you find. Note: a PLX file extension denotes a compiled/generated version of a PLL file. 6) Delete any copy of D2KWUT32.DLL that may be present in your ORACLE_HOME/bin directory Note: For Developer 6.0 it will be d2kwut60.dll 7) Copy the (newly downloaded and extracted) copy of D2KWUT60.DLL to your ORACLE_HOME/bin directory. Copy the (newly downloaded and extracted) copy of D2KWUTIL.PLL to the directory from which you deleted an earlier copy - or into the startup directory of your application. 8) Attach the D2kwutil.pll to your form. (Under the Attached Libraries node of the Object Navigator) 9) To start an application by just supplying the name of a document use the following command: win_api_shell.startfile('<file name>',WIN_API.SW_SHOWNORMAL,true ); For example: In the Object Navigator: Create a form Attach the D2kwutil.pll library Create a canvas Use the Layout Editor to: Create a button (optionally, set appropriate properties) Create a When-Button-Pressed trigger associated to the button Use the PL/SQL Editor to: Win_api_shell.startfile('c:\orant\orainst\advus.bmp', WIN_API.SW_SHOWNORMAL,true); Execute the From and test the button. Should an error be revealed, verify that your system has ?c:\orant\orainst\advus.bmp?. Syntax - from the d2kwutil package: ----------------------------------------------------------------------*\ * StartFile -> Given the name of a document file this procedure * will work out what executable should be used to open it and * run that executable passing the specified file as an argument * Arguments: * DocumentFile -> The file you want to open * WindowStyle -> Use the constants defined in WIN_API * For this Purpose use: * SW_SHOWNORMAL -> Start up with applications default * SW_SHOWNOACTIVATE -> Starts as SW_SHOWNORMAL but * does not have Focus * SW_SHOWMINIMIZED -> Will Start Iconised or on * but will still be * the active Application * SW_SHOWMINNOACTIVE -> Starts Iconised without * focus * SW_SHOWMAXIMIZED -> Starts Maximised * RaiseExceptions -> TRUE of FALSE(Default) If set to true, * then if the command is not successful the explicit exception * NO_DATA_FOUND will be raised. * Returns: * (NONE) \*-------------------------------------------------------------------------*/ PROCEDURE StartFile ( DocumentFile IN VARCHAR2, WindowStyle IN PLS_INTEGER DEFAULT WIN_API.SW_SHOWNORMAL, RaiseExceptions IN BOOLEAN DEFAULT FALSE); تقديم بلاغ
بتاريخ: 12 فبراير 200620 سنة comment_59883 للأمانة منقول من موقع ميتا لينك Subject: Starting an Application by Just Supplying the Name of a Document Doc ID: Note:100839.1 Type: PROBLEM Last Revision Date: 31-OCT-2002 Status: PUBLISHED تقديم بلاغ
بتاريخ: 12 فبراير 200620 سنة كاتب الموضوع comment_59885 ولكن يا اخيالمجلد الذي أريد إظهاره موجود في حقل مخزن على الداتا بيز ................................حيث يوجد في هذا الحقل إمتداد المجلد في السيرفرفلما عملت التالي : win_api_shell.startfile(:IN_DOC.loc_file); لم يظهر لي شيء .....ولكن لما كتبت : win_api_shell.startfile('C:\n.txt'); أظهر لي الملف n.txt ، ولكنني أريد إظهار أو فتح مجلد إمتداده موجود في حقل اسم file_loc مخزن في الداتا بيز .؟؟؟؟؟؟أرجو أن يكون شرحي وافي للمشكلة !!!!!!!!!!!!!!!! تقديم بلاغ
بتاريخ: 12 فبراير 200620 سنة comment_59889 أخى العزيز انا جربت هذة الطريقة على فيلد مخزن فى الداتا بيز وتعمل بشكل سليمفلو تكرمت ممكن ارسال screenshoot للفورم والكود تقديم بلاغ
بتاريخ: 12 فبراير 200620 سنة كاتب الموضوع comment_59906 يا أخي الكريم ،،،أنا في شرحي للمشكلة قلت انني أريد فتح مجلد ، وليس فتح ملف !!!!!!!!! لأن أمر التالي : win_api_shell.startfile( يقوم فقط بفتح ملف معين وليس فتح مجلد ممكن يحوي على مئة ام مئتين ملف .................................أرجو ان توضح الصورة ...ولكن سوف أرفق لك الفورم التي أقوم بتطويرها لفتح مجلد موجود على السيرفر ....ومع الشكر لإهتمامك .... exploer_folder.zip تقديم بلاغ
بتاريخ: 12 فبراير 200620 سنة كاتب الموضوع comment_59914 تم إنجاح العملية .......................................................حيث الآن يمكنك عرض الـFolder exploere_folder_success.zip تقديم بلاغ
بتاريخ: 13 فبراير 200620 سنة comment_60028 win_api_shell.winexec('C:\WINDOWS\explorer.exe c:\'); تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.