开发者

Printing Html documents

i have a task to print html documents i m using window.print() along with some CSS the problem i m facing is printing of object tag in which a .djvu file is开发者_运维百科 loaded i m using self created djvu viewer for viewing djvu file. problem is that object is streched when printing but on screen it is showing good view

thanks in advance


Set media style sheet = print for the printing version

<link rel="stylesheet" type="text/css" media="print" href="print.css">

more :
CSS Media types and printer friendly pages


You can only guarantee print output if you use a file format such as PDF, you can generate these using the free library iTextSharp.

Also you can explore using a separate stylesheet for printing, with the media tag set to "print".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜