开发者

Not correct page breaks if print from IE COM interface IWebBrowser

I have HTML document to print from embedded COM IWebBrowser object.

And although in IE itself it printed with correct page breaks (by page-break-inside i开发者_开发技巧n CSS).

In my application it make it wrong.

I'm already dig it much. Can you suggest something?


I don't know if this is your scenario (since it is a bit ambiguous), but I had an IE page being generated by Javascript, using the DOM and found in some cases that Javascript (or IE's DOM) was adding breaks after every append, or some such, where it wasn't supposed to. I was able to work-around the problem by building my string in memory first, and only sending it where it was needed once the string was completely built.


You may use print templates for control your printing flow.


It may have to do with the DOCTYPE.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜