打印表格的方式有两种,函数如下:
ADD_PRINT_TABLE(intTop,intLeft,intWidth,intheight,strHTML);用超文本打印
ADD_PRINT_TBURL(intTop,intLeft,intWidth,intheight,strURL);按URL地址打印
控件将页面元素thead的内容做页头,将元素tfoot的内容做页尾
看看演示:
一、预览打印如下URL的表格:
(为便于分页,每页仅打300px高,粗体部分是头尾):
作者(Artist) | 歌曲题目 | 国籍(Country) |
---|---|---|
CD Title | ||
Bob Dylan | Empire Burlesque | USA |
Bonnie Tyler | Hide your heart | UK |
Dolly Parton | Greatest Hits | USA |
Gary Moore | Still got the blues | UK |
Eros Ramazzotti | Eros | EU |
Bee Gees | One night only | UK |
Dr.Hook | Sylvias Mother | UK |
Rod Stewart | Maggie May | UK |
Andrea Bocelli | Romanza | EU |
Percy Sledge | When a man loves a woman | USA |
Savage Rose | Black angel | EU |
Many | 1999 Grammy Nominees | USA |
Kenny Rogers | For the good times | UK |
Will Smith | Big Willie style | USA |
Van Morrison | Tupelo Honey | UK |
Cat Stevens | the very best of | UK |
Sam Brown | Stop | UK |
T'Pau | Bridge of Spies | UK |
Tina Turner | Private Dancer | UK |
Kim Larsen | Midt om natten | EU |
Luciano Pavarotti | Pavarotti Gala Concert | UK |
Otis Redding | the dock of the bay | USA |
Simply Red | Picture book | EU |
the Communards | Red | UK |
Joe Cocker | Unchain my heart | USA |
我的CD清单(CD list gungho999@sina.com) |