在网页中的Applet中怎样实现打印?
Graphics pg;
PrintJob pj=this.getToolkit().getPrintJob((Frame)this.getParent(),"CM-Print",null);
if(pj!=null)
{
for(i=1;i<this.map.maxPage;i++)
{
pg=pj.getGraphics();
if(pg!=null)
{
this.map.startFlag=0;
this.map.setCurPage(i);
this.map.print(pg);
pg.dispose();
}
}
pj.end();
}
return;
结果打印对话框无法显示出来,但在本地网页(如:d:\abc.htm)却能打开,权限问题吗?