Topic: 怎样才能通过按钮打开应用程序如 *.txt

  Print this page

1.怎样才能通过按钮打开应用程序如 *.txt Copy to clipboard
Posted by: menglong35
Posted on: 2004-08-13 11:42

怎样才能通过按钮打开应用程序如 *.txt

2.Re:怎样才能通过按钮打开应用程序如 *.txt [Re: menglong35] Copy to clipboard
Posted by: keepLove
Posted on: 2004-08-13 21:58

你要把情况说具体些吗

3.Re:怎样才能通过按钮打开应用程序如 *.txt [Re: menglong35] Copy to clipboard
Posted by: menglong35
Posted on: 2004-08-16 11:19

例如我要做报表。c/s的,我要通过点击按钮“报表”弹出用iText 做的pdf格式的报表,要用网页打开对吧,我怎样通过该按钮打开那???谢谢

4.Re: [Re: menglong35] Copy to clipboard
Posted by: menglong35
Posted on: 2004-08-18 08:40

没人知道吗???
是不是用shell
请帮助

5.Re:怎样才能通过按钮打开应用程序如 *.txt [Re: menglong35] Copy to clipboard
Posted by: peaked
Posted on: 2004-09-17 14:58

用 java.lang.Runtime.exec(String command) 加参数打开

6.Re:怎样才能通过按钮打开应用程序如 *.txt [Re: menglong35] Copy to clipboard
Posted by: peaked
Posted on: 2004-09-17 15:15

例子:

package ExecTest;

import java.lang.*;
import java.io.*;

public class TestMain {

public static void main(String[] args) {
try {
Runtime.getRuntime().exec("c:\\notepad.exe c:\\debugReg.txt");
}
catch (IOException ex) {
}
}

}


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923