当前位置:首页
开发技术指南» 文章正文
    引言:

    摘要: set conn=server.createobject("adodb.connection") conn.provider="sqloledb" provstr="server=219.154.96.*;database=idbook;uid=****;pwd=*****;" conn. properties("con......
 ·求助关于帮助文件的问题()    »显示摘要«
    摘要: 我制作了一个帮助文件,并且设置好关联,代码如下 private sub mnuhelpsearchforhelpon_click() dim nret as integer 如果这个工程没有帮助文件,显示消息给用户 可以在“工程属性”对话框中为应用程序设置帮助文件 if len(app.helpfile) = 0 then msgbox "无法显示帮助目录,该工程没有相关联的帮......


applet打印,总提示no print service found

本地已配置好打印机,以非applet的方式调用java.awt.print.PrinterJob可以打印,但以applet方式即使用程序选择打印机,java   plug-in控制台还是抛出PrinterException:no   print   service   found  
   
  public   static   PrintService   getPrintService()  
          {  
                  PrintService   ps   =   PrintServiceLookup.lookupDefaultPrintService();  
                  if   (   ps   ==   null   )  
                  {  
                  PrintService[]   pss   =   PrintServiceLookup.lookupPrintServices(   null,   null   );  
                          if   (   pss.length   >   0   )  
                          ps   =   pss[0];  
                  }  
                  return   ps;  
          }  
   
  上面的程序在applet里始终返回null,也就是说applet始终无法得到PrintService  
   
  如何解决

NO.1   作者: hellwindy

applet安全设限制,很多操作被禁止了

NO.2   作者: wangtianyang

up

NO.3   作者: laughsmile

你把安全权限调高试试

NO.4   作者: laughsmile

ie的安全权限.工具->internet选项->安全

NO.5   作者: wangdong_hk

应该是权限的问题,去查这方面的资料吧!

NO.6   作者: laughsmile

http://www.cjsdn.com/post/print?bid=1&id=76339

NO.7   作者: caiyi0903

1)   Sign   the   applet   granting   file   read   permission  
  2)   Modify   the   applet   to   show   the   print   dialog   first.   This   works   because  
  there   is   an   outer   doPrivileged   block   surrounding   the   code   that   pops   up   the  
  dialog,   and   it   grants   the   file   permssion   too.   Printing   works   in   this   case  
  3)   Move   to   JDK   1.5

NO.8   作者: wuzhu888

帮顶


    摘要: 用备份恢复数据库以后数据库出问题,登陆系统和查询系统都可以用,就是注册的时候总是说该页面无法显示,请教高手这是怎么回事???很急,谢谢 ......
» 本期热门文章:
· 热门栏目:
» 相关精选文章
» 其它相关:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE