Chinaunix首页 | 论坛 | 博客
  • 博客访问: 193659
  • 博文数量: 124
  • 博客积分: 2111
  • 博客等级: 大尉
  • 技术积分: 1505
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-18 13:40
文章分类

全部博文(124)

文章存档

2011年(5)

2010年(3)

2009年(1)

2008年(115)

我的朋友
最近访客

分类:

2008-02-19 16:10:44

关于web打印的总结
方案一:
       调用浏览器的打印函数利用浏览器的模版
   源程序代码:
         
< OBJECT id = " WebBrowser "  classid = " CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 "  height = " 0 "
                width
= " 0 "  VIEWASTEXT >
            
OBJECT >
     说明:此代码放在html 中 打印模版的指定框架为此代码在的模块;
      调用程序:
      
< onclick = " parent.main.focus();parent.main.WebBrowser.ExecWB(7,1); "
调用浏览器的对象中的方法
< 2 >  调用直接打印
      
< onclick = " parent.main.focus();parent.main.WebBrowser..print (7,1); "
< 3 >  当打印的时候不显示时的css样式
      
< style media = " print " >
.Noprint
{display:none;}
.PageNext
{page - break - after: always;}
style >
< style > .TdCs1  { border:solid windowtext  1 .0pt;}
.TdCs2 
{ border:solid windowtext  1 .0pt; border - left:none;}
.TdCs3 
{border - top:none;border - left:solid windowtext  1 .0pt; border - bottom:solid windowtext  1 .0pt; border - right:solid windowtext  1 .0pt;}
.TdCs4 
{border - top:none;  border - left:none;border - bottom:solid windowtext  1 .0pt;border - right:solid windowtext  1 .0pt;}
.underline 
{border - top - style: none;border - right - style: none; border - bottom - style: solid; border - left - style: none;border - bottom - color: # 000000 ;}
        
style >
    
< 4 >  其余的设置
   
< input type = " button "  value = " 打印 "  onclick = " document.all.WebBrowser.ExecWB(6,1) " class = " NOPRINT " >
< input type = " button "  value = " 直接打onclick= " document.all.WebBrowser.ExecWB( 6 , 6 ) "  class= " NOPRINT " >
< input type = " button "  value = " 页面设置 "  onclick = " document.all.WebBrowser.ExecWB(8,1) "   class = " NOPRINT " >
< input type = " button "  value = " 打印预览 "  onclick = " document.all.WebBrowser.ExecWB(7,1) "   class = " NOPRINT " >




看看




































第1页





这样的报表


对一般的要求就够了。






















第2页
看到分页了吧





这样的报表


对一般的要求就够了。



 

posted @ 2006-10-20 14:26 一缕青烟 阅读(79) | 评论 (0)编辑 收藏



Pure CSS Scrollable Table with Fixed Header




(Almost) Pure CSS Scrollable Table with Fixed Header


Using CSS to allow scrolling within a single HTML table


The Bullet Resistant Version


Lots of CSS Browser Filtering





 
  
  
  
 


 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 
 
  
  
  
 

Header 1Header 2Header 3
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla vitae wisi. Nulla euismod aliquet tellus.In sit amet enim. Praesent vulputate tortor nec ante. Morbi sollicitudin est non neque.Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos.
Cell Content 1Cell Content 2
Cell Content 1Cell Content 2
More Cell Content 1More Cell Content 2
Even More Cell Content 1Even More Cell Content 2
And Repeat 1And Repeat 2
Cell Content 1Cell Content 2
More Cell Content 1More Cell Content 2
Even More Cell Content 1Even More Cell Content 2
And Repeat 1And Repeat 2
Cell Content 1Cell Content 2
More Cell Content 1More Cell Content 2
Even More Cell Content 1Even More Cell Content 2
And Repeat 1And Repeat 2
Cell Content 1Cell Content 2
More Cell Content 1More Cell Content 2More Cell Content 3
Even More Cell Content 1Even More Cell Content 2Even More Cell Content 3
And Repeat 1And Repeat 2And Repeat 3
Cell Content 1Cell Content 2
More Cell Content 1More Cell Content 2
Even More Cell Content 1Even More Cell Content 2Even More Cell Content 3
And Repeat 1And Repeat 2And Repeat 3
Cell Content 1Cell Content 2Cell Content 3
More Cell Content 1More Cell Content 2More Cell Content 3
Even More Cell Content 1Even More Cell Content 2Even More Cell Content 3
And Repeat 1And Repeat 2And Repeat 3
Cell Content 1Cell Content 2Cell Content 3
More Cell Content 1More Cell Content 2More Cell Content 3
Even More Cell Content 1Even More Cell Content 2Even More Cell Content 3
And Repeat 1And Repeat 2And Repeat 3
Cell Content 1Cell Content 2Cell Content 3
More Cell Content 1More Cell Content 2More Cell Content 3
Even More Cell Content 1Even More Cell Content 2Even More Cell Content 3
And Repeat 1And Repeat 2And Repeat 3
Cell Content 1Cell Content 2Cell Content 3
More Cell Content 1More Cell Content 2More Cell Content 3
Even More Cell Content 1Even More Cell Content 2Even More Cell Content 3
And Repeat 1And Repeat 2And Repeat 3
Cell Content 1Cell Content 2Cell Content 3
More Cell Content 1More Cell Content 2More Cell Content 3
Even More Cell Content 1Even More Cell Content 2Even More Cell Content 3
And Repeat 1And Repeat 2And Repeat 3
Cell Content 1Cell Content 2Cell Content 3
More Cell Content 1More Cell Content 2More Cell Content 3
Even More Cell Content 1Even More Cell Content 2Even More Cell Content 3
End of Cell Content 1End of Cell Content 2End of Cell Content 3


-->
阅读(1118) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~