各位大蝦:最近正在撰寫PB WEB應用程式,請問如何實作:在客戶端web瀏覽后在客戶端打開客戶端本地D盤的EXCEL檔案?是用GETFILENAME()嗎?
uj5u.com熱心網友回復:
pb11的幫助里有,關于列印、另存、mail等都有處理的方法uj5u.com熱心網友回復:
我用過搞WEB的應用.uj5u.com熱心網友回復:
Uploading filesThe files that a user uploads through the Web Forms File Manager are saved under the SessionID (or UserName) path. The uploaded files are copied from the client-side computer. They are deleted from the server-side SessionID path (but not from the UserName path) at the end of the Web Forms session.
Figure 5-5 shows the PowerBuilder Upload File dialog box for a Web Forms application.
Figure 5-5: Upload dialog box
To upload a file using the File Manager:
In the left pane of the File Manager, select the directory where you want to copy a file.
The Upload File link displays to the right of the New text box.
Click the Upload File link.
The PowerBuilder Upload File dialog box displays.
Type the file name or browse to the file or files you want to upload.
Click Upload.
A message displays in the dialog box to indicate whether the upload is successful.
Click Close & Refresh to close the dialog box and refresh the file listings in the right pane of the File Manager.
Downloading a file
Users can download any file listed in the right pane of the File Manager. The files are downloaded to the client-side computer from either the SessionID (UserName) or Common path on the server. (The actual server path is never displayed in the virtual file directory.)
To download a file using the File Manager
From the right pane of the File Manager, select the file you want to download.
The Download File link displays near the bottom right corner of the File Manager, just above the Upload File link.
Click Download File.
The File Download dialog box lists the file name and file type and the name of the server from which the file can be downloaded. It prompts you to save the file or cancel the download. (On some operating systems, the File Download dialog box can also include Open and More Info buttons.)
Click Save.
The Save As dialog box displays.
Browse to the path on the local computer where you want to save the file, and click Save.
The Download Complete dialog box displays. Its appearance depends on the client operating system. It typically prompts you to open the downloaded file, open the folder where you saved the file, or close the dialog box.
Click Close to close the Download Complete dialog box and return to the File Manager.
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/99413.html
標籤:Web 應用
